Bug 198536 - compilation error - bonjouraccount.h: Could not find a match for Kopete::OnlineStatus::OnlineStatus()
Summary: compilation error - bonjouraccount.h: Could not find a match for Kopete::Onli...
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 15:36 UTC by Jan Hnatek
Modified: 2009-07-15 01:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Hnatek 2009-07-01 15:36:13 UTC
Version:            (using KDE 4.2.90)
Compiler:          Sun Studio 12 
OS:                Solaris
Installed from:    Compiled From Sources

Build on Solaris with SinStudio 12 fails with the following error:

cd /export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/build-kdenetwork-4.2.91svn979380/kopete/protocols/bonjour && /opt/SUNWspro/bin/CC  -library=no%Cstd  -Dkopete_bonjour_EXPORTS -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS -DKDE_DEFAULT_DEBUG_AREA=14220 -D__EXTENSIONS__ -DSOLARIS -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNDEBUG -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT  -D_XOPEN_SOURCE=500 -D_XPG5  -I/opt/foss/include/stdcxx/ansi -I/opt/foss/include/stdcxx -I/opt/foss/include -I/opt/foss/include/stdcxx/ansi -I/opt/foss/include/stdcxx -library=no%Cstd -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -s -xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt -xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -xalias_level=compatible -KPIC -xipo=0 -xO3 -xregs=no%frameptr -xjobs=2 -xrestrict=%all -xthreadvar=%all -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -s -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -L/opt/foss/lib -R/opt/foss/lib -L/usr/lib -R/usr/lib -Y P,/opt/foss/lib -i -L/opt/foss/lib -R/opt/foss/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx -lCrun -lc -lm   -DQT_NO_DEBUG -KPIC -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/build-kdenetwork-4.2.91svn979380/kopete/protocols/bonjour -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/protocols/bonjour -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380 -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/build-kdenetwork-4.2.91svn979380 -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/build-kdenetwork-4.2.91svn979380/kopete -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/libkopete -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/build-kdenetwork-4.2.91svn979380/kopete/libkopete -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/libkopete/ui -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/build-kdenetwork-4.2.91svn979380/kopete/libkopete/ui -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/libkopete/private -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/libkopete/contactlist -I/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/libkopete/tasks -I/opt/kde-4.2/include -I/opt/kde-4.2/include/KDE -I/opt/foss/include/KDE -I/opt/foss/include -I/opt/foss/qt4/include/phonon -I/opt/foss/qt4/include/QtXmlPatterns -I/opt/foss/qt4/include/QtWebKit -I/opt/foss/qt4/include/QtHelp -I/opt/foss/qt4/include/QtAssistant -I/opt/foss/qt4/include/QtDBus -I/opt/foss/qt4/include/QtTest -I/opt/foss/qt4/include/QtUiTools -I/opt/foss/qt4/include/QtScript -I/opt/foss/qt4/include/QtSvg -I/opt/foss/qt4/include/QtXml -I/opt/foss/qt4/include/QtSql -I/opt/foss/qt4/include/QtOpenGL -I/opt/foss/qt4/include/QtNetwork -I/opt/foss/qt4/include/QtDesigner -I/opt/foss/qt4/include/Qt3Support -I/opt/foss/qt4/include/QtGui -I/opt/foss/qt4/include/QtCore -I/opt/foss/qt4/include/Qt -I/opt/foss/qt4/share/mkspecs/default -I/opt/foss/qt4/include -I/usr/X11/include    -D_LARGEFILE64_SOURCE -o CMakeFiles/kopete_bonjour.dir/bonjourprotocol.o -c /export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/protocols/bonjour/bonjourprotocol.cpp
"/opt/foss/qt4/include/QtCore/qstringmatcher.h", line 91: Warning: Types cannot be declared in anonymous union.
"/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/protocols/bonjour/bonjourcontact.h", line 182: Warning: BonjourContact::customContextMenuActions hides the virtual function Kopete::Contact::customContextMenuActions(Kopete::ChatSession*).
"/export/home/test/packages/BUILD/kdenetwork-4.2.91svn979380/kopete/protocols/bonjour/bonjouraccount.h", line 138: Error: Could not find a match for Kopete::OnlineStatus::OnlineStatus() needed in<no tag>.
1 Error(s) and 2 Warning(s) detected.
Comment 1 Tejas Dinkar 2009-07-01 20:35:33 UTC
Hmm, is this a solaris specific bug? I thing replacing
Kopete::OnlineStatus::OnlineStatus() with just
Kopete::OnlineStatus() on line 138 will solve this?

If so, please reply here, and I'll commit this change.

I'd test it myself, but i just upgraded, and am not setting up my build tree again
Comment 2 Tejas Dinkar 2009-07-01 21:46:17 UTC
*now* setting up my build tree
Comment 3 Jan Hnatek 2009-07-07 13:38:35 UTC
Yes, it's most likely Solaris specific and I did the same thing that you propose:

--- kopete/protocols/bonjour/bonjouraccount.h.orig	2009-07-01 15:13:13.419294177 +0200
+++ kopete/protocols/bonjour/bonjouraccount.h	2009-07-01 15:13:41.396718792 0200
@@ -135,7 +135,7 @@
 	 *
 	 * @param initialStatus FIXME: This is pretty much ignored
 	 */
-	virtual void connect( const Kopete::OnlineStatus& initialStatus = opete::OnlineStatus::OnlineStatus() );
+	virtual void connect( const Kopete::OnlineStatus& initialStatus = Kopete::OnlineStatus() );
 
 	/**
 	 * @brief Disconnect from the service.

Thanks,
hnhn
Comment 4 Tejas Dinkar 2009-07-14 21:37:32 UTC
SVN commit 996733 by dinkar:

This fixes a build issue with Solaris using Sun Studio
Apparently I get to see my name in #kde-india
BUG: 198536

 M  +1 -1      bonjouraccount.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=996733
Comment 5 Pino Toscano 2009-07-15 01:35:18 UTC
SVN commit 996830 by pino:

backport SVN commit 996733 by dinkar:

This fixes a build issue with Solaris using Sun Studio
Apparently I get to see my name in #kde-india
CCBUG: 198536


 M  +1 -1      bonjouraccount.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=996830