This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Make errors in cross compiling glibc for ARM


Hello, I searched the archives and couldn't find this problem mentioned
before, so here goes:  I'm building a cross compiler toolchain for
arm-linux using:

binutils 2.10.0.9
gcc-2.95.2
kernel headers from linux 2.4-test1
glibc-2.1.3

I have successfully made binutils and gcc, but I get an error while making
glibc, as follows:

make[1]: Entering directory `/usr/local/src/glibc-2.1.3/db2'
arm-linux-gcc -nostdlib -nostartfiles -o makedb
-Wl,-dynamic-linker=/usr/local/arm-linux/lib/ld-linux.so.2   ../csu/crt1.o
../csu/crti.o `arm-linux-gcc --print-file-name=crtbegin.o` makedb.o
libdb.so.3
-Wl,-rpath-link=..:../math:../elf:../nss:../nis:.:../rt:../resolv:../linuxthreads
../libc.so.6 ../libc_nonshared.a -lgcc `arm-linux-gcc
--print-file-name=crtend.o` ../csu/crtn.o
makedb.o: In function `main':
/usr/local/src/glibc-2.1.3/db2/makedb.c:143: undefined reference to
`db_open'
/usr/local/src/glibc-2.1.3/db2/makedb.c:143: relocation truncated to fit:
R_ARM_PC24 db_open
/usr/local/src/glibc-2.1.3/db2/makedb.c:178: undefined reference to
`db_open'
/usr/local/src/glibc-2.1.3/db2/makedb.c:178: relocation truncated to fit:
R_ARM_PC24 db_open
collect2: ld returned 1 exit status
make[1]: *** [makedb] Error 1
make[1]: Leaving directory `/usr/local/src/glibc-2.1.3/db2'
make: *** [db2/others] Error 2


This is obviously some annoying linking error, but as I don't have too
much experience with this sort of thing, I'm not sure where to look and
what to change.  Any ideas?  Thanks,

Marco Carbone



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]