freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] Solaris linking
- Date: Thu, 9 Dec 2004 09:50:31 +0100
>
> Frediano Ziglio wrote:
>
> > This should fix problems even on AIX (as you and James
> suggest it use
> > static linking for tsql).
>
> If you tell me what you intended to change, I'll have a look at the
> details and see if it worked out. Unfortunately we didn't reach the
> goal of compiling the whole stuff right out of the box. AIX:
>
> make[2]: Entering directory `/usr/local/src/freetds-0.63RC3/src/apps'
> /bin/sh ../../libtool --mode=link gcc -mcpu=604e -mtune=604e
> -mpowerpc-gpopt -mpowerpc-gfxopt -O3 -L/opt/gnu/lib -L/usr/local/lib
> -L/opt/freeware/lib -static-libgcc -s -L/opt/unixODBC/lib -o freebcp
> freebcp.o ../dblib/libsybdb.la -lc
> gcc -mcpu=604e -mtune=604e -mpowerpc-gpopt -mpowerpc-gfxopt -O3
> -static-libgcc -s -o .libs/freebcp freebcp.o -L/opt/gnu/lib
> -L/usr/local/lib -L/opt/freeware/lib -L/opt/unixODBC/lib
> -L../dblib/.libs -lsybdb -lc
>
> -Wl,-blibpath:/opt/freetds/lib:/opt/gnu/lib:/usr/local/lib:/op
> t/freeware/lib:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.
0/3.3.2/powerpc:/opt/freeware/lib/gcc->
lib/powerpc-ibm-aix5.1.0.0/3.3.2:/opt/freeware/lib/gcc-lib/pow
erpc-ibm-aix5.1.0.0/3.3.2/../../..:/usr/lib:/lib
> ld: 0711-317 ERROR: Undefined symbol: .tdsdump_open
>
>
Grrr.... AIX it's a true nighmare. I don't understand why yesterday it
works and now not. Perhaps it's related to the same issue of library
include. It seems that this gcc doesn't support relative patch in
libraries... it's possible that linker found dblib in /usr/local/lib
before ../dblib/.libs. I'll try to avoid this case
> Solaris:
>
> make[2]: Entering directory `/usr/local/src/freetds-0.63RC3/src/apps'
> /bin/bash ../../libtool --mode=link gcc -g -O2 -o tsql tsql.o
> ../replacements/libreplacements.la ../tds/libtds_objects.la -lnsl
> -lsocket -static-libgcc -lncurses -lreadline -lc
> gcc -g -O2 -o tsql tsql.o -static-libgcc
> ../replacements/.libs/libreplacements.a
> ../tds/.libs/libtds_objects.a
> -lnsl -lsocket -lncurses -lreadline -lc
> Undefined first referenced
> symbol in file
> tds_sys_iconv
> ../tds/.libs/libtds_objects.a(iconv.o)
> tds_sys_iconv_close
> ../tds/.libs/libtds_objects.a(iconv.o)
> vasprintf
> ../tds/.libs/libtds_objects.a(query.o)
> asprintf
> ../tds/.libs/libtds_objects.a(login.o)
> tds_sys_iconv_open
> ../tds/.libs/libtds_objects.a(iconv.o)
>
Fixed in CVS, I was able to reproduce issue using --disable-libiconv. I
included this test in misc/test-dist.sh
>
> Martin.
> BTW: To ease 'configure' I use this script:
> ftp://ftp.uni-duisburg.de/Databases/Sybase/FreeTDS/configure
Good. Why did you disable static library ?
freddy77
-
RE: [freetds] Solaris linking,
Lowden, James K, 12/07/2004
- <Possible follow-up(s)>
- RE: [freetds] Solaris linking, Lowden, James K, 12/08/2004
-
RE: [freetds] Solaris linking,
ZIGLIO, Frediano, VF-IT, 12/09/2004
- Re: [freetds] Solaris linking, Martin Spott, 12/09/2004
Archive powered by MHonArc 2.6.24.