freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1
- From: "James K. Lowden" <jklowden AT schemamania.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1
- Date: Sat, 14 Aug 2004 15:17:21 -0400
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.
HTH.
--jkl
-
[freetds] trying to compile freetds-0.62.4 on AIX 5.1,
angelo . magnone, 08/13/2004
-
Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1,
James K. Lowden, 08/14/2004
- Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1, Frediano Ziglio, 08/15/2004
-
Re: [freetds] trying to compile freetds-0.62.4 on AIX 5.1,
James K. Lowden, 08/14/2004
Archive powered by MHonArc 2.6.24.