logo       

Re: getpt.c, paths.h and autoconf.g: msg#00208

lib.uclibc.general

Subject: Re: getpt.c, paths.h and autoconf.g

On Mon Mar 31, 2003 at 02:06:06PM +1000, John Williams wrote:
> Hi,
>
> When uClibc is trying to make getpt.c (in stdlib), it includes
> <paths.h>, which in turn attempts to include <config/autoconf.h> I
> don't even have a /uClibc/include/config directory.

uClibc's paths.h does not include anything at all...
$ grep -c include uClibc/include/paths.h
0
The uClibc library is compiled using its own set of header files,
but I think you must be trying to compile uClibc using the system
header files...

$ make
gcc -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -Os -march=i386 -fno-builtin
-nostdinc -D_LIBC -I../../include -I. -g
-I/usr/lib/gcc-lib/i386-linux/2.95.4/include -DNDEBUG
-fPIC -c getpt.c -o getpt.o

So when I compile getpt.c I get the following set of includes:

$ gcc -c getpt.c -fno-builtin -nostdinc -I../../include -I.
-I/usr/lib/gcc-lib/i386-linux/2.95.4/include -M
getpt.o: getpt.c ../../include/errno.h ../../include/features.h \
../../include/sys/cdefs.h ../../include/bits/uClibc_config.h \
../../include/bits/errno.h ../../include/bits/errno_values.h \
../../include/fcntl.h ../../include/bits/fcntl.h \
../../include/sys/types.h ../../include/bits/types.h \
/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h \
../../include/bits/kernel_types.h
../../include/bits/pthreadtypes.h \
../../include/bits/sched.h ../../include/time.h \
../../include/endian.h ../../include/bits/endian.h \
../../include/sys/select.h ../../include/bits/select.h \
../../include/bits/sigset.h ../../include/bits/time.h \
../../include/sys/sysmacros.h ../../include/stdlib.h \
../../include/alloca.h ../../include/unistd.h \
../../include/bits/posix_opt.h ../../include/bits/confname.h \
../../include/getopt.h ../../include/paths.h

Do you get something different? You should ahve the exact
same set of dependancies, except for the path to stddef.h,

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise