Subject: Re: lib/libc/gen/nlist.c missing
To: Jaromir Dolecek <dolecek@ics.muni.cz>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: current-users
Date: 09/06/1999 10:39:30
Hmm, so it was my build environment error - for whatever reason, I had some
system headers in basesrc/lib/libc/sys/, so they got used instead of the "real"
ones.

Jaromir

Jaromir Dolecek wrote:
> Build of libc about two days old:
> 
> cc -g -Wall -DALL_STATE  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS  -D_REENTRANT -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DRESOLVSORT -I. -DINET6 -DPOSIX_MISTAKE -DFLOATING_POINT -c -fpic -DPIC /usr/src/lib/libc/gen/nlist_aout.c -o nlist_aout.so
> --- nlist.so ---
> cc1: warnings being treated as errors
> /usr/src/lib/libc/gen/nlist.c: In function `_nlist':
> /usr/src/lib/libc/gen/nlist.c:88: warning: implicit declaration of function `open'
> /usr/src/lib/libc/gen/nlist.c:88: `O_RDONLY' undeclared (first use in this function)
> /usr/src/lib/libc/gen/nlist.c:88: (Each undeclared identifier is reported only once
> /usr/src/lib/libc/gen/nlist.c:88: for each function it appears in.)
> *** Error code 1
> 1 error
> 
> If I add #include <fcntl.h> to list of includes, it builds OK.
> Is it real error, or my build environment is too old or whatever ?
> I build userland just occasionally :(
> 
> Jaromir
> -- 
> Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
> "The only way how to get rid temptation is to yield to it." -- Oscar Wilde
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
"The only way how to get rid temptation is to yield to it." -- Oscar Wilde