[uClibc]Problem compiling uClib 0.9.8

arne @ loopback . org arne at matrix.loopback.org
Sat Dec 29 23:55:31 UTC 2001


Hi,

i just try to compile the uClibc 0.9.8 release on my debian potato box.
it all compiles fine except libm.so which gives me an error:

if [ -f libm.a ] ; then \
    ../extra/gcc-uClibc/i386-uclibc-gcc --uclibc-use-build-dir -s
-Wl,-warn-comm
on -nostdlib -shared -o libm-0.9.8.so \
        -Wl,-soname,libm.so.0 -Wl,--whole-archive libm.a \
        -Wl,--no-undefined -Wl,--allow-shlib-undefined -lc; \
    install -d ../lib; \
    rm -f ../lib/libm-0.9.8.so ../lib/libm.so.0; \
    install -m 644 libm-0.9.8.so ../lib; \
    (cd ../lib; ln -sf libm-0.9.8.so libm.so); \
    (cd ../lib; ln -sf libm-0.9.8.so libm.so.0); \
fi;
/usr/bin/ld: unrecognized option --allow-shlib-undefined'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
install: libm-0.9.8.so: No such file or directory
make[1]: Leaving directory /usr/src/router/src/uClibc/libm'
#@make -C libpthread shared       

if i comment this out (allow-shlib-undefined) i get a:

if [ -f libm.a ] ; then \
    ../extra/gcc-uClibc/i386-uclibc-gcc --uclibc-use-build-dir -s
-Wl,-warn-common -nostdlib -shared -o libm-0.9.8.so \
        -Wl,-soname,libm.so.0 -Wl,--whole-archive libm.a \
        -Wl,--no-undefined -Wl,-lc; \
    install -d ../lib; \
    rm -f ../lib/libm-0.9.8.so ../lib/libm.so.0; \
    install -m 644 libm-0.9.8.so ../lib; \
    (cd ../lib; ln -sf libm-0.9.8.so libm.so); \
    (cd ../lib; ln -sf libm-0.9.8.so libm.so.0); \
fi;
/usr/src/router/src/uClibc//lib/libc.so: undefined reference to 'main'
collect2: ld returned 1 exit status
install: libm-0.9.8.so: No such file or directory
make[1]: Leaving directory /usr/src/router/src/uClibc/libm' 

so what should i do ??

regards,

--arne 




More information about the uClibc mailing list