Re: ld.so 1.9.1 and glibc 2.0.1

Richard B. Johnson (root@analogic.com)
Sun, 30 Mar 1997 21:52:40 -0500 (EST)


On Sun, 30 Mar 1997 wladams@freenet.tlh.fl.us wrote:

> while running ld.so.1.8.5, compilation and link of glibc 2.0.1
> into /usr/local/lib which is the first library in /etc/ld.so.conf
> resulted in 'unable to load library-inconsistent soname' when
> ldconfig was executed.
>
> after upgrade to ld.so.1.9.1 the glibc 2.0.1
> libraries appear to load (at least ldconfig is not complaining)
> however attempts to use these same libraries from
> a user program result in 'load failed for <arg>' where
> arg is the name of a symbolic link to a glibc 2.0.1 library.
> these links do exist and are valid but do not cross
> directory boundries.
>
> strace of an affected program suggests the library lookup is
> being performed against /usr/lib ie stat("/usr/lib/libc.so.6").
> in my case there is no such file.
>
> i should further mention that 'ldconfig -p' of ld.so.1.9.1
> characterizes all glibc 2.0.1 libraries as 'ELF libc6'.
>
> i dimly recall a changelog notice for ld.so suggesting it was
> being modified to not follow a link for certain cases.
>
> could this be an example? if not can ld..so be functioning
> correctly?
>
> bill

How did you get the new glibc to even compile??? I downloaded it, plus
all the other stuff, tried to compile it and, although the 'C' stuff did
compile, the build failed when it attempted to link with the C-Compiler
Library!!! The result was "multiple-symbol" errors. Why would it link
with the 'C' ___COMPILER___????

/usr/lib/gcc-lib/i586-unknown-linux/2.7.2/libgcc.a(_bb.o): In function `__bb_exit_func':
_bb.o(.text+0x40): multiple definition of `__bb_exit_func'
sysdeps/../libc_pic.a(bb_exit_func.so)(.text+0x0): first defined here
Warning: size of symbol `__bb_exit_func' changed from 306 to 725 in _bb.o
/usr/lib/gcc-lib/i586-unknown-linux/2.7.2/libgcc.a(_bb.o): In function `__bb_init_func':
_bb.o(.text+0x320): multiple definition of `__bb_init_func'
sysdeps/../libc_pic.a(bb_init_func.so)(.text+0x0): first defined here
Warning: size of symbol `__bb_init_func' changed from 85 to 58 in _bb.o
gcc: file path prefix `sysdeps/../csu/' never used
make: *** [sysdeps/../libc.so] Error 1

I tried to send in a report using the "%*^#%^#(8~#" script provided,
and it uses Emacs!! Emacs on this machine is broken and seg-faults.
I had to modify the script to use vi. Then, after all that work,
I never even got a reply.

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.30 on an i586 machine (66.15 BogoMips).
Warning : I read unsolicited mail for $350.00 per hour. Supply billing address.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-