public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Diego ." <eljedi@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: libbind troubles
Date: Tue, 08 Jan 2008 09:35:00 -0000	[thread overview]
Message-ID: <530d01580801070614h6afec496k6d26c8daa5b6380c@mail.gmail.com> (raw)

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!

             reply	other threads:[~2008-01-07 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08  9:35 Diego . [this message]
2008-01-08 10:52 ` Tom St Denis
2008-01-08 15:11   ` Diego .

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530d01580801070614h6afec496k6d26c8daa5b6380c@mail.gmail.com \
    --to=eljedi@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).