[freetds] 0.63 Release Candidate 1

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Wed Dec 1 03:50:11 EST 2004


> From: James K. Lowden
> Sent: mercoledì 1 dicembre 2004 3.22
> 
> joshua stein <jcs at jcs.org> wrote:
> > building on openbsd-current i386:
> > 
> > [...]
> > Making all in apps
> > source='tsql.c' object='tsql.o' libtool=no  depfile='.deps/tsql.Po'
> > tmpdepfile='.deps/tsql.TPo'  depmode=gcc /bin/sh ../../depcomp  cc
> > -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include  
> > -D_FREETDS_LIBRARY_SOURCE -I/usr/local/include -DDEBUG=1 -Wall
> > -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long  
> -O2 -pipe -c
> > `test -f 'tsql.c' || echo './'`tsql.c/bin/sh ../../libtool 
> --mode=link
> > cc  -O2 -pipe   -L/usr/local/lib -o tsql  tsql.o -lncurses  
> -lreadline
> > ../tds/libtds.la  -lc mkdir .libs
> > cc -O2 -pipe -o .libs/tsql tsql.o  -L/usr/local/lib 
> -lncurses -lreadline
> > -L../tds/.libs -ltds -liconv -Wl,-rpath,/usr/local/lib
> > tsql.o(.text+0xd62): In function `main':: undefined reference to
> > `tds_free_connection' tsql.o(.text+0xd87): In function `main':
> > : undefined reference to `tds_free_connection'
> > collect2: ld returned 1 exit status
> 
> Thank you for reporting this.  
> 
> I bumped the major version number of libtds.  
> 
> In 0.62, "tds_free_connection" was called "tds_free_connect()".  
> 

This will fix the problem however I don't understand where does -L/usr/local/lib came... The line that call libtool came from our Makefile but I didn't fine any reference to /usr/local in my Makefile.in. I suspect some test in configure or an additional configuration... Adding a function do not cause a version bump however if linker found old library before you can have a undefined reference.
Joshua, do you set some LDFLAGS/CFLAGS ??

freddy77


More information about the FreeTDS mailing list