freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem)
- From: Justin T Pryzby <justinp AT norchemlab.com>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem)
- Date: Mon, 23 Sep 2013 11:20:33 -0700
On Mon, Sep 23, 2013 at 01:42:27PM -0400, James K. Lowden wrote:
> On Mon, 23 Sep 2013 08:53:31 +0100 "Marco A. Ferra" <MAFerra AT isq.pt> wrote:
>
> > Regarding Justin Pryzby's question on "freetds on solaris 11: symbol
> > scope specifies local binding" [1] I'm also having a hard time
> > compiling FreeTDS 0.91 from source on Solaris 11. The error is:
[...]
> My GNU ld manual doesn't mention options such as those on your command
> line, e.g. allextract and defaultextract. Since those options are
> accepted by the linker, I have to believe you're using the Solaris
> linker. Perhaps Solaris's compiler, too?
Not sure about Marco, but I wasn't; ./configure gives:
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
There *is* a linker script being used:
https://lists.ibiblio.org/sympa/arc/freetds/2013q3/028467.html
> libtool: link: echo "{ global:" > .libs/libct.so.4.0.0.exp
> libtool: link: cat .libs/libct.exp | /usr/bin/gsed -e "s/\(.*\)/\1;/" >>
> .libs/libct.so.4.0.0.exp
> libtool: link: echo "local: *; };" >> .libs/libct.so.4.0.0.exp
> libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-M
> -Wl,.libs/libct.so.4.0.0.exp -Wl,-h -Wl,libct.so.4 -o .libs/libct.so.4.0.0
> .libs/ct.o .libs/cs.o .libs/blk.o .libs/ctutil.o -Wl,-z -Wl,allextract
> ../tds/.libs/libtds.a ../replacements/.libs/libreplacements.a -Wl,-z
> -Wl,defaultextract -lnsl -lsocket -lc -pthreads -Wl,-Bsymbolic -pthreads
I guess that is the problem, but I don't know how to fix it and unable
to find a magic set of compile options to work around it (besides
disable-shared, which ultimately precludes compiling DBD::Sybase).
This also doesn't fix it:
./configure CC=gcc LD=gld
Justin
-
[freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
Marco A. Ferra, 09/23/2013
- Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem), Justin T Pryzby, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
James K. Lowden, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
Justin T Pryzby, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
James K. Lowden, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
Justin T Pryzby, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
James K. Lowden, 09/26/2013
- Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem), Justin T Pryzby, 09/27/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
James K. Lowden, 09/26/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
Justin T Pryzby, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
James K. Lowden, 09/23/2013
-
Re: [freetds] freetds on solaris 11: symbol scope specifies local binding (same problem),
Justin T Pryzby, 09/23/2013
Archive powered by MHonArc 2.6.24.