Skip to Content.
Sympa Menu

freetds - compiling with unixodbc

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Bill Thompson" <thompbil AT exchange.uk.ml.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: compiling with unixodbc
  • Date: Wed, 31 Jul 2002 05:52:34 -0400


Hi,

I'm trying to compile my freetds with unixodbc.
I've installed unixodbc, and then reconfigured tds
--with-unixodbc=/home/thompbil/unixodbc

I'm now trying to remake freetds, but I get the following link problem,
when trying to create libtdsodbc...

/bin/sh ../../libtool --mode=link gcc -g -O2 -DTDS50 -DUNIXODBC -o
libtdsodbc.la -rpath /home/thompbil/freetds/lib odbc.lo connec
tparams.lo convert_tds2sql.lo convert_sql2string.lo prepare_query.lo
odbc_util.lo ../tds/mem.lo ../tds/token.lo ../tds/util.lo ../td
s/login.lo ../tds/read.lo ../tds/write.lo ../tds/convert.lo
../tds/numeric.lo ../tds/config.lo ../tds/query.lo ../tds/iconv.lo ../td
s/locale.lo ../tds/threadsafe.lo -lglib -lodbcinst -lsocket -lnsl
rm -fr .libs/libtdsodbc.la .libs/libtdsodbc.* .libs/libtdsodbc.*
/usr/ccs/bin/ld -G -h libtdsodbc.so.0 -o .libs/libtdsodbc.so.0.0.0
odbc.lo connectparams.lo convert_tds2sql.lo convert_sql2string.l
o prepare_query.lo odbc_util.lo ../tds/mem.lo ../tds/token.lo
../tds/util.lo ../tds/login.lo ../tds/read.lo ../tds/write.lo ../tds/c
onvert.lo ../tds/numeric.lo ../tds/config.lo ../tds/query.lo
../tds/iconv.lo ../tds/locale.lo ../tds/threadsafe.lo -lglib -lodbcins
t -lsocket -lnsl -lc
ld: fatal: library -lglib: not found
ld: fatal: library -lodbcinst: not found

I can see libodbcinst.so in my unixodbc/lib directory, but the make
doesn't seem to be referencing that directory.

I don't know what libglib.so is, and can't find it anywhere on my system.

any ideas on a) what to change in Freetds to pick up the unixodbc/lib
directory ? b) what libglib is and where to get hold of it, if I can't
find it anywhere....


TIA,

Bill




Archive powered by MHonArc 2.6.24.

Top of Page