optreset undeclared

Martin Dvorak mdvorak at ninell.cz
Tue Jun 24 06:34:07 PDT 2003


Hi,

am I the only one having this problem while building world:

cc -I/usr/local/include  -march=athlon-tbird -I/usr/src/lib/libc/include 
-I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 
-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 
-I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale 
-DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP 
-DHESIOD  -c /usr/src/lib/libc/stdlib/getopt_long.c -o getopt_long.o
/usr/src/lib/libc/stdlib/getopt_long.c: In function `getopt_internal':
/usr/src/lib/libc/stdlib/getopt_long.c:205: `optreset' undeclared (first 
use in this function)
/usr/src/lib/libc/stdlib/getopt_long.c:205: (Each undeclared identifier 
is reported only once
/usr/src/lib/libc/stdlib/getopt_long.c:205: for each function it appears 
in.)

It seems like line 72 of getopt_long.c should read

#elif !HAVE_CONFIG_H && !HAVE_DECL_OPTRESET

instead of

#elif HAVE_CONFIG_H && !HAVE_DECL_OPTRESET

I cannot make buildworld for days now because of this error. Any 
suggestions?

Thanks.

Martin



More information about the freebsd-current mailing list