Skip to Content.
Sympa Menu

freetds - Re: [freetds] 0.63 Release Candidate 1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: joshua stein <jcs AT jcs.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] 0.63 Release Candidate 1
  • Date: Wed, 1 Dec 2004 10:46:36 -0600

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

yes, the /usr/local/lib was coming from the --with-libiconv-prefix
option, which the openbsd port uses.

should libtool be called with '-L../tds/.libs' before any other
libraries added by configure/LDFLAGS?

this is how it is now in src/apps:

/bin/sh ../../libtool --mode=link cc -O2 -pipe -L/usr/local/lib -o tsql
tsql.o -lncurses -lreadline ../tds/libtds.la -lc
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

if i put a -L../tds/.libs before the -L/usr/local/lib, it links
correctly:

/bin/sh ../../libtool --mode=link cc -O2 -pipe -L../tds/.libs
-L/usr/local/lib -o tsql tsql.o -lncurses -lreadline ../tds/libtds.la -lc
cc -O2 -pipe -o .libs/tsql tsql.o
-L/usr/ports/databases/freetds/w-freetds-0.63RC2/freetds-0.63RC2/src/tds/.libs
-L/usr/local/lib -lncurses -lreadline -L../tds/.libs -ltds -liconv
-Wl,-rpath,/usr/local/lib
creating tsql

the easy way to fix this is to just uninstall the current freetds
package before compiling, but since this is for the openbsd ports
tree, i can't control what other people will do when building the
port.




Archive powered by MHonArc 2.6.24.

Top of Page