This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs 1.1.1 on S.u.S.E. 5.3: problem building shared libs
- To: egcs at cygnus dot com
- Subject: egcs 1.1.1 on S.u.S.E. 5.3: problem building shared libs
- From: Steinar Bang <sb at metis dot no>
- Date: 15 Jan 1999 19:18:59 +0100
Platform: egcs 1.1.1. on S.u.S.E. 5.3, using C++
I'm getting the attached error messages when building some (not all)
shared libs. I never saw this under egcs 1.0.3, but since the upgrade
of the compiler coincided with changes to the shared lib, I can't
guarantee that this is still the case (though I can reinstall 1.0.3
and test, if this is desirable).
Searches on Alta Vista found no meaningful responses, searches on Deja
News for "egcs & multiple & definition & keyed" gave me two persons
with the same problem on linux, in october last year (and one "article
unavailable"), but no responses.
- Steinar
attached error output from egcs:
g++ -shared -Wl,-soname,libgem_layout.so.1 -o libgem_layout.so.1.0 .obj/debug/gemalchannel.o .obj/debug/gemalchannelmanager.o .obj/debug/gemalcontainer.o .obj/debug/gemalhierarchicalstrategy.o .obj/debug/gemalhierarchy.o .obj/debug/gemalhierarchyobject.o .obj/debug/gemalhorizontalline.o .obj/debug/gemallayoutmanager.o .obj/debug/gemallayoutstyle.o .obj/debug/gemalmatrix.o .obj/debug/gemalmatrixobject.o .obj/debug/gemalmatrixstrategy.o .obj/debug/gemalobject.o .obj/debug/gemalobjectline.o .obj/debug/gemalport.o .obj/debug/gemalportmanager.o .obj/debug/gemalrelshp.o .obj/debug/gemalsize.o .obj/debug/gemalstrategy.o .obj/debug/gemalutility.o .obj/debug/gemalverticalline.o .obj/debug/gemautolayoutmtd.o .obj/debug/gemprint.o .obj/debug/gemviewsgenerator.o .obj/debug/gemviewsrepository.o -L/home/sb/apps/qt-egcs/lib -lqt -L/usr/X11R6/lib -lX11 -lXext -L/home/sb/2x/lib
.obj/debug/gemviewsgenerator.o: In function `GemViewsGenerator type_info function':
/home/sb/2x/src/gem/layout/gemviewsgenerator.cpp(.text+0x4): multiple definition of `global destructors keyed to rb_tree<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >, pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue>, select1st<pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue> >, less<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > >, __default_alloc_template<false, 0> >::insert_unique(pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue> const &)'
.obj/debug/gemprint.o(.text+0x4):/home/sb/2x/src/gem/layout/gemprint.cpp: first defined here
.obj/debug/gemviewsgenerator.o: In function `global constructors keyed to rb_tree<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >, pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue>, select1st<pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue> >, less<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > >, __default_alloc_template<false, 0> >::global destructors keyed to insert_unique(pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue> const &)':
/home/sb/apps/include/g++/stl_map.h:138: multiple definition of `global constructors keyed to rb_tree<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >, pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue>, select1st<pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue> >, less<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > >, __default_alloc_template<false, 0> >::global destructors keyed to insert_unique(pair<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const, KValue> const &)'
.obj/debug/gemprint.o:/home/sb/apps/include/g++/stl_map.h:138: first defined here
collect2: ld returned 1 exit status
make[1]: *** [/home/sb/2x/lib/libgem_layout.so.1.0] Error 1