Skip to Content.
Sympa Menu

freetds - Re: [freetds] 0.63 Release Candidate 1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] 0.63 Release Candidate 1
  • Date: Thu, 2 Dec 2004 23:56:28 -0500

joshua stein <jcs AT jcs.org> wrote:
>
> > Well, RC2 should work for you however this patch should solve too
>
> neither works, ld is still finding the older tds library in
> /usr/local/lib.

Hmph. In addition to the version bump, the configure script and your
linker have to see the right library. They don't care about the version
number i.e., they don't care what version they find. Later, the runtime
linker *will* care, but only because the static linker embedded the
version numbers of the shared objects in the exectutable.

New theory: It so happens that tsql is linked before libtds is installed.
Consequently, tsql is linked to the (previously installed) old shared
library ... and fails, because the symbols don't match. If true, a
workaround would be to build without the apps and install, then
reconfigure, build with the apps, install. Should work. $LDFLAGS might
help, too.

I'm not sure how to do it, but it's clear that tsql & friends should not
be reaching out to /usr/local (or whatever) for libtds. Obviously, they
should be linking to the just-built libs that go with them. In fact, they
shouldn't be using shared libraries at all, unless there's no static
available (because of --disable-static).

Controlling the directory lookup order would be some help. Reading the
libtool docs (ugh, again), I don't see how. OTOH, linking statically to
libtds's objects -- especially libtds_objects -- would solve the problem.
I think. According to my latest theory.

Please tell me if the install-and-install-again workaround yields a
complete system, with apps. If we can't find a more elegant answer, I'd
be OK with advising Solaris folks that that's what they'll have to do.

--jkl







Archive powered by MHonArc 2.6.24.

Top of Page