Re: FreeTDS v0.82 doesn't install static libs

"ZIGLIO, Frediano, VF-IT" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
> 
> 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:
> 
> $ find build -name \*.a | grep tds
> build/src/tds/.libs/libtds.a
> build/src/server/.libs/libtdssrv.a
> 
> 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.  
> 
> HTH.  
> 
> --jkl
> 
> 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 ]
> 

It's expected. While dynamic library usually automatically included needed dependencies
static libraries need explicit dependencies. In this case gnutls and rt or posix4.

freddy77

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
smime.p7s (application/x-pkcs7-signature, 3.1 KB) - not displayed
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.