libbind troubles

Diego .
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

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: 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 =>  (0x00007fffa35fe000) => not found => /lib64/ (0x0000003c77800000) => /usr/lib64/ (0x0000003c6da00000) => /lib64/ (0x0000003c83000000) => /lib64/ (0x0000003c6ee00000) => /lib64/ (0x0000003c6ea00000) => /lib64/ (0x0000003c6e600000) => /lib64/ (0x0000003c80400000) => /lib64/ (0x0000003c7d000000) => /lib64/ (0x0000003c6f200000)
        /lib64/ (0x0000003c6d600000)

the other shared lib could see & find libs on (sysroot)/usr/lib64, why
libbind not? ( file exists.. i checked it before )

any tip??


More information about the Gcc-help mailing list