From owner-freebsd-hackers Wed Jan 28 16:01:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA20078 for hackers-outgoing; Wed, 28 Jan 1998 16:01:55 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fang.cs.sunyit.edu (root@fang.cs.sunyit.edu [192.52.220.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA20069 for ; Wed, 28 Jan 1998 16:01:40 -0800 (PST) (envelope-from perlsta@sunyit.edu) Received: from win95.local.sunyit.edu (A-T34.rh.sunyit.edu [150.156.210.241]) by fang.cs.sunyit.edu (8.8.5/8.7.3) with ESMTP id UAA21992 for ; Wed, 28 Jan 1998 20:02:37 GMT Message-Id: <199801282002.UAA21992@fang.cs.sunyit.edu> From: "Alfred Perlstein" To: Subject: something wrong with SYS-V IPC Date: Wed, 28 Jan 1998 18:57:07 -0500 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk something has gone bad with the SYSV IPC headers and such, i just did a make world today and they are still messed: compiling a program: #include int main() { union semun foo; return 0; } produces this deluge of errors: perlsta@server:~>gcc test.c In file included from /usr/include/sys/sem.h:13, from test.c:1: /usr/include/sys/ipc.h:54: parse error before `ushort' /usr/include/sys/ipc.h:54: warning: no semicolon at end of struct or union /usr/include/sys/ipc.h:55: warning: data definition has no type or storage class /usr/include/sys/ipc.h:56: parse error before `uid' /usr/include/sys/ipc.h:56: warning: data definition has no type or storage class /usr/include/sys/ipc.h:57: parse error before `gid' /usr/include/sys/ipc.h:57: warning: data definition has no type or storage class /usr/include/sys/ipc.h:58: parse error before `mode' /usr/include/sys/ipc.h:58: warning: data definition has no type or storage class /usr/include/sys/ipc.h:59: parse error before `seq' /usr/include/sys/ipc.h:59: warning: data definition has no type or storage class /usr/include/sys/ipc.h:60: parse error before `key' /usr/include/sys/ipc.h:60: warning: data definition has no type or storage class In file included from /usr/include/sys/sem.h:13, from test.c:1: /usr/include/sys/ipc.h:94: parse error before `ftok' /usr/include/sys/ipc.h:94: warning: data definition has no type or storage class In file included from test.c:1: /usr/include/sys/sem.h:16: parse error before `u_short' /usr/include/sys/sem.h:16: warning: no semicolon at end of struct or union /usr/include/sys/sem.h:17: warning: data definition has no type or storage class /usr/include/sys/sem.h:18: parse error before `semncnt' /usr/include/sys/sem.h:18: warning: data definition has no type or storage class /usr/include/sys/sem.h:19: parse error before `semzcnt' /usr/include/sys/sem.h:19: warning: data definition has no type or storage class /usr/include/sys/sem.h:23: field `sem_perm' has incomplete type /usr/include/sys/sem.h:25: parse error before `u_short' /usr/include/sys/sem.h:25: warning: no semicolon at end of struct or union /usr/include/sys/sem.h:26: warning: data definition has no type or storage class /usr/include/sys/sem.h:28: parse error before `sem_ctime' /usr/include/sys/sem.h:28: warning: data definition has no type or storage class /usr/include/sys/sem.h:33: parse error before `}' /usr/include/sys/sem.h:39: parse error before `u_short' /usr/include/sys/sem.h:39: warning: no semicolon at end of struct or union /usr/include/sys/sem.h:42: parse error before `}' /usr/include/sys/sem.h:53: parse error before `u_short' /usr/include/sys/sem.h:53: warning: no semicolon at end of struct or union /usr/include/sys/sem.h:175: warning: parameter has incomplete type /usr/include/sys/sem.h:176: parse error before `int' test.c: In function `main': test.c:3: storage size of `foo' isn't known so what gives? :) i looked at the file and it looks PERFECT to me, maybe gcc is choking on itself? but cc does the same thing... hmmmm anyone have any ideas? the reason i got into this mess is cause i'm trying to install the latest version of Wine and i noticed how its 'configure' script says that there is no "union semun" but i found it, the problem happens cause gcc returns an error code, not because the variable isn't declared, but because it has problems parsing the file.... HELP! :) -Alfred