Subject: Re: ld.so finds library, loses library
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 05/16/2007 17:21:08
James K. Lowden wrote:
> $ ldd .libs/bsqlodbc
> .libs/bsqlodbc:
> -lodbcinst.1 => not found
> -lc.12 => /usr/lib/libc.so.12
> -ltdsodbc.0 => /usr/pkg/lib/libtdsodbc.so.0
> -lpthread.0 => /usr/lib/libpthread.so.0
> -lodbcinst.1 => /usr/local/lib/libodbcinst.so.1
> -lodbc.1 => /usr/local/lib/libodbc.so.1
Oh, terrif. No sooner do I press send than I wonder about the
environment. At some point I worked around a problem with icewm thus:
$ env | grep LD_
LD_LIBRARY_PATH=/usr/pkg/share/x11-links/lib
And, lo, my problem goes away when it's unset:
$ (unset LD_LIBRARY_PATH; ./bsqlodbc)
usage: bsqlodbc
[-U username] [-P password]
[...]
Sorry for the noise. Still confused by ldd's output, though.
--jkl