Opened 9 years ago

Closed 9 years ago

#32656 closed defect (fixed)

kdepim4 @4.7.4 akonadisender.cpp build error

Reported by: geekosaur Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: nerdling (Jeremy Lavergne), sharky@…, bjoern.ricks@…, macports@…, mac.ports.fishspit@…, NicosPavlov, mparchet@…
Port: kdepim4


/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepim4/kdepim4/work/kdepim-4.7.4/messagecomposer/akonadisender.cpp: In member function ‘void AkonadiSender::sendOrQueueMessage(const boost::shared_ptr<KMime::Message>&, MessageSender::SendMethod)’:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepim4/kdepim4/work/kdepim-4.7.4/messagecomposer/akonadisender.cpp:138: error: reference to ‘Message’ is ambiguous
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdepim4/kdepim4/work/kdepim-4.7.4/messagecomposer/util.h:35: error: candidates are: namespace Message { }
/opt/local/include/kmime/kmime_message.h:82: error:                 class KMime::Message

(this is after forcing configure.compiler=llvm-gcc-4.2, which appears to be necessary for most of the kde*4 ports) Lion, Xcode 4.2; no variants specified (not that any appear to be supported).

Attachments (2)

main.log (7.7 MB) - added by geekosaur 9 years ago.
port log kdepim4
main.2.log (97.2 KB) - added by mparchet@… 9 years ago.

Change History (10)

Changed 9 years ago by geekosaur

Attachment: main.log added

port log kdepim4

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Keywords: AkonadiSender Message ambiguous removed

comment:2 Changed 9 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:3 Changed 9 years ago by macports@…

I was able to compile kdepim4 @4.7.4 by removing the namespace declaration for "KMime" from akonadisender.cpp:41

The compiler gets confused because there is a KMime::Message class (but this is not the one which is used here, KMime::Message does not declare "Util"). This seems to be a bug/problem in gcc. gcc >= 4.5 will compile the file successfully (see

comment:4 Changed 9 years ago by mac.ports.fishspit@…

Cc: mac.ports.fishspit@… added

Cc Me!

comment:5 Changed 9 years ago by NicosPavlov

Cc: nicos@… added

Cc Me!

Changed 9 years ago by mparchet@…

Attachment: main.2.log added

comment:6 Changed 9 years ago by mparchet@…


I Wold like also compile kdepimn4 but I have this error message.

Log for kdepimlibs4 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdepimlibs4/kdepimlibs4/main.log
Error: The following dependencies were not installed: kdepimlibs4
Error: Status 1 encountered during processing.

Her's my log file

Best regards


comment:7 Changed 9 years ago by mparchet@…

Cc: mparchet@… added

Cc Me!

comment:8 Changed 9 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

The patch proposed by macports@… has been applied in r89301, which should address the issue. The problem in main.2.log shows that compilation stops at xine-lib, and is thus not related to this ticket.

Note: See TracTickets for help on using tickets.