Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 1998 18:57:07 -0500
From:      "Alfred Perlstein" <perlsta@sunyit.edu>
To:        <hackers@FreeBSD.ORG>
Subject:   something wrong with SYS-V IPC
Message-ID:  <199801282002.UAA21992@fang.cs.sunyit.edu>

next in thread | raw e-mail | index | archive | help
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 <sys/sem.h>
	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801282002.UAA21992>