Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2004 14:20:09 -0700
From:      Sean McNeil <sean@mcneil.com>
To:        freebsd-current@freebsd.org
Subject:   new binutils causes all kinds of link problems
Message-ID:  <1087420809.20757.6.camel@server.mcneil.com>

next in thread | raw e-mail | index | archive | help
I've noticed that ld works differently now.  Before, if you link with a
shared library it will pull in that library and all the libraries the
shared library was linked with.  Now, that isn't the case.

For instance, if you link with libintl.so it now complains about

/usr/bin/ld: warning: libiconv.so.3, needed by
/usr/local/lib/libintl.so, not found (try using -rpath or -rpath-link)

ldd shows

server# ldd /usr/local/lib/libintl.so
/usr/local/lib/libintl.so:
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x200925000)

yet ldconfig shows it knows about it:

server# ldconfig -r | grep libiconv
        344:-liconv.3 => /usr/local/lib/libiconv.so.3

This was during configure of a gnome package

configure:2642: cc -O -pipe -g  -I/usr/local/include -L/usr/local/lib
-lintl conftest.c  >&5

Cheers,
Sean




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1087420809.20757.6.camel>