Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: linker problem



Hello Scott!

Scott Stone writes:
 > Ok, this is confusing me badly.  I installed the glibc libraries in
 > /usr/i386-linux/glibc/lib.  I added this path to /etc/ld.so.conf.  I ran
 > ldconfig -v and it found libc.so.6 in the proper place.  However, when I
 > compile a program with:
 > 
 > gcc -o hello hello.c -L/usr/i386-linux/glibc/lib
 > 
 > and then do 'ldd -v hello', it says:
 > 
 > ldd: version 1.9.5
 >         libc.so.6 => not found
 > 
 > 
 > what gives here?

Please note that dynamic linker (ld.so) is not compatible between
Linux C Library (libc5) and GNU C Library (libc6).  There are
ld-linux.so.1 for libc5, and ld-linux.so.2 for libc6.  I remember that
ldd is also different between two version (perhaps).

And more to say, libc6 doesn't use /etc/ld.so.conf.

My suggestion is that place ld-linux.so.2 in /lib.

Hope this helps, 
-- 
NIIBE Yutaka
      GNU C Library Tester <libc-hacker@example.com>
---------------------------------------------------------------
Next TLUG Meeting: 11 April Sat, Tokyo Station Yaesu gate 12:30
Featuring Tague Griffith of Netscape i18n talking on source code
---------------------------------------------------------------
a word from the sponsor:
TWICS - Japan's First Public-Access Internet System
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links