Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55268 - dev-cpp/glibmm compile failed w/ undefined references
Summary: dev-cpp/glibmm compile failed w/ undefined references
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 62248 80334 135194 135819 136841 138068 138513 138526 144320 147604 150133 155271 158456 159386 162678 166503 189547 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-26 12:07 UTC by Sean
Modified: 2007-08-20 08:07 UTC (History)
17 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean 2004-06-26 12:07:50 UTC
g++ -march=athlon-mp -Os -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -mfpmath=sse -Wall -Wno-long-long -o .libs/parser parser.o -Wl,--export-dynamic  ../../glib/glibmm/.libs/libglibmm-2.4.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib /usr/lib/gcc/i686-pc-linux-gnu/3.4.0/libstdc++.so -L/usr/lib/../i686-pc-linux-gnu/lib /usr/lib/libsigc-2.0.so /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.0
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::insert(std::_List_iterator<sigc::slot_base>, sigc::slot_base const&)'
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::erase(std::_List_iterator<sigc::slot_base>)'
collect2: ld returned 1 exit status
make[3]: *** [parser] Error 1
make[3]: Leaving directory `/data/portage_tmp/portage/glibmm-2.4.3/work/glibmm-2.4.3/examples/markup'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/portage_tmp/portage/glibmm-2.4.3/work/glibmm-2.4.3/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/portage_tmp/portage/glibmm-2.4.3/work/glibmm-2.4.3'
make: *** [all] Error 2

!!! ERROR: dev-cpp/glibmm-2.4.3 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure


Reproducible: Always
Steps to Reproduce:
1.emerge glibmm
2.
3.

Actual Results:  
compile failed
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-27 22:02:11 UTC
I should think you should first calm your CFLAGS and CXXFLAGS down a bit and try again to see if you get these errors.
Comment 2 Jon Sutherland 2004-08-05 12:54:14 UTC
I had this problem after switching from gcc 3.3 to gcc 3.4.1 on AMD64.  I fixed the problem by emerging libsigc++ since I for some reason missed compiling it on my attempt to emerge -e world.
Comment 3 Scott Robert Ladd 2004-08-07 11:55:37 UTC
I'm having the same problem on my AMD64 system, running gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6).

g++ -O2 -march=opteron -ftracer -pipe -Wall -Wno-long-long -o .libs/parser parser.o -Wl,--export-dynamic  ../../glib/glibmm/.libs/libglibmm-2.4.so -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/../../../x86_64-pc-linux-gnu/lib /usr/lib/libsigc-2.0.so /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libstdc++.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl/usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/lib
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libsigc-2.0.so, may conflict with libstdc++.so.5
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::erase(std::_List_iterator<sigc::slot_base, sigc::slot_base&, sigc::slot_base*>)'
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::insert(std::_List_iterator<sigc::slot_base, sigc::slot_base&, sigc::slot_base*>, sigc::slot_base const&)'
collect2: ld returned 1 exit status
make[3]: *** [parser] Error 1
make[3]: Leaving directory `/var/tmp/portage/glibmm-2.4.3/work/glibmm-2.4.3/examples/markup'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibmm-2.4.3/work/glibmm-2.4.3/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/glibmm-2.4.3/work/glibmm-2.4.3'
make: *** [all] Error 2

!!! ERROR: dev-cpp/glibmm-2.4.3 failed.
!!! Function gnome2_src_compile, Line 38, Exitcode 2
!!! compile failure
Comment 4 foser (RETIRED) gentoo-dev 2004-08-08 09:13:08 UTC
amd64, might be a dupe
Comment 5 Mike Gardiner (RETIRED) gentoo-dev 2004-08-09 21:02:17 UTC
Or try glibmm-2.4.4
Comment 6 Charles Noneman 2004-08-14 10:43:09 UTC
I'm getting the problem on dev-cpp/glibmm-2.4.4 as well:

g++ -march=k8 -O2 -pipe -Wall -Wno-long-long -o .libs/parser parser.o -Wl,--export-dynamic  ../../glib/glibmm/.libs/libglibmm-2.4.so -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib -L/usr/lib/../x86_64-pc-linux-gnu/lib /usr/lib/libsigc-2.0.so /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/libstdc++.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libstdc++.so.5, needed by /usr/lib/libsigc-2.0.so, may conflict with libstdc++.so.6
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::insert(std::_List_iterator<sigc::slot_base>, sigc::slot_base const&)'
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::erase(std::_List_iterator<sigc::slot_base>)'
collect2: ld returned 1 exit status
make[3]: *** [parser] Error 1
make[3]: Leaving directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4/examples/markup'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4'
make: *** [all] Error 2

!!! ERROR: dev-cpp/glibmm-2.4.4 failed.
!!! Function gnome2_src_compile, Line 38, Exitcode 2
!!! compile failure

Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r14)
=================================================================
System uname: 2.6.7-gentoo-r14 x86_64 4
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
Comment 7 Aaron Peterson 2004-08-18 05:45:14 UTC

I'm also having problems on x86, gcc 3.4.1 -wall

...
but...
comment  #2 From Jon Sutherland  2004-08-05 12:54 PST -
fixed my problem!! 

emerging libsigc++  fixed it!

I also did an emerge world -e when i switched compilers...  this is wakky!!

--- Thanks Jon!
****** what I was going to report ********

Making all in markup
make[3]: Entering directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4/examples/markup'
if g++ -DHAVE_CONFIG_H  -I. -I. -I../../glib -I../../glib -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -Wno-long-long -MT parser.o -MD -MP -MF ".deps/parser.Tpo" -c -oparser.o parser.cc; \
then mv -f ".deps/parser.Tpo" ".deps/parser.Po"; else rm -f ".deps/parser.Tpo"; exit 1; fi
/bin/sh ../../libtool --mode=link g++  -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -Wno-long-long   -o parser  parser.o  ../../glib/glibmm/libglibmm-2.4.la -Wl,--export-dynamic -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
mkdir .libs
g++ -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -Wno-long-long -o .libs/parser parser.o -Wl,--export-dynamic  ../../glib/glibmm/.libs/libglibmm-2.4.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib /usr/lib/libsigc-2.0.so /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.1
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld: warning: libstdc++.so.5, needed by /usr/lib/libsigc-2.0.so, may conflict with libstdc++.so.6
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::insert(std::_List_iterator<sigc::slot_base>, sigc::slot_base const&)'
../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to `sigc::internal::signal_impl::erase(std::_List_iterator<sigc::slot_base>)'
collect2: ld returned 1 exit status
make[3]: *** [parser] Error 1
make[3]: Leaving directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4/examples/markup'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/glibmm-2.4.4/work/glibmm-2.4.4'
make: *** [all] Error 2

!!! ERROR: dev-cpp/glibmm-2.4.4 failed.
!!! Function gnome2_src_compile, Line 38, Exitcode 2
!!! compile failure








escargot mediawiki # emerge info
Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8-gentoo)
=================================================================
System uname: 2.6.8-gentoo i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.5.2
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm arts artswrappersuid audiofile avi berkdb bidi bonobo canna cdr cjk cjkcrypt codecscrypt cscope cups dba dga directfb divx4linux doc dv dvb dvd encode esd evms2 faac faad fam fbcon ffmpeg flac flash foomaticdb freetype freewnn fs gd gdbm ggi gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jack java javascript joystick jpeg kde kerberos krb4 ldap libcss libdvdread libg++ libwww linguas_en_US linguas_es linguas_ru linguas_zh_CN linguas_zh_TW live mad maildir md5sum mdb mikmod mmx mng motif mozdomi mozilla mozsvg mpeg mpeg4 mulemysql nas ncurses net nls nptl nvidia offensive oggvorbis opengl oss pam pdflib perl pic png posix postgres python qt quicktime readline samba sasl scanner sdl slang spell sse ssl svg svga tcltk tcpd tetex theora threads tiff transcode truetype unicode usb v4l vhosts virus-scan x86 xine xinerama xml2 xmms xv xvid zeo zlib"

Comment 8 Charles Noneman 2004-08-19 19:25:58 UTC
Fixed after re-emerging libsigc++
Comment 9 Joseph Booker 2004-08-20 23:16:42 UTC
this should be reassigned, i got the same bug on a x86 machine running gcc 3.4  doing comment #2's suggestion also fixed it for me
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2004-08-22 17:56:11 UTC
i dont see how we can fix this if the fix is simply a recompile.
Comment 11 foser (RETIRED) gentoo-dev 2004-08-30 11:46:44 UTC
i think we should find some way to make ppl at least aware of this problem
Comment 12 foser (RETIRED) gentoo-dev 2004-08-30 11:47:05 UTC
*** Bug 62248 has been marked as a duplicate of this bug. ***
Comment 13 Simon Stelling (RETIRED) gentoo-dev 2004-10-28 04:58:20 UTC
this seems 'fixed' with comment #2
Comment 14 foser (RETIRED) gentoo-dev 2005-03-17 03:58:41 UTC
*** Bug 80334 has been marked as a duplicate of this bug. ***
Comment 15 John N. Laliberte (RETIRED) gentoo-dev 2006-06-06 06:10:30 UTC
*** Bug 135194 has been marked as a duplicate of this bug. ***
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 14:52:30 UTC
*** Bug 135819 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-06-15 00:14:03 UTC
*** Bug 136841 has been marked as a duplicate of this bug. ***
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-06-26 09:12:48 UTC
*** Bug 138068 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-06-26 09:26:45 UTC
*** Bug 138068 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-06-29 12:04:12 UTC
*** Bug 138513 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-07-02 04:55:59 UTC
*** Bug 138526 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2006-08-18 07:57:33 UTC
*** Bug 144320 has been marked as a duplicate of this bug. ***
Comment 23 Thomas R. (TRauMa) 2006-08-27 17:48:18 UTC
Uhm, sorry for mailing everyone, but I have to ask: wouldnt this bug be easier to find (and therefore duplicated less often) if it wasn't marked as fixed? With gcc 4.1 coming I expect many more people to trip over this one...
Comment 24 Simon Stelling (RETIRED) gentoo-dev 2006-08-28 00:51:53 UTC
It would be easier to find, but it wouldn't be less resolved. The status field is not under democratic control but should reflect the true state of the bug. :P
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-09-14 13:19:52 UTC
*** Bug 147604 has been marked as a duplicate of this bug. ***
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2006-10-04 22:41:08 UTC
*** Bug 150133 has been marked as a duplicate of this bug. ***
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 11:07:30 UTC
*** Bug 155271 has been marked as a duplicate of this bug. ***
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2006-12-18 07:16:47 UTC
*** Bug 158456 has been marked as a duplicate of this bug. ***
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2006-12-29 09:00:46 UTC
*** Bug 159386 has been marked as a duplicate of this bug. ***
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2007-01-18 19:38:53 UTC
*** Bug 162678 has been marked as a duplicate of this bug. ***
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2007-02-12 15:58:01 UTC
*** Bug 166503 has been marked as a duplicate of this bug. ***
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 08:07:11 UTC
*** Bug 189547 has been marked as a duplicate of this bug. ***