[freetds] AIX 5.3 Make problem

James K. Lowden jklowden at freetds.org
Fri Jul 25 16:05:12 EDT 2008


Andrew Russell wrote:
> "James K. Lowden" <jklowden at freetds.org> 7/25/2008 2:27 PM
> > 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
> 
> When I run nm on that file, I get nothing.  Where do I go from here?

Back up and rebuild unixODBC such that it produces a useable library.  

Understand I don't *know* AIX nm(1).  But your report and symptoms both
indicate the library is missing required symbols.  

--jkl



More information about the FreeTDS mailing list