[freetds] freeTDS configure works but make doesn't

Eduard Heimann eheimann at pe-fittinge.de
Thu May 9 15:34:56 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/09/13 15:13, Vann, David wrote:
> Any help would be appreciated.
> 
> I'm trying to run freeTDS on AIX 5.3 64bit.  I've tried versions 0.91 and
> 0.92.79.  I using unixODBC driver manager version 2.3.1.  It has compiled
> cleanly and is running.  It was compiled in 64 bit mode.  The ultimate
> result is to run with Oracle 11gR2 which is also 64 bit.
...
> libtool: link: /usr/local/TDS/freetds-0.91/compile gcc -D_THREAD_SAFE
> -maix64 -W declaration-after-statement -o .libs/fisql fisql.o terminal.o
> edit.o handlers.o interrupt.o  -L/usr/local/lib -L../../dblib/.libs -lsybdb
> ../../replacements/.li bs/libreplacements.a -liconv -lcurses -lreadline
> -lpthreads -Wl,-blibpath:/usr/l ocal/lib:/usr/lib:/lib ld: 0711-317 ERROR:
> Undefined symbol: .dbcoltype ld: 0711-317 ERROR: Undefined symbol:
> .dbcollen ld: 0711-317 ERROR: Undefined symbol: .dbcolname ld: 0711-317
> ERROR: Undefined symbol: .dbdead ld: 0711-317 ERROR: Undefined symbol:
> .dbinit ld: 0711-317 ERROR: Undefined symbol: .dblogin ld: 0711-317 ERROR:
> Undefined symbol: .dbmsghandle ld: 0711-317 ERROR: Undefined symbol:
> .dberrhandle ld: 0711-317 ERROR: Undefined symbol: .dbsetlname ld: 0711-317
> ERROR: Undefined symbol: .dbsetlbool ld: 0711-317 ERROR: Undefined symbol:
> .dbsetllong ld: 0711-317 ERROR: Undefined symbol: .dbsetifile ld: 0711-317
> ERROR: Undefined symbol: .dbsettime ld: 0711-317 ERROR: Undefined symbol:
> .dbsetlogintime ld: 0711-317 ERROR: Undefined symbol: .tdsdbopen ld:
> 0711-317 ERROR: Undefined symbol: .dbsetopt ld: 0711-317 ERROR: Undefined
> symbol: .dbuse ld: 0711-317 ERROR: Undefined symbol: .dbcancel ld: 0711-317
> ERROR: Undefined symbol: .dbexit
> 

My AIX-Experience 15 Years ago (sorry)... my hint is:

try to swap the link order "-lsybdb
../../replacements/.libs/libreplacements.a" to
"../../replacements/.libs/libreplacements.a -lsybdb". At least in AIX4, the
linker was a quite simple minded one pass library extractor. (No dependencies
graph resolver)

Hope this will cure your linker probs!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGL+mAACgkQUzMNXFvaJEYk4ACgq/Qwp4uTzx3AwgWTXGXI3CyI
RHoAoJ1kGzMr8fzS3pq6raRiu6FWByJc
=bf/o
-----END PGP SIGNATURE-----


More information about the FreeTDS mailing list