[csw-users] GCC 4.3.3 problems

Mike Watters mwatters at opencsw.org
Fri May 15 18:16:40 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Jens,
Jens Langner wrote:
> Hi,
> 
> after having updated to the latest GCC 4.3.3 packages which are now in
> unstable I found my applications not to link properly anymore. See the
> output of the linker:
> 
> -- cut here --
> g++ -s -Wl,-R,/usr/local/Trolltech/Qt-4.5.0/lib -o ../bin/lmSorter
> .obj/main.o .obj/CSorterApplication.o .obj/moc_CSorterApplication.o
> -L/usr/sfw/lib -L/usr/local/Trolltech/Qt-4.5.0/lib ../lib/libmedlm.a
> -L/usr/sfw/lib -L/usr/local/Trolltech/Qt-4.5.0/lib
> /usr/local/petlib/lib/libmedio.so.2 -L/usr/local/petlib/lib
> -L/usr/local/lib -L/opt/csw/lib -lmtrack -lgsl -lgslcblas -lncurses
> -lQtXml -lQtCore -lz -lm -liconv -lpthread -lrt -ldl
> Undefined                       first referenced
>  symbol                             in file
> _ZNSo9_M_insertIdEERSoT_            .obj/CSorterApplication.o
> _ZNSo9_M_insertImEERSoT_            .obj/CSorterApplication.o
> _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
> .obj/CSorterApplication.o
> ld: fatal: Symbol referencing errors. No output written to ../bin/lmSorter
> make[1]: *** [../bin/lmSorter] Error 1
> -- cut here --
> 
> By downgrading to the old 4.0.2 packages everything works as expected
> and the linker is able to pack the application together properly. Please
> note that this is an C++ application and that it compiles fine with GCC
> 4.3.3 versions under Linux/x64_64 while it the link doesn't work here on
> the Solaris10/SPARC machine. Here is the uname output:
> 
> SunOS ulla 5.10 Generic_138888-08 sun4u sparc SUNW,Sun-Fire-480R Solaris
> 
> regards,
> jens

Thanks for the feedback!

What application are you attempting to compile?
I am finding some debian based bugs regarding these symbols, but I find them
correctly in the libstdc++.so.6.0.10 library.

$ nm libstdc++.so.6.0.10
- --- start snip ---
[6260]  |    694916|     556|FUNC |WEAK |0    |1853 |_ZNSo9_M_insertIPKvEERSoT_
[7529]  |    693728|     556|FUNC |WEAK |0    |1847 |_ZNSo9_M_insertIbEERSoT_
[7498]  |    696100|     564|FUNC |WEAK |0    |1857 |_ZNSo9_M_insertIdEERSoT_
[7509]  |    695488|     572|FUNC |WEAK |0    |1855 |_ZNSo9_M_insertIeEERSoT_
[7879]  |    691880|     556|FUNC |WEAK |0    |1839 |_ZNSo9_M_insertIlEERSoT_
[7892]  |    694304|     556|FUNC |WEAK |0    |1849 |_ZNSo9_M_insertImEERSoT_
[8373]  |    693144|     568|FUNC |WEAK |0    |1845 |_ZNSo9_M_insertIxEERSoT_
[8390]  |    692560|     568|FUNC |WEAK |0    |1843 |_ZNSo9_M_insertIyEERSoT_
- --- end snip ---

I would like to try and duplicate the error so I have a better understanding
of exactly what is going on when the link blows up.  I believe this to be an
upstream bug.

I would like to get the necessary info to fix it and submit the fix upstream.


- --

Thanks,
Mike

"Any intelligent fool can make things bigger, more complex,
and more violent.  It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."

* Albert Einstein 1879 - 1955
    US German-born Theoretical Physicist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoNlWgACgkQLrhmsXMSLxfNBgCg5EXJpbyPWgXJ/QSbKpEz1UQv
7yAAn29yFRTjl9AkgpdbqA7t+S1JGlu/
=qwIG
-----END PGP SIGNATURE-----



More information about the users mailing list