Re: shared libraries and libc6
Ralf Baechle <ralf@tbird.cobaltmicro.com> writes:
>
> On Sun, Oct 19, 1997 at 10:01:39PM +0200, Christoph Martin wrote:
> > J.J.Troup@comp.brad.ac.uk (James Troup) writes:
> >
>
> Never use ld directly. GCC knows about certain system dependencies and
> how to handle them. Instead do something like
>
> gcc -shared -o libsocks.so.4.3 -Wl,-soname,libsocks.so.4 -Wl,--whole-archive \
> libsocks.a -Wl,--no-whole-archive -lc
>
> Note the -lc statement at the end, not the beginning. I suspect that's what
> is blowing up your linker. Depending of the library making the DSO use
> DT_SYMBOLIC might also be a good idea. Also note that the ld of binutils 2.7
> will blow up when you link against lc. It will pull in the entire static
> libc and produce a bad DSO.
>
libsocks.so still depends on libc5:
> ldd /usr/lib/libsocks.so
> libc.so.5 => /lib/libc.so.5
> libc.so.6 => /lib/libc.so.6
> ld-linux.so.2 => /lib/ld-linux.so.2
I don't know why.
I have the following versions installed:
binutils 2.8.1-2
libc5 5.4.33-3
libc6 2.0.5c-0.1
libc6-dev 2.0.5c-0.1
Also libc6 depends on libc5:
> ldd /lib/libc.so.6
> libc.so.5 => /lib/libc.so.5
> ld-linux.so.2 => /lib/ld-linux.so.2
What is the problem?
Christoph
--
============================================================================
Christoph Martin, Uni-Mainz, Germany
Internet-Mail: Christoph.Martin@Uni-Mainz.DE
--------------export-a-crypto-system-sig -RSA-3-lines-PERL------------------
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: