Boost logo

Boost-Build :

From: Christoph Ludwig (cludwig_at_[hidden])
Date: 2004-09-19 11:29:55


On Sun, Sep 19, 2004 at 10:08:51AM -0500, Aleksey Gurtovoy wrote:
> Folks,
>
> Could anybody please shed some light on this? Could it be a build issue
> at all, that a successfully built executable doesn't find a standard
> shared library installed in the default location?
>
> Martin Wille writes:
> > Aleksey Gurtovoy wrote:
[...]
> > > ../bin/boost/status/array3.test/gcc-2.95.3-stlport-4.5.3-linux/debug/array3: error while loading shared libraries:
> libstdc++-libc6.3-2.so.3: cannot open shared object file: No such file or directory
[...]
> > > Looks like a local setup/configuration issue to me.
> >
> > I don't think it is a configuration issue here.
> > The library does exist at its default location:
> >
> > > ll /usr/local/gcc-2.95.3/lib/
> > total 4055
> > drwxr-xr-x 3 m m 280 May 27 2003 ./
> > drwxr-xr-x 9 m root 240 May 27 2003 ../
> > drwxr-xr-x 3 m m 88 May 27 2003 gcc-lib/
> > -rw-r--r-- 1 m m 370370 May 27 2003 libiberty.a
> > -rw-r--r-- 1 m m 2462378 May 27 2003 libstdc++-3-libc6.3-2-2.10.0.a
> > -r-xr-xr-x 1 m m 1307235 May 27 2003 libstdc++-3-libc6.3-2-2.10.0.so*
> > lrwxrwxrwx 1 m m 30 May 27 2003 libstdc++-libc6.3-2.a.3 ->
> > libstdc++-3-libc6.3-2-2.10.0.a
> > lrwxrwxrwx 1 m m 31 May 27 2003 libstdc++-libc6.3-2.so.3 ->
> > libstdc++-3-libc6.3-2-2.10.0.so*

Of course, these are obvious questions when one needs to track down
problems with shared libraries but let me ask them anyway:

What does `ldd' report for the executable in question? Can it resolve
the dependencies?

If not, /usr/local/gcc-2.95.3/lib/ does not look like a default library
path. (According to the ld.so(8) man page on my Linux system the only
default paths are /lib and /usr/lib.) Is it mentioned in
/etc/ld.so.conf or in LD_LIBRARY_PATH? (AFAICT, gcc does not link
against its own runtime libraries with `-rpath'. If I test programs
built with different compiler versions I always need to set
LD_LIBRARY_PATH because I keep the respective runtime libraries in
separate directories not listed in /etc/ld.so.conf.)

Christoph

-- 
http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/cludwig.html
LiDIA: http://www.informatik.tu-darmstadt.de/TI/LiDIA/Welcome.html
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk