KDE & gcc 4.0.1

Ismail Donmez ismail at kde.org.tr
Sat May 7 20:40:41 BST 2005


Hi all,

Today I tried to compile kdelibs with gcc 4.0.1 ( Qt compiles fine with it ) I 
get this:

/bin/sh ./libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor 
-O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions 
-fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden 
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -R /opt/kde/lib 
-R /opt/kde/lib -R /opt/kde/qt/lib -R /usr/X11R6/lib -L/opt/kde/lib 
-L/opt/kde/qt/lib -L/usr/X11R6/lib -version-info 3:0:2 -no-undefined 
-o ./kabc/libkabc.la -rpath /opt/kde/lib -Wl,--no-undefined 
-Wl,--allow-shlib-undefined ./kabc/vcard/libvcard.la ./kabc/vcardparser/libvcards.la ./kio/libkio.la ./kresources/libkresources.la ./kabc/address.lo ./kabc/addressbook.lo .
/kabc/addressee.lo ./kabc/addresseedialog.lo ./kabc/agent.lo ./kabc/distributionlist.lo ./kabc/distributionlistdialog.lo ./kabc/distributionlisteditor.lo ./kabc/errorhandler.lo .
/kabc/field.lo ./kabc/formatfactory.lo ./kabc/geo.lo ./kabc/key.lo ./kabc/phonenumber.lo ./kabc/picture.lo ./kabc/plugin.lo ./kabc/resource.lo ./kabc/resourceselectdialog.lo .
/kabc/secrecy.lo ./kabc/sound.lo ./kabc/stdaddressbook.lo ./kabc/timezone.lo ./kabc/vcard21parser.lo ./kabc/vcardconverter.lo ./kabc/vcardformat.lo ./kabc/vcardformatimpl.lo 
../kabc/vcardformatplugin.lo ./kabc/ldifconverter.lo ./kabc/addresslineedit.lo ./kabc/ldapclient.lo ./kabc/addresseelist.lo ./kabc/vcardtool.lo ./kabc/addresseehelper.lo ./kabc/addresseehelper_skel.lo 
../kabc/lock.lo ./kabc/locknull.lo ./kabc/ldif.lo ./kabc/ldapurl.lo ./kabc/ldapconfigwidget.lo ./kabc/sortmode.lo
../kabc/.libs/addresseehelper.o(.gnu.linkonce.t._ZN9__gnu_cxx20__common_pool_policyINS_6__poolELb1EE21_S_destroy_thread_keyEPv+0x40): 
In function `__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, 
true>::_S_destroy_thread_key(void*)':
: undefined reference to 
`__gnu_cxx::__pool<true>::_M_destroy_thread_key(void*)'
../kabc/.libs/addresseehelper.o(.gnu.linkonce.t._ZN9__gnu_cxx20__common_pool_policyINS_6__poolELb1EE13_S_initializeEv+0x38): 
In function `__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, 
true>::_S_initialize()':
: undefined reference to `__gnu_cxx::__pool<true>::_M_initialize(void (*)
(void*))'
../kabc/.libs/addresseehelper.o(.gnu.linkonce.t._ZN9__gnu_cxx10__mt_allocISt13_Rb_tree_nodeI7QStringENS_20__common_pool_policyINS_6__poolELb1EEEE8allocateEmPKv+0x94): 
In function `__gnu_cxx::__mt_alloc<std::_Rb_tree_node<QString>, 
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::allocate(unsigned 
long, void const*)':
: undefined reference to `__gnu_cxx::__pool<true>::_M_get_thread_id()'
../kabc/.libs/addresseehelper.o(.gnu.linkonce.t._ZN9__gnu_cxx10__mt_allocISt13_Rb_tree_nodeI7QStringENS_20__common_pool_policyINS_6__poolELb1EEEE8allocateEmPKv+0x1fe): 
In function `__gnu_cxx::__mt_alloc<std::_Rb_tree_node<QString>, 
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::allocate(unsigned 
long, void const*)':
: undefined reference to `__gnu_cxx::__pool<true>::_M_reserve_block(unsigned 
long, unsigned long)'
../kabc/.libs/addresseehelper.o(.gnu.linkonce.t._ZN9__gnu_cxx10__mt_allocISt13_Rb_tree_nodeI7QStringENS_20__common_pool_policyINS_6__poolELb1EEEE10deallocateEPS3_m+0x6e): 
In function `__gnu_cxx::__mt_alloc<std::_Rb_tree_node<QString>, 
__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> 
>::deallocate(std::_Rb_tree_node<QString>*, unsigned long)':
: undefined reference to `__gnu_cxx::__pool<true>::_M_reclaim_block(char*, 
unsigned long)'
collect2: ld returned 1 exit status
Error creating ./kabc/libkabc.la. Exit status 1.


Anyone knows if this is a KDE bug or a compiler bug?

Regards,
ismail

-- 
They say people don't believe in heroes anymore




More information about the kde-core-devel mailing list