Skip to Content.
Sympa Menu

freetds - Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1
  • Date: Sun, 15 Aug 2004 10:31:12 +0200

Il sab, 2004-08-14 alle 21:17, James K. Lowden ha scritto:
> On Fri, 13 Aug 2004 angelo.magnone AT rbc.com wrote:
> > I keep getting the following error message...
> >
> > Making all in apps
> > if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> > -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DD
> > BUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -g
> > -O2-MT tsql.o -MD -MP -MF ".deps/tsql.Tpo" -c -o tsql.o `
> > est -f 'tsql.c' || echo './'`tsql.c; then mv ".deps/tsql.Tpo"
> > ".deps/tsql.Po"; else rm -f ".deps/tsql.Tpo"; exit 1; fi
> > /bin/sh ../../libtool --mode=link gcc -g -O2 -o tsql tsql.o
> > -lcurses ../tds/libtds.la
> > mkdir .libs
> > gcc -g -O2 -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv
> > -Wl,-blibpath:/usr/local/lib:/df3/utils/perlDev/usr/local/bi
> > /../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.3:/df3/utils/perlDev/usr/loc
> > al/bi n/../lib/gcc-lib:/df3/utils/perlDev/usr/local/bin/../li
> > /gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.3/../../..:/usr/local/lib:/usr/lib:
> > /lib ld: 0711-317 ERROR: Undefined symbol: .tds_submit_query
> > ld: 0711-317 ERROR: Undefined symbol: .tds_process_result_tokens
> > ld: 0711-317 ERROR: Undefined symbol: .tds_client_msg
>
> The Makefile constrains the set of symbols exported by the various
> libraries. That confuses some linkers, including mine. IMO we need to
> resolve the issue (no pun intended) before the 0.63 release.
>
> After running ./configure, I run this little script:
>
> for T in src/*/Makefile
> do
> sed 's/-export-symbols-regex.*$//' $T \
> | diff -u $T - | patch
> done
>
> It looks for "-export-symbols-regex" in the Makefiles, and deletes from
> there to end of line. That unconstrains the exported symbol list, which
> should make your linker happier.
>

This has noting to do with -export-symbols-regex cause libtds has not
such restriction and tsql use only libtds. I don't know AIX... Are there
nm and/or objdump programs ?

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page