Subject: Re: Re: errors with doing a build on tools
To: None <tech-toolchain@netbsd.org>
From: Kamal R Prasad <kamalrpr@in.ibm.com>
List: tech-toolchain
Date: 07/17/2003 13:35:52
Hello,
thanks for the help. I was a bit psyched to notice that.
The reason why this error shows up is because I need a -D_POSIX_SOURCE 
added to CFLAGS in 
share/mk/bsd.sys.mk (this is a build for prep on AIX which defines sigval 
only for _POSIX_SOURCE in /usr/include/sys/signal.h)
But this results in an error (which someone from netbsd community knows 
how to fix).
--------------------------------------------------------------------------------------
cc -O -qnolm -D_POSIX_SOURCE  -I. -I./include 
-I/tmp/kamalfs/netbsd/src/tools/co
mpat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE 
-D__DBINTERFACE_PR
IVATE -I/tmp/kamalfs/netbsd/src/lib/libc/include -c -o strlcat.lo.o 
/tmp/kamalfs
/netbsd/src/tools/compat/../../lib/libc/string/strlcat.c
"/tmp/kamalfs/netbsd/src/tools/compat/compat_defs.h", line 186.28: 
1506-275 (S)
Unexpected text u_long encountered.
*** Error code 1

Stop.
nbmake: stopped in /tmp/kamalfs/netbsd/src/tools/compat
*** Error code 1

-----------------------------------------------------------------------------------------
thanks for any help.
regards
-kamal

Subject: Re: errors with doing a build on tools
From: is@netbsd.org (Ignatios Souvatzis)
Newsgroups: netbsd.tech.toolchain
Organization: TAC News Gateway
Date: Jul 16 2003 19:21:20
References: 1
Attachments: unnamed (application/pgp-signature)
On Wed, Jul 16, 2003 at 07:39:15PM +0530, Kamal R Prasad wrote:
> last I remember, union is a valid C keyword.
...
> "/usr/include/sys/signal.h", line 591.15: 1506-007 (S) "union sigval" is 

> undefined.
> "/usr/include/sys/wait.h", line 164.29: 1506-276 (S) Syntax error: 
> possible missing identifier?
...

Ahem - it's not complaining about "union" being unrecognized, but about 
the
union named "sigval" not being defined at that point.

Why it would do so, I don't know - I didn't build -current recently.

Regards,
                 -is

------------------------------------------------------------------------------
Kamal R. Prasad
AIX Support & Test, IBM India Software Labs
Golden Enclave, Airport Road, Bangalore-560017, India
Phone : +91-80-5094963,  Internal Ext   : 2963
-------