From owner-freebsd-hackers Wed Jan 28 16:21:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA26771 for hackers-outgoing; Wed, 28 Jan 1998 16:21:28 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from thelab.hub.org (slip-33.acadiau.ca [131.162.2.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA26406 for ; Wed, 28 Jan 1998 16:20:01 -0800 (PST) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by thelab.hub.org (8.8.8/8.8.2) with SMTP id UAA03751; Wed, 28 Jan 1998 20:18:36 -0400 (AST) X-Authentication-Warning: thelab.hub.org: scrappy owned process doing -bs Date: Wed, 28 Jan 1998 20:18:36 -0400 (AST) From: The Hermit Hacker To: Alfred Perlstein cc: hackers@FreeBSD.ORG Subject: Re: something wrong with SYS-V IPC In-Reply-To: <199801282002.UAA21992@fang.cs.sunyit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Wed, 28 Jan 1998, Alfred Perlstein wrote: > 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: Add #include to the top of this and you should be fine > #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 > Marc G. Fournier Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org