Skip to Content.
Sympa Menu

freetds - unixodbc library pickup

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Merijn Broeren <merijnb AT iloquent.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: unixodbc library pickup
  • Date: Thu, 3 Oct 2002 18:04:57 +0200


Dear FreeTDS developer team,

I spent this morning getting freetds 0.60 to build on our systems here
and it proved to be quite an interesting challenge. For some kind of
definition of interesting that contains a lot of loud words.

The gist of it is that if you specify --with-unixodbc this sets up the
-I compiler directive, but not the proper -L linker directives. This
makes building libtdsodbc.so difficult if unixodbc is not installed in
/usr/lib or /lib. Which on my systems is the case.

I've made some changes to the build process to it finally compiled, but
can I ask you guys to add something like this to the build process:

ODBC_LIBS=-L$with_unixodbc/lib

in configure.* and then

libtdsodbc_la_LIBADD= $(TDSOBJECTS) $(ODBC_LIBS) -lodbcinst $(NETWORK_LIBS)
$(LIBICONV)

in src/odbc/Makefile.am. You'll need the proper

AC_SUBST(ODBC_LIBS)

as well I guess, or at least $ODBC_LIBS=@ODBC_LIBS@ in strategic places.

Regards,
--
Merijn Broeren | 'I want to understand everything. I want to know every-
Software Geek | thing and put it all together to see what it means.'
| 'Excellent project, it will look very good on your resume.'




Archive powered by MHonArc 2.6.24.

Top of Page