Re: Compiled some packages
Hi,
On Thu, Jun 03, 1999 at 12:24:09AM +0300, Kalle Olavi Niemitalo wrote:
> Then I tried examining the problem:
>
> $ ldd debian/aalib-bin/usr/bin/aainfo
> BUG IN DYNAMIC LINKER ld.so: rtld.c: 787: dl_main: Assertion `_dl_rtld_map.l_prev->l_next == _dl_rtld_map.l_next' failed!
This one looks BAD!
> $ debian/aalib-bin/usr/bin/aainfo
> debian/aalib-bin/usr/bin/aainfo: error in loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
> $ echo $LD_LIBRARY_PATH
This one is probably easy. The aainfo binary has no RPATH
information, and ld.so only looks in /lib. (Roland knows about).
Please, when you have X installed, set LD_LIBRARY_PATH to /X11R6/lib.
Not only before running X stuff, ALSO WHENPREPARING PACKAGES.
Either way, the linker should not give such a horrible error message. But
try again with LD_LIBARY_PATH set, and we will see if it works then.
The lD_LIBRARY_PATH is hopefully just a temporary solution. Ideally, ld.so
would learn to examine /etc/ld.so.conf
> $ cat /etc/ld.so.conf
> /usr/X11R6/lib
> $ LD_LIBRARY_PATH=/X11R6/lib debian/aalib-bin/usr/bin/aainfo
> (this way, the program works and says it supports X)
>
> What is causing this? Rebooting had no effect.
The lack of RPATH and the assumption RPATH would always be set when the
linker was written (OR the assumption all libraries would be in /lib when no
RPATh is set). Roland will have something to say here (as he wrote the
linker).
LD_LIBRARY_PATH should be set for now. Can you also try
LD_LIBRARY_PATH=/X11R6/lib ldd ..../bin/aainfo
?
> > You may have to fix the xmkmf and gcccmakedepend scripts
> > (remove the space after variablename= in the script.
>
> OK. I have to ask though, where did the spaces come from in the
> first place?
I _wish_ I knew. Really. It troubles me. It sneaked in during "make
install", I think, but I am not sure. If oyu are interested in examining X,
I can send you my patches agianst the Debian X package.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org finger brinkmd@
Marcus Brinkmann GNU http://www.gnu.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09
Reply to: