Web lists-archives.com

Re: [kde-linux] Building KDEPIM 4.7 from the GIT repository

On 12/19/2011 05:54 PM, Duncan wrote:
James Tyrer posted on Mon, 19 Dec 2011 16:56:26 -0700 as excerpted:

On 12/19/2011 02:16 PM, James Tyrer wrote:
For several weeks building KDEPIM from GIT "origin/KDE/4.7" has failed
with this error:

/usr/GIT/KDE/kdepim/messagecomposer/akonadisender.cpp:138: error:
reference to 'Message' is ambiguous

However the tag v4.7.3 builds OK, indicating that the source was broken
since release 4.7.3 was tagged. Now, release 4.7.4 has been tagged and
it will not build.

I have to say that although I probably would have written: "util.cpp"
differently (in the namespace Message::Util to match util.h), I have not
been able to find an error.  I note that I am not a C++ expert -- I do
not like the language.  But, it must either be a very subtle error or a
compiler bug.

As you likely know by now, I don't even have kdepim installed any longer,

You're building from git, and you know 4.7.3 works and something later
doesn't work.  Have you tried git bisect-ing the problem?  I don't claim
to know either C or C++, but I can git bisect, and once it's bisected to
a single commit, between limiting the code I'm looking at to just that
commit and what I remember from pascal back in college, I can often find
the issue.

Yes, I have it down to the file and the changes in that file that broke it.

I upgraded GCC and now it builds -- my compiler was getting a bit old although it isn't really safe to install the newest version either.

But, that doesn't establish whether it was illegal code or not since the GCC compilers will often compile code that isn't legal.

James Tyrer

Linux (mostly) From Scratch
This message is from the kde-linux mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.