Skip to Content.
Sympa Menu

freetds - Re: [freetds] linking

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] linking
  • Date: Fri, 04 Jan 2008 16:49:32 +0100


Il giorno mer, 02/01/2008 alle 18.29 -0500, James K. Lowden ha scritto:
> The db-lib unit tests link to the install directories, not to the build
> tree.
>
> $ ldd t0001
> t0001:
> -lpthread.0 => /usr/lib/libpthread.so.0
> -lsybdb.5 => /usr/local/lib/libsybdb.so.5
> -lc.12 => /usr/lib/libc.so.12
>
> $ readelf -d t0001 | grep RPATH
> 0x0000000f (RPATH) Library rpath:
> [/usr/local/lib:/usr/pkg/lib:/usr/users/home/jklowden/freetds/build/src/d
> blib/.libs]
>
> (/usr/local/lib:/usr/pkg/lib comes from my LDFLAGS, I believe.)
>

???

My machine

$ readelf -d t0002 | grep RPATH
0x000000000000000f (RPATH) Library rpath:
[/home/freddy/cpp/freetds/freetds65/src/dblib/.libs]

which is where I work...

> That means you have to run "make install" before "make check". (Well, you
> don't *have* to. But if you run "make check" first, you're running the
> unit test against the installed library!) Not very nice if the user is
> trying to test a new version before installing it.
>
> I haven't figured out quite how, but ISTM the unit tests should link
> statically to their libraries, so we don't have to fool with RPATH and
> dynamic linker settings just for them.
>
> What to do about apps, I don't know. I don't think they should be
> statically linked (except tsql). At the same time, I think it would be
> better if the user could test them before installing them.
>
> $ readelf -d .libs/bsqldb | grep RPATH
> 0x0000000f (RPATH) Library rpath:
> [/usr/local/lib:/usr/pkg/lib]
>

$ readelf -d .libs/bsqldb | grep RPATH

(nothing returned)

but bsqldb produced by libtool should define proper LD_LIBRARY_PATH

>
> Suggestions, anyone?
>

currently no.

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page