[freetds] freeTDS configure works but make doesn't

Vann, David dvann2 at valleyhealthlink.com
Thu May 9 09:13:40 EDT 2013


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.

.  The configure seems to work fine, but the make fails.

Export OBJECT_MODE=64
Export CFLAGS=-maix64
./configure --prefix=/usr/local --with-unixodbc=/usr/local --with-tdsver=8.0 --enable-msdblib 2>&1 | tee configure.log
-- This looks good, but when I run make I get errors.

You can see I enabled MSDBLIB however during the make it fails and it looks like it still wants to compile Sybase.  It's all on fisql.c and I found the objects(.dbcoltype;.dbcollen;.dbcolname;etc)  it's referenced in sybdb.h.  I'm not sure why it's compiling Sybase nor do I understand why it can't find the objects referenced when they're in the TDS source directory.  I've tried setting the srcdir and that didn't help.

Below is a snapshot of the make that fails.
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

Information Services
220 Campus Blvd, Suite 320
Winchester, VA   22601
W:540 536-3213
C:540 532-8309
F:540 536-8989
dvann2 at valleyhealthlink.com<mailto:dvann2 at valleyhealthlink.com>



More information about the FreeTDS mailing list