[kde-freebsd] [patch] kdepim-4.9.0 doesn't build: kmail/kmreaderwin.cpp:673: error: reference to 'Message' is ambiguous

Oleg Sidorkin osidorkin at gmail.com
Sat Aug 18 11:02:47 UTC 2012


Hello!

I'm trying to build KDE 4.9 from SVN branch and found the following error
during kdepim building:

[ 97%] Building CXX object kmail/CMakeFiles/kmailprivate.dir/kmreaderwin.o
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:
In member function 'bool KMReaderWin::printSelectedText(bool)':
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:673:
error: reference to 'Message' is ambiguous
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/messagecomposer/util.h:38:
error: candidates are: namespace Message { }
/usr/local/kde4/include/kmime/kmime_message.h:82: error:
class KMime::Message
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:673:
error: reference to 'Message' is ambiguous
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/messagecomposer/util.h:38:
error: candidates are: namespace Message { }
/usr/local/kde4/include/kmime/kmime_message.h:82: error:
class KMime::Message
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:
In member function 'void KMReaderWin::slotPrintComposeResult(KJob*)':
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:693:
error: reference to 'Message' is ambiguous
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/messagecomposer/util.h:38:
error: candidates are: namespace Message { }
/usr/local/kde4/include/kmime/kmime_message.h:82: error:
class KMime::Message
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:693:
error: reference to 'Message' is ambiguous
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/messagecomposer/util.h:38:
error: candidates are: namespace Message { }
/usr/local/kde4/include/kmime/kmime_message.h:82: error:
class KMime::Message
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/kmail/kmreaderwin.cpp:694:
error: reference to 'Message' is ambiguous
/data/build/usr/ports/deskutils/kdepim4/work/kdepim-4.9.0/messagecomposer/util.h:38:
error: candidates are: namespace Message { }
/usr/local/kde4/include/kmime/kmime_message.h:82: error:
class KMime::Message

I've commented out "using namespace KMime;" entry since everywhere in this
file KMime namespace is used explicitly and now kdepim builds without
errors.

The patch is attached.

Thanks
-- 
Oleg Sidorkin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20120818/06723662/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-kmail__kmreaderwin.cpp
Type: text/x-c++src
Size: 327 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20120818/06723662/attachment.cpp>


More information about the kde-freebsd mailing list