[freetds] freeTDS configure works but make doesn't

Vann, David dvann2 at valleyhealthlink.com
Sat May 11 08:07:25 EDT 2013


Are there any CC or CFLAGS or LD_LIBRARY_PATH or LIBPATH for aix that need to be set during the configure.  Or are there any LDFLAGS that would fix the compile since the make is failing?  I've tried everything I can think of.

-----Original Message-----
From: Vann, David 
Sent: Saturday, May 11, 2013 7:45 AM
To: 'FreeTDS Development Group'
Subject: RE: [freetds] freeTDS configure works but make doesn't

I can't get that to work.

I tried running configure with --disable-shared and now make and make install work, but that's not going to work for what I'm trying to do.  At least I don't think it will.  I'm trying to query MS SQL from an Oracle DB and I can't do that w/o the shared object.

-----Original Message-----
From: freetds-bounces at lists.ibiblio.org [mailto:freetds-bounces at lists.ibiblio.org] On Behalf Of Eduard Heimann
Sent: Thursday, May 09, 2013 3:35 PM
To: freetds at lists.ibiblio.org
Subject: Re: [freetds] freeTDS configure works but make doesn't

-----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-----
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds


More information about the FreeTDS mailing list