This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15253] New: __eprintf link issue for c++ on solaris 2.6
- From: "nick dot thurn at db dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2004 01:02:18 -0000
- Subject: [Bug c++/15253] New: __eprintf link issue for c++ on solaris 2.6
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The basic printf("hello world!\n" program fails to link under gcc-3.4.0 on
solaris 2.6 with the following error:
/apps/race/home/nickt/gcc/bin/ld: a.out: hidden symbol `__eprintf'
in /apps/race/home/nickt/gcc/lib/gcc/sparc-sun-solaris2.6/3.4.0/libgcc.a
(_eprintf.oS) is referenced by DSO
This is for the following command line:
g++ -v test.cpp
The identical file (with .c extension) compiles/links with gcc and g++.
All my other c++ executables suffer the same link issue.
gcc was configured as follows:
kilmer: ~>g++ -v
Reading specs from /apps/race/home/nickt/gcc/lib/gcc/sparc-sun-
solaris2.6/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --prefix=/apps/race/home/nickt/gcc --
with-gnu-as --with-as=/apps/race/gcc/bin/as --with-gnu-ld --with-
ld=/apps/race/gcc/bin/ld --enable-languages=c,c++
Thread model: posix
gcc version 3.4.0
And built using:
gmake CFLAGS='-O' LIBCFLAGS='-g -O2' \
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean
Thanks
Nick Thurn
--
Summary: __eprintf link issue for c++ on solaris 2.6
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nick dot thurn at db dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.6
GCC host triplet: sparc-sun-solaris2.6
GCC target triplet: sparc-sun-solaris2.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15253