`ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

`ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

n.g.
hi,

i'm building some package on a debian testing system, the tools are listed here:
/usr/local/bin/gcc-4.0.1 (compiled from source)
/usr/bin/ld (system default)

my question is : `ld' keep using old libraries found in `/usr/lib',
although there are new ones in `/usr/local/lib',

for example, `ld -verbose' showes this:
``
libgnomeui-2.so.0 needed by /usr/local/lib/libpanel-applet-2.so
found libgnomeui-2.so.0 at /usr/bin/../lib/libgnomeui-2.so.0
''

and i can find in `/etc/ld.so.cache':
``
libgnomeui-2.so.0
/usr/local/lib/libgnomeui-2.so.0
libgnomeui-2.so.0
/usr/lib/libgnomeui-2.so.0
''

doesn't this say that `ld' should use
`/usr/local/lib/libgnomeui-2.so.0' for linking?


`/etc/ld.so.conf' contains :
``
/usr/local/lib
/usr/X11R6/lib
''
Reply | Threaded
Open this post in threaded view
|

Re: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

H.J. Lu-27
On Sun, Oct 23, 2005 at 06:52:23PM +0800, PK wrote:

> hi,
>
> i'm building some package on a debian testing system, the tools are listed here:
> /usr/local/bin/gcc-4.0.1 (compiled from source)
> /usr/bin/ld (system default)
>
> my question is : `ld' keep using old libraries found in `/usr/lib',
> although there are new ones in `/usr/local/lib',
>
> for example, `ld -verbose' showes this:
> ``
> libgnomeui-2.so.0 needed by /usr/local/lib/libpanel-applet-2.so
> found libgnomeui-2.so.0 at /usr/bin/../lib/libgnomeui-2.so.0
> ''
>
> and i can find in `/etc/ld.so.cache':
> ``
> libgnomeui-2.so.0
> /usr/local/lib/libgnomeui-2.so.0
> libgnomeui-2.so.0
> /usr/lib/libgnomeui-2.so.0
> ''
>
> doesn't this say that `ld' should use
> `/usr/local/lib/libgnomeui-2.so.0' for linking?
>

What is the command line passed to ld?


H.J.
Reply | Threaded
Open this post in threaded view
|

Re: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

n.g.
`ld -v /path/to/many/file.o' no special options used, ( /usr/bin/ld, v2.16 )
after that i installed a new build of ld( /usr/local/bin/ld, v2.16 ),
and the error didn't come out again.


On 10/23/05, H. J. Lu <[hidden email]> wrote:

> On Sun, Oct 23, 2005 at 06:52:23PM +0800, PK wrote:
> > hi,
> >
> > i'm building some package on a debian testing system, the tools are listed
> here:
> > /usr/local/bin/gcc-4.0.1 (compiled from source)
> > /usr/bin/ld (system default)
> >
> > my question is : `ld' keep using old libraries found in `/usr/lib',
> > although there are new ones in `/usr/local/lib',
> >
> > for example, `ld -verbose' showes this:
> > ``
> > libgnomeui-2.so.0 needed by /usr/local/lib/libpanel-applet-2.so
> > found libgnomeui-2.so.0 at /usr/bin/../lib/libgnomeui-2.so.0
> > ''
> >
> > and i can find in `/etc/ld.so.cache':
> > ``
> > libgnomeui-2.so.0
> > /usr/local/lib/libgnomeui-2.so.0
> > libgnomeui-2.so.0
> > /usr/lib/libgnomeui-2.so.0
> > ''
> >
> > doesn't this say that `ld' should use
> > `/usr/local/lib/libgnomeui-2.so.0' for linking?
> >
>
> What is the command line passed to ld?
>
>
> H.J.
>


--
all born, to be dying
Reply | Threaded
Open this post in threaded view
|

Re: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

H.J. Lu-27
On Wed, Oct 26, 2005 at 09:50:38PM +0800, PK wrote:
> `ld -v /path/to/many/file.o' no special options used, ( /usr/bin/ld, v2.16 )
> after that i installed a new build of ld( /usr/local/bin/ld, v2.16 ),
> and the error didn't come out again.

Your /usr/bin/ld doesn't look /usr/local/lib.


H.J.
Reply | Threaded
Open this post in threaded view
|

Re: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

n.g.
yeah, i think so, but i did found </usr/local/lib> in the output of `ld -v'

On 10/26/05, H. J. Lu <[hidden email]> wrote:

> On Wed, Oct 26, 2005 at 09:50:38PM +0800, PK wrote:
> > `ld -v /path/to/many/file.o' no special options used, ( /usr/bin/ld, v2.16
> )
> > after that i installed a new build of ld( /usr/local/bin/ld, v2.16 ),
> > and the error didn't come out again.
>
> Your /usr/bin/ld doesn't look /usr/local/lib.
>
>
> H.J.
>


--
all born, to be dying
Reply | Threaded
Open this post in threaded view
|

Re: `ld' keep using old libraries in `/usr/lib' rather than `/usr/local/lib'

n.g.
maybe its distributor related problem,
i haven't test it install new ld to /usr

On 10/26/05, PK <[hidden email]> wrote:

> yeah, i think so, but i did found </usr/local/lib> in the output of `ld -v'
>
> On 10/26/05, H. J. Lu <[hidden email]> wrote:
> > On Wed, Oct 26, 2005 at 09:50:38PM +0800, PK wrote:
> > > `ld -v /path/to/many/file.o' no special options used, ( /usr/bin/ld,
> v2.16
> > )
> > > after that i installed a new build of ld( /usr/local/bin/ld, v2.16 ),
> > > and the error didn't come out again.
> >
> > Your /usr/bin/ld doesn't look /usr/local/lib.
> >
> >
> > H.J.
> >
>
>
> --
> all born, to be dying
>


--
all born, to be dying