I frequently seem to run into trouble when compiling software using the dev-img (1.6), While linking, I get errors related to stat64 not being available, E.g. when compiling cpio I get:
CODE
gcc -g -O2 -o cpio copyin.o copyout.o copypass.o defer.o dstring.o global.omain.o tar.o util.o filemode.o idcache.o makepath.o userspec.o ../lib/libcpio.a
main.o: In function `parse_opt':
/mnt/card/Documents/Develop/cpio-2.6/src/main.c:413: undefined reference to `stat64'
main.o: In function `process_args':
/mnt/card/Documents/Develop/cpio-2.6/src/main.c:594: undefined reference to `stat64'
collect2: ld returned 1 exit status
make[2]: *** [cpio] Error 1
make[2]: Leaving directory `/usr/mnt.rom/card/Documents/Develop/cpio-2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/mnt.rom/card/Documents/Develop/cpio-2.6'
make: *** [all] Error 2
main.o: In function `parse_opt':
/mnt/card/Documents/Develop/cpio-2.6/src/main.c:413: undefined reference to `stat64'
main.o: In function `process_args':
/mnt/card/Documents/Develop/cpio-2.6/src/main.c:594: undefined reference to `stat64'
collect2: ld returned 1 exit status
make[2]: *** [cpio] Error 1
make[2]: Leaving directory `/usr/mnt.rom/card/Documents/Develop/cpio-2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/mnt.rom/card/Documents/Develop/cpio-2.6'
make: *** [all] Error 2
I am sure this has been dealt with, or there is a workaround. BTW the debian arm cross-compiler package seems to have stat64 implemented, as I was able to cross compile cpio, but still I would like to compile packages natively
Any clues?
Andrew
