Bug 122351 - Kopete 0.12 won't compile with GCC 4.0 while Kopete 0.11 does.
Summary: Kopete 0.12 won't compile with GCC 4.0 while Kopete 0.11 does.
Status: RESOLVED DUPLICATE of bug 121856
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 16:28 UTC by JIA Pei
Modified: 2006-02-20 20:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***