freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Martin Spott <Martin.Spott AT uni-duisburg.de>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] Solaris linking
- Date: Wed, 8 Dec 2004 10:28:30 +0000 (UTC)
Frediano Ziglio wrote:
> - in src/tds/Makefile find the line that start with libtds_la_LDFLAGS
> and replace with this line
>
> libtds_la_LDFLAGS = -version-info 4:0:0 -export-symbols-regex
> '^(tds_|tdsdump_|tds5_|tds7_).*'
A bit obscure, but functional :-)
I simply modified the Makefile and rebuilt src/tds/ and src/apps/ afer a
'make clean' in each of the directories. I think this is sufficient.
The result on Solaris8/Sparc (gcc-3.4.2):
gcc -shared -Wl,-M -Wl,.libs/libtds.so.4.0.0.exp -Wl,-h -Wl,libtds.so.4
-o .libs/libtds.so.4.0.0 -z allextract ./.libs/libtds_objects.a
../replacements/.libs/libreplacements.a -z defaultextract -lnsl
-lsocket -lc -lc
[...]
foehn: 10:42:25 ~> ldd /opt/freetds/bin/tsql
libncurses.so.5 => /usr/local/lib/libncurses.so.5
libreadline.so.4 => /usr/local/lib/libreadline.so.4
libtds.so.4 => /opt/freetds/lib/libtds.so.4
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
.... on FreeBSD-5.3 everything is fine even after the change:
quickstep: 10:56:43 ~> ldd /opt/freetds/bin/tsql
/opt/freetds/bin/tsql:
libreadline.so.5 => /lib/libreadline.so.5 (0x28077000)
libtds.so.4 => /opt/freetds/lib/libtds.so.4 (0x280a3000)
libc.so.5 => /lib/libc.so.5 (0x280ce000)
libncurses.so.5 => /lib/libncurses.so.5 (0x281a7000)
.... but it still does not serve as a solution for AIX.
I don't have much knowledge about the autoconf/automake stuff .... is
it really _that_ difficult to simply link two libs statically into
libtds ? Well, I believe it is not that easy ;-)
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------
-
Re: [freetds] Solaris linking
, (continued)
-
Re: [freetds] Solaris linking,
Alex S Moore, 12/05/2004
-
Re: [freetds] Solaris linking,
James K. Lowden, 12/05/2004
-
Re: [freetds] Solaris linking,
entropy, 12/05/2004
- Re: [freetds] Solaris linking, Alex S Moore, 12/05/2004
-
Re: [freetds] Solaris linking,
entropy, 12/05/2004
-
Re: [freetds] Solaris linking,
James K. Lowden, 12/05/2004
-
Re: [freetds] Solaris linking,
Martin Spott, 12/06/2004
-
Re: [freetds] Solaris linking,
Frediano Ziglio, 12/07/2004
-
Re: [freetds] Solaris linking,
Martin Spott, 12/07/2004
-
Re: [freetds] Solaris linking,
Frediano Ziglio, 12/07/2004
- Re: [freetds] Solaris linking, Martin Spott, 12/07/2004
- Re: [freetds] Solaris linking, Frediano Ziglio, 12/07/2004
- Re: [freetds] Solaris linking, Martin Spott, 12/08/2004
- Re: [freetds] Solaris linking, Frediano Ziglio, 12/08/2004
- Re: [freetds] Solaris linking, Alex S Moore, 12/08/2004
- Re: [freetds] Solaris linking, Martin Spott, 12/08/2004
- Re: [freetds] Solaris linking, Alex S Moore, 12/08/2004
- Re: [freetds] Solaris linking, Frediano Ziglio, 12/08/2004
-
Re: [freetds] Solaris linking,
Frediano Ziglio, 12/07/2004
-
Re: [freetds] Solaris linking,
Martin Spott, 12/07/2004
- Re: [freetds] Solaris linking, Martin Spott, 12/08/2004
-
Re: [freetds] Solaris linking,
Frediano Ziglio, 12/07/2004
-
Re: [freetds] Solaris linking,
Alex S Moore, 12/05/2004
Archive powered by MHonArc 2.6.24.