status of shared libs

Johannes Pfau nospam at example.com
Mon Apr 8 01:25:05 PDT 2013


Am Sun, 07 Apr 2013 19:56:15 +0200
schrieb Joseph Rushton Wakeling <joseph.wakeling at webdrake.net>:

> On 04/07/2013 07:38 PM, Johannes Pfau wrote:
> > In theory: Add the .so directory to /etc/ld.so.conf, run ldconfig
> > http://linux.die.net/man/8/ldconfig
> 
> Oh, of course.  I did once know this years ago, but I'd forgotten as
> it's so long since I last installed a shared library into anything
> other than /usr/local/lib.
> 
> > But: This usually requires proper version information in the .so
> > library and a properly set soname. I doubt anyone has looked into
> > that yet.
> 
> Well, I have had no problems with dmd, but when I tried also
> adding /opt/gdc/lib I got the following error message upon running
> ldconfig:
> 
>     /sbin/ldconfig.real: /opt/gdc/lib/libstdc++.so.6.0.18-gdb.py is
> not an ELF file - it has the wrong magic bytes at the start.

Then ldconfig is less picky than I thought ;-) The other problem is
actually a problem in gcc, not gdc specific:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41816

Most linux distributions move that file manually to a different location
when creating the gcc package.


More information about the Digitalmars-d mailing list