This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41333] Link error on Solaris 10 / GNU 4.3.2



------- Comment #6 from vijay dot x dot jain at jpmchase dot com  2009-09-11 14:19 -------
As suggested i had put /usr/xpg4/bin in PATH in precedence.
from config.log
lt_cv_path_SED=/usr/xpg4/bin/sed
SED='/usr/xpg4/bin/sed'

BUt still versioning is not used
a_dodycc@upests-dn24d:.libs:[53] !nm
nm libstdc++.so | fgrep GLIBCXX
a_dodycc@upests-dn24d:.libs:[54] pwd


Also I see following in config.log
 #define PACKAGE_VERSION "version-unused"
is this indicator for versioning not used ?

HOw can I make sure that version will be used before I start compiling.


Additional Info from config.log
configure:114744: /home/odyssey/a_dodycc/gcc/gccobjdir/./gcc/xgcc
-B/home/odyssey/a_dodycc/gcc/gccobjdir/./gcc/ -B/home/odyss
ey/a_dodycc/gccinstall/sparc-sun-solaris2.10/bin/
-B/home/odyssey/a_dodycc/gccinstall/sparc-sun-solaris2.10/lib/ -isystem /ho
me/odyssey/a_dodycc/gccinstall/sparc-sun-solaris2.10/include -isystem
/home/odyssey/a_dodycc/gccinstall/sparc-sun-solaris2.10
/sys-include -o conftest  -lgcc_s   conftest.c -lm  >&5
configure:114750: $? = 0
configure:114754: test -z
                         || test ! -s conftest.err
configure:114757: $? = 0
configure:114760: test -s conftest
configure:114763: $? = 0
configure:114839: result: yes
configure:114866: WARNING: === Linker version 1800 is too old for
configure:114868: WARNING: === full symbol versioning support in this release
of GCC.
configure:114870: WARNING: === You would need to upgrade your binutils to
version
configure:114872: WARNING: === 21400 or later and rebuild GCC.
configure:114874: WARNING: === Symbol versioning will be disabled.
configure:114925: versioning on shared library symbols is no
configure:114932: checking for size_t as unsigned int
configure:114952: /home/odyssey/a_dodycc/gcc/gccobjdir/./gcc/xgcc
-B/home/odyssey/a_dodycc/gcc/gccobjdir/./gcc/ -B/home/odyss
ey/a_dodycc/gccinstall/sparc-sun-solaris2.10/bin/
-B/home/odyssey/a_dodycc/gccinstall/sparc-sun-solaris2.10/lib/ -isystem /ho
me/odyssey/a_dodycc/gccinstall/sparc-sun-solaris2.10/include -isystem
/home/odyssey/a_dodycc/gccinstall/sparc-sun-solaris2.10
/sys-include -c -Werror  conftest.c >&5


My configure options are as follows

/home/odyssey/a_dodycc/gcc/gcc-4.3.2/configure 
--prefix=/home/odyssey/a_dodycc/gccinstall
--with-as=/3rdparty/fsf/binutils/2.18/bin/as 
--with-ld=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/ld 
--with-gnu-as --with-gnu-ld --disable-nls --enable-languages=c,c++
--with-gmp=/home/odyssey/f065093/gmp/gmp-4.3.1/install
--with-mpfr=/home/odyssey/f065093/mpfr/mpfr-2.4.1/install 
LD=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/ld 
AR=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/ar
NM=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/nm 
RANLIB=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/ranlib
STRIP=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/strip
OBJCOPY=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/objcopy
OBJDUMP=/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/objdump CC=gcc
cc=gcc

I am not sure how is ld version mapped to 1800

/home/odyssey/a_dodycc/gcc/gccobjdir>/home/odyssey/f065093/binuitls/binutils-2.18/install/bin/ld
-v
GNU ld (GNU Binutils)2.18

What do  I do to use ld 21400? HOw can i get this?



As suggested I am using 3.4.6 as base version from www.sunfreeware.com to build
gcc 4.3.2
Following are the configure options of the gcc version 3.4.6

Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

Please suggest. We really appreciate you help


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41333


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]