From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25425 invoked by alias); 7 Jan 2008 14:14:49 -0000 Received: (qmail 25413 invoked by uid 22791); 7 Jan 2008 14:14:48 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.227) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Jan 2008 14:14:22 +0000 Received: by wx-out-0506.google.com with SMTP id s18so2494621wxc.14 for ; Mon, 07 Jan 2008 06:14:20 -0800 (PST) Received: by 10.150.201.13 with SMTP id y13mr5420632ybf.53.1199715260448; Mon, 07 Jan 2008 06:14:20 -0800 (PST) Received: by 10.150.58.1 with HTTP; Mon, 7 Jan 2008 06:14:20 -0800 (PST) Message-ID: <530d01580801070614h6afec496k6d26c8daa5b6380c@mail.gmail.com> Date: Tue, 08 Jan 2008 09:35:00 -0000 From: "Diego ." To: gcc-help@gcc.gnu.org Subject: libbind troubles MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00061.txt.bz2 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!