[freetds] AIX 5.3 Make problem

James K. Lowden jklowden at freetds.org
Fri Jul 25 15:27:08 EDT 2008

Andrew Russell wrote:
> /bin/sh ../../libtool --tag=CC --mode=link xlc_r -D_THREAD_SAFE  -g  
> -L/usr/local/easysoft/unixODBC/lib -o bsqlodbc  bsqlodbc-bsqlodbc.o
> -lodbc   ../replacements/libreplacements.la  -lpthreads  libtool: link:
> xlc_r -D_THREAD_SAFE -g -o bsqlodbc bsqlodbc-bsqlodbc.o 
> -L/usr/local/easysoft/unixODBC/lib -lodbc
> ../replacements/.libs/libreplacements.a -lpthreads ld: 0711-317 ERROR:
> Undefined symbol: .SQLGetDiagField

That seems to mean /usr/local/easysoft/unixODBC/lib/libodbc.* is not
exporting the ODBC functions.  I'm not an AIX user and can't tell you
specifically what tool to use to check that.  On NetBSD we use nm(1):

$ nm /usr/local/lib/libodbc.so.1 | grep SQLGetDiagField
0001a270 T SQLGetDiagField
0001a234 T SQLGetDiagFieldA
0002dd00 T SQLGetDiagFieldW

and the T means the library provides the function.  



More information about the FreeTDS mailing list