libbind troubles
Diego .
eljedi@gmail.com
Tue Jan 8 09:35:00 GMT 2008
Hi everyone,
It seems my cross compiler is startting running. I'm trying to
cross-compile perl, but i got an error while running configure.gnu:
./configure.gnu -Dcc=/opt/fc4_64/host-x86_64-redhat-linux-gnu/bin/gcc
---- output LOG -----
I used the command:
/opt/fc4_64/host-x86_64-redhat-linux-gnu/bin/gcc -o try -O2
-fno-strict-aliasing -I/usr/local/include -L/usr/local/lib try.c
-lbind -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil
./try
and I got the following output:
try.c: In function 'main':
try.c:2: warning: incompatible implicit declaration of built-in function 'exit'
./try: error while loading shared libraries: libbind.so.3: cannot open
shared object file: No such file or directory
The program compiled OK, but exited with status 127.
You have a problem. Shall I abort Configure [y]
Ok. Stopping Configure.
------------------------------------
I got bind-libs on opt/fc4_64/host-x86_64-redhat-linux-gnu/usr/lib64 (
i instaled both: bind-libs for i386 and x64_86, both from x86_64 yum
repository ). When i make ldd on try i got this:
# ldd UU/try
linux-vdso.so.1 => (0x00007fffa35fe000)
libbind.so.3 => not found
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003c77800000)
libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x0000003c6da00000)
libdb-4.3.so => /lib64/libdb-4.3.so (0x0000003c83000000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003c6ee00000)
libm.so.6 => /lib64/libm.so.6 (0x0000003c6ea00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003c6e600000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003c80400000)
libutil.so.1 => /lib64/libutil.so.1 (0x0000003c7d000000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003c6f200000)
/lib64/ld-linux-x86-64.so.2 (0x0000003c6d600000)
the other shared lib could see & find libs on (sysroot)/usr/lib64, why
libbind not? ( file exists.. i checked it before )
any tip??
Thanks!
More information about the Gcc-help
mailing list