unixodbc library pickup

Merijn Broeren merijnb at iloquent.com
Thu Oct 3 19:04:57 EDT 2002


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.'



More information about the FreeTDS mailing list