[uClibc]Compiling programs against uClibc...

Tom Cameron TCameron at stmarysbank.com
Fri Feb 2 00:00:54 UTC 2001


Hello again,
	I am compiling iproute2 (am I just asking for too much by trying to
compile this vs. uClibc? or am I just missing the fact that uClibc is a
complete replacement for glibc (the bloatware that it is ; ) )?  Anyway,
here's the output...

####  Begin Output  ####

[root at lfs iproute2]# make all
make[1]: Entering directory `/mnt/lfs/usr/src/LRP-KonRAD/iproute2/lib'
/mnt/lfs/usr/src/LRP-KonRAD/uClibc/extra/gcc-uClibc/gcc-uClibc-i386
-D_GNU_SOURCE -O2 -march=i586 -Wstrict-prototypes -Wall -g
-I../include-glibc -include ../include-glibc/glibc-bugs.h
-I/mnt/lfs/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES   -c
ll_map.c -o ll_map.o
In file included from
/mnt/lfs/usr/src/LRP-KonRAD/uClibc/include/sys/socket.h:34,
                 from ll_map.c:18:
../include-glibc/bits/socket.h:129: sockaddrcom.h: No such file or directory
In file included from ../include-glibc/bits/socket.h:250,
                 from
/mnt/lfs/usr/src/LRP-KonRAD/uClibc/include/sys/socket.h:34,
                 from ll_map.c:18:
/mnt/lfs/usr/src/linux/include/asm/socket.h:49: warning: `SOCK_STREAM'
redefined
../include-glibc/bits/socket.h:43: warning: this is the location of the
previous[root at lfs iproute2]# make all
make[1]: Entering directory `/mnt/lfs/usr/src/LRP-KonRAD/iproute2/lib'
/mnt/lfs/usr/src/LRP-KonRAD/uClibc/extra/gcc-uClibc/gcc-uClibc-i386
-D_GNU_SOURCE -O2 -march=i586 -Wstrict-prototypes -Wall -g
-I../include-glibc -include ../include-glibc/glibc-bugs.h
-I/mnt/lfs/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES   -c
ll_map.c -o ll_map.o
In file included from
/mnt/lfs/usr/src/LRP-KonRAD/uClibc/include/sys/socket.h:34,
                 from ll_map.c:18:
../include-glibc/bits/socket.h:129: sockaddrcom.h: No such file or directory
In file included from ../include-glibc/bits/socket.h:250,
                 from
/mnt/lfs/usr/src/LRP-KonRAD/uClibc/include/sys/socket.h:34,
                 from ll_map.c:18:
/mnt/lfs/usr/src/linux/include/asm/socket.h:49: warning: `SOCK_STREAM'
redefined
../include-glibc/bits/socket.h:43: warning: this is the location of the
previous definition
/mnt/lfs/usr/src/linux/include/asm/socket.h:50: warning: `SOCK_DGRAM'
redefined
../include-glibc/bits/socket.h:46: warning: this is the location of the
previous definition
/mnt/lfs/usr/src/linux/include/asm/socket.h:51: warning: `SOCK_RAW'
redefined
../include-glibc/bits/socket.h:48: warning: this is the location of the
previous definition
/mnt/lfs/usr/src/linux/include/asm/socket.h:52: warning: `SOCK_RDM'
redefined
../include-glibc/bits/socket.h:50: warning: this is the location of the
previous definition
/mnt/lfs/usr/src/linux/include/asm/socket.h:53: warning: `SOCK_SEQPACKET'
redefined
../include-glibc/bits/socket.h:53: warning: this is the location of the
previous definition
/mnt/lfs/usr/src/linux/include/asm/socket.h:54: warning: `SOCK_PACKET'
redefined
../include-glibc/bits/socket.h:57: warning: this is the location of the
previous definition
make[1]: *** [ll_map.o] Error 1
make[1]: Leaving directory `/mnt/lfs/usr/src/LRP-KonRAD/iproute2/lib'
make: *** [all] Error 2
[root at lfs iproute2]#

####  End Output  ####

	Anyway...I think the only modification I made was to add
'-march=i586' and to change the CC variable...other than that, I belive it's
all stock.  Any ideas?  Thanks for all your help!

--
Thomas Cameron
Network Technician / Operations Specialist
St. Mary's Bank





More information about the uClibc mailing list