freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] FreeTDS v0.82 doesn't install static libs
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] FreeTDS v0.82 doesn't install static libs
- Date: Tue, 29 Jul 2008 23:57:20 -0400
RW Salnick wrote:
> > RW Salnick wrote:
> > >/
> > />/ What must we do to get v 0.82 to build and install:
> > />/
> > />/ * /usr/local/freetds-0.82/lib/libtdssrv.a
> > />/ * /usr/local/freetds-0.82/lib/libtds.a
> > /
> > http://www.freetds.org/faq.html#where.is.libtds.so
> >
> > Both are built automatically:
...
> > They aren't installed by "make install" because they're not needed for
> > normal applications. You can just copy them to
> > /usr/local/freetds-0.82/lib.
>
> We have done that. And when I try to link to the libraries, this is
> what I get:
>
> cc -o tester -I. -I/usr/local/freetds-0.82/include -L./ -L/usr/local/lib
> -L/usr/local/freetds-0.82/lib tester.c lowlevel.o -lsponsorbilling
> /usr/local/freetds-0.82/lib/libsybdb.a
> /usr/local/freetds-0.82/lib/libtdssrv.a
> /usr/local/freetds-0.82/lib/libtds.a
> /usr/local/freetds-0.82/lib/libsybdb.a(util.o)(.text+0x353): In function
> `tds_gettime_ms':
> /usr/users/rwhite/freetds-0.82/src/tds/util.c:216: undefined
> reference to `clock_gettime'
> /usr/local/freetds-0.82/lib/libsybdb.a(net.o)(.text+0x721): In function
> `goodread':
> /usr/users/rwhite/freetds-0.82/src/tds/net.c:536: undefined
> reference to `gnutls_record_recv'
>
> [ and about a million more of these ]
OK, so you have linker errors. You need to link in, for instance, libc,
which houses clock_gettime(2).
For each undefined reference, try "man <function name>". The LIBRARY
section of the man page should mention the library that provides the
function. Add that to your command line. Repeat as needed.
You're welcome, btw. Instruction on linking to standard libraries is not
really on topic for this list.
--jkl
-
[freetds] FreeTDS v0.82 doesn't install static libs,
RW Salnick, 07/29/2008
- Re: [freetds] FreeTDS v0.82 doesn't install static libs, James K. Lowden, 07/29/2008
- Re: [freetds] FreeTDS v0.82 doesn't install static libs, ZIGLIO, Frediano, VF-IT, 07/30/2008
Archive powered by MHonArc 2.6.24.