unixodbc library pickup

Thompson, Bill D (London) ThompBil at exchange.uk.ml.com
Thu Oct 3 18:07:50 EDT 2002


Merjin,

Or you just make sure that the unixodbc/lib directory is in your
LD_LIBRARY_PATH.
You'll need it there anyway, at runtime.

Bill

> -----Original Message-----
> From:	Merijn Broeren [SMTP:merijnb at iloquent.com]
> Sent:	Thursday, October 03, 2002 5:05 PM
> To:	TDS Development Group
> Subject:	[freetds] unixodbc library pickup
> 
> 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.'
> 
> ---
> You are currently subscribed to freetds as: [thompbil at exchange.uk.ml.com]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')




More information about the FreeTDS mailing list