You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, January 9th 2008, 4:49am

Cannot build kdelibs: multiple definition of `__gnu_cxx::fre

I am unable to build kdelibs-3.5.7-r3 on gentoo.

Below is a snippet of the build log showing the beginning of the errors:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/bin/sh ../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O2 -pipe -msse2 -mmmx -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION     -o libkdecore.la -rpath /usr/kde/3.5/lib -L/usr/qt/3/lib -R /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib    -version-info 6:0:2 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined libintl.lo kapplication.lo kdebug.lo netwm.lo kconfigbase.lo kconfig.lo ksimpleconfig.lo kconfigbackend.lo kmanagerselection.lo kdesktopfile.lo kstandarddirs.lo ksock.lo kpty.lo kprocess.lo kprocctrl.lo klocale.lo krfcdate.lo kiconeffect.lo kicontheme.lo kiconloader.lo kwin.lo kwinmodule.lo krootprop.lo kcharsets.lo kckey.lo kshortcut.lo kkeynative_x11.lo kkeyserver_x11.lo kaccelaction.lo kshortcutmenu.lo kaccelbase.lo kaccel.lo kglobalaccel_x11.lo kglobalaccel.lo kstdaccel.lo kshortcutlist.lo kcrash.lo kurl.lo kregexp.lo kglobal.lo kglobalsettings.lo kallocator.lo kvmallocator.lo kmimesourcefactory.lo kinstance.lo kpalette.lo kipc.lo klibloader.lo ktempfile.lo kuniqueapplication.lo kaccelmanager.lo ksavefile.lo krandomsequence.lo kstringhandler.lo kcompletion.lo kcmdlineargs.lo kaboutdata.lo kcompletionbase.lo knotifyclient.lo kaudioplayer.lo kdcoppropertyproxy.lo ksockaddr.lo kextsock.lo netsupp.lo kprocio.lo kbufferedio.lo kpixmapprovider.lo kurldrag.lo kmdcodec.lo ksocks.lo fakes.lo vsnprintf.lo ksycoca.lo ksycocadict.lo ksycocafactory.lo kxmessages.lo kstartupinfo.lo kcatalogue.lo kasyncio.lo kmultipledrag.lo kstaticdeleter.lo kappdcopiface.lo kclipboard.lo kcheckaccelerators.lo kdeversion.lo kdebugdcopiface.lo kcalendarsystem.lo kcalendarsystemgregorian.lo kcalendarsystemhijri.lo kcalendarsystemhebrew.lo kcalendarsystemfactory.lo kmacroexpander.lo kidna.lo ktempdir.lo kshell.lo kmountpoint.lo kcalendarsystemjalali.lo kprotocolinfo_kdecore.lo kprotocolinfofactory.lo kxerrorhandler.lo kuser.lo kconfigskeleton.lo kconfigdialogmanager.lo klockfile.lo kqiodevicegzip_p.lo ktimezones.lo ksycoca_skel.lo kappdcopiface_skel.lo kdebugdcopiface_skel.lo malloc/libklmalloc.la network/libkdecorenetwork.la svgicons/libkdesvgicons.la ../dcop/libDCOP.la ../libltdl/libltdlc.la -lXext -lresolv -lutil -L/usr/lib -lart_lgpl_2 -lm -lidn ../kdefx/libkdefx.la
svgicons/.libs/libkdesvgicons.a(bitmap_allocator.o): In function `__gnu_cxx::free_list::_M_clear()':
(.text._ZN9__gnu_cxx9free_list8_M_clearEv+0x0): multiple definition of `__gnu_cxx::free_list::_M_clear()'
network/.libs/libkdecorenetwork.a(bitmap_allocator.o):(.text._ZN9__gnu_cxx9free_list8_M_clearEv+0x0): first defined here
svgicons/.libs/libkdesvgicons.a(bitmap_allocator.o): In function `__gnu_cxx::free_list::_M_get(unsigned int)':
(.text._ZN9__gnu_cxx9free_list6_M_getEj+0x0): multiple definition of `__gnu_cxx::free_list::_M_get(unsigned int)'
network/.libs/libkdecorenetwork.a(bitmap_allocator.o):(.text._ZN9__gnu_cxx9free_list6_M_getEj+0x0): first defined here
svgicons/.libs/libkdesvgicons.a(pool_allocator.o): In function `__gnu_cxx::__pool_alloc_base::_M_get_free_list(unsigned int)':
(.text._ZN9__gnu_cxx17__pool_alloc_base16_M_get_free_listEj+0x0): multiple definition of `__gnu_cxx::__pool_alloc_base::_M_get_free_list(unsigned int)'
network/.libs/libkdecorenetwork.a(pool_allocator.o):(.text._ZN9__gnu_cxx17__pool_alloc_base16_M_get_free_listEj+0x0): first defined here
svgicons/.libs/libkdesvgicons.a(pool_allocator.o):(.bss._ZN9__gnu_cxx17__pool_alloc_base12_S_free_listE+0x0): multiple definition of `__gnu_cxx::__pool_alloc_base::_S_free_list'
network/.libs/libkdecorenetwork.a(pool_allocator.o):(.bss._ZN9__gnu_cxx17__pool_alloc_base12_S_free_listE+0x0): first defined here
svgicons/.libs/libkdesvgicons.a(pool_allocator.o): In function `__gnu_cxx::__pool_alloc_base::_M_get_mutex()':
(.text._ZN9__gnu_cxx17__pool_alloc_base12_M_get_mutexEv+0x0): multiple definition of `__gnu_cxx::__pool_alloc_base::_M_get_mutex()'
network/.libs/libkdecorenetwork.a(pool_allocator.o):(.text._ZN9__gnu_cxx17__pool_alloc_base12_M_get_mutexEv+0x0): first defined here
svgicons/.libs/libkdesvgicons.a(pool_allocator.o): In function `__gnu_cxx::__pool_alloc_base::_M_allocate_chunk(unsigned int, int&)':
(.text._ZN9__gnu_cxx17__pool_alloc_base17_M_allocate_chunkEjRi+0x0): multiple definition of `__gnu_cxx::__pool_alloc_base::_M_allocate_chunk(unsigned int, int&)
...'


The complaints about "multiple definition of" continue for several thousand lines.

I am using gcc 4.1.2

Source code

1
2
% gcc-config -c
i686-pc-linux-gnu-4.1.2


It appears to be the C++ runtime symbols are defined in the kde libraries. How is that possible?

Thanks in advance