Opened by Victor Martinez - 2013-09-10
Last edited by Victor Martinez - 2013-09-13
FS#53 - shadow: linking with host
/bin/sh ../libtool –tag=CC –mode=link arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o pwunconv pwunconv.o ../libmisc/libmisc.a ../lib/libshadow.la
libtool: link: arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o pwunconv pwunconv.o ../libmisc/libmisc.a ../lib/.libs/libshadow.a
arm-crux-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../libmisc -DLOCALEDIR=\"/usr/share/locale\" -O2 -pipe -mfloat-abi=hard -MT useradd.o -MD -MP -MF .deps/useradd.Tpo -c -o useradd.o useradd.c
mv -f .deps/useradd.Tpo .deps/useradd.Po
/bin/sh ../libtool –tag=CC –mode=link arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o useradd useradd.o ../libmisc/libmisc.a ../lib/libshadow.la -lacl -lattr
libtool: link: arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o useradd useradd.o ../libmisc/libmisc.a ../lib/.libs/libshadow.a /des/crux-arm/3.0/toolchain/clfs/usr/lib/libacl.so /usr/lib/libattr.so /des/crux-arm/3.0/toolchain/clfs/usr/lib/libattr.so -Wl,-rpath -Wl,/des/crux-arm/3.0/toolchain/clfs/usr/lib -Wl,-rpath -Wl,/des/crux-arm/3.0/toolchain/clfs/usr/lib
/usr/lib/libattr.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: * [useradd] Error 1
make[2]: Leaving directory `/des/crux-arm/3.0/crossrootfs/shadow/work/src/shadow-4.1.5.1/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/des/crux-arm/3.0/crossrootfs/shadow/work/src/shadow-4.1.5.1'
make: * [all] Error 2
/bin/sh ../libtool –tag=CC –mode=link arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o pwunconv pwunconv.o ../libmisc/libmisc.a ../lib/libshadow.la
libtool: link: arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o pwunconv pwunconv.o ../libmisc/libmisc.a ../lib/.libs/libshadow.a
arm-crux-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I.. -I../lib -I../libmisc -DLOCALEDIR=\"/usr/share/locale\" -O2 -pipe -mfloat-abi=hard -MT useradd.o -MD -MP -MF .deps/useradd.Tpo -c -o useradd.o useradd.c
mv -f .deps/useradd.Tpo .deps/useradd.Po
/bin/sh ../libtool –tag=CC –mode=link arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o useradd useradd.o ../libmisc/libmisc.a ../lib/libshadow.la -lacl -lattr
libtool: link: arm-crux-linux-gnueabihf-gcc -O2 -pipe -mfloat-abi=hard -o useradd useradd.o ../libmisc/libmisc.a ../lib/.libs/libshadow.a /des/crux-arm/3.0/toolchain/clfs/usr/lib/libacl.so /usr/lib/libattr.so /des/crux-arm/3.0/toolchain/clfs/usr/lib/libattr.so -Wl,-rpath -Wl,/des/crux-arm/3.0/toolchain/clfs/usr/lib -Wl,-rpath -Wl,/des/crux-arm/3.0/toolchain/clfs/usr/lib
/usr/lib/libattr.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: * [useradd] Error 1
make[2]: Leaving directory `/des/crux-arm/3.0/crossrootfs/shadow/work/src/shadow-4.1.5.1/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/des/crux-arm/3.0/crossrootfs/shadow/work/src/shadow-4.1.5.1'
make: * [all] Error 2
Again, using lt_sysroot to point to our CLFS fix the link problem:
https://crux-arm.nu/gitweb?p=crossrootfs.git;a=commit;h=7649a0ac3fa78b6dcf9f3cdafddacbbb23b6079c