Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 1998 20:18:36 -0400 (AST)
From:      The Hermit Hacker <scrappy@hub.org>
To:        Alfred Perlstein <perlsta@sunyit.edu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: something wrong with SYS-V IPC
Message-ID:  <Pine.BSF.3.96.980128201817.238e-100000@thelab.hub.org>
In-Reply-To: <199801282002.UAA21992@fang.cs.sunyit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h> to the top of this and you should be fine



> 	#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
> 

Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980128201817.238e-100000>