Re: ld.so finds library, loses library

"James K. Lowden" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.