Bug 122351

Summary: Kopete 0.12 won't compile with GCC 4.0 while Kopete 0.11 does.
Product: [Applications] kopete Reporter: JIA Pei <jp4work>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description JIA Pei 2006-02-20 16:28:58 UTC
Version:           kopete 0.12 (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
Compiler:          GCC 4.0.2 
OS:                Linux

I just followed the instructions here:
http://wiki.kde.org/tiki-index.php?page=Kopete+XHTML%2BCSS

I followed the instructions
svn co svn://anonsvn.kde.org/home/kde/branches/kopete/0.12
cd 0.12
make -f Makefile.cvs
./configure --enable-debug
cd kopete
make
su -c "make install"

When "make", I got the following errors.

/home/pjia/0.12/kopete/protocols/jabber/jingle/libjingle/talk/base/socketad
dress.cc:256:5: warning: "WIN32" is not defined
/usr/include/c++/4.0.2/ctime:67: error: ‘::clock_t’ has not been declared
/usr/include/c++/4.0.2/ctime:68: error: ‘::time_t’ has not been declared
/usr/include/c++/4.0.2/ctime:69: error: ‘::tm’ has not been declared
/usr/include/c++/4.0.2/ctime:71: error: ‘::clock’ has not been declared
/usr/include/c++/4.0.2/ctime:72: error: ‘::difftime’ has not been declared
/usr/include/c++/4.0.2/ctime:73: error: ‘::mktime’ has not been declared
/usr/include/c++/4.0.2/ctime:74: error: ‘::time’ has not been declared
/usr/include/c++/4.0.2/ctime:75: error: ‘::asctime’ has not been declared
/usr/include/c++/4.0.2/ctime:76: error: ‘::ctime’ has not been declared
/usr/include/c++/4.0.2/ctime:77: error: ‘::gmtime’ has not been declared
/usr/include/c++/4.0.2/ctime:78: error: ‘::localtime’ has not been declared
/usr/include/c++/4.0.2/ctime:79: error: ‘::strftime’ has not been declared
/usr/include/c++/4.0.2/bits/locale_facets.tcc: In member function ‘_InIter std::time_get<_CharT, _InIter>::_M_extract_via_format(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, tm*, const _CharT*) const’:
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1760: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1767: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1775: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1782: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1794: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1801: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1804: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1816: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1821: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1829: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1833: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1853: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1889: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc:1897: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc: In member function ‘virtual _InIter std::time_get<_CharT, _InIter>::do_get_weekday(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, tm*) const’:
/usr/include/c++/4.0.2/bits/locale_facets.tcc:2123: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc: In member function ‘virtual _InIter std::time_get<_CharT, _InIter>::do_get_monthname(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, tm*) const’:
/usr/include/c++/4.0.2/bits/locale_facets.tcc:2169: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
/usr/include/c++/4.0.2/bits/locale_facets.tcc: In member function ‘virtual _InIter std::time_get<_CharT, _InIter>::do_get_year(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, tm*) const’:
/usr/include/c++/4.0.2/bits/locale_facets.tcc:2196: error: invalid use of undefined type ‘struct tm’
/usr/include/wchar.h:123: error: forward declaration of ‘struct tm’
Error creating ../kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.lo. Exit status 1.
make: *** [all] Error 1

Thus, I cannot continue to install...

Can anybody help?

Cheers
JIA Pei
Comment 1 Philip Rodrigues 2006-02-20 19:07:29 UTC
This is probably a configuration problem rather than a bug, so you're better off reporting it to one of the development lists (kde-devel@kde.org should be fine)
Comment 2 Matt Rogers 2006-02-20 20:31:26 UTC
this has nothing to do with GCC 4, since I've used GCC 4 and compiled this code just fine.


*** This bug has been marked as a duplicate of 121856 ***