Master fails to compile with cclan in moz module

Stephan Bergmann sbergman at redhat.com
Mon Feb 13 23:22:10 PST 2012


On 02/13/2012 09:12 PM, julien2412 wrote:
> You were right Michael about moz, i did a "rm -Rf unxlng*" and the errors
> quoted in my first post didn't appear again. (strange because i had done a
> make clean on root level).
>
> Now i've got these errors :
> In file included from ../../../xpcom/glue/nsINIParser.cpp:41:
> In file included from ../../../xpcom/glue/nsINIParser.h:47:
> ../../../xpcom/glue/nsClassHashtable.h:101:5: error: use of undeclared
> identifier 'GetEntry'
>      GetEntry(aKey);
>      ^
>      this->
[...]
> GetEntry is declared in xpcom/glue/nsTHashtable.h but even if I add an
> include in xpcom/glue/nsClassHashtable.h, I still got these errors
>
> Any idea ?

The version of mozilla sources included in LO is not legal C++, in a way 
that happens to be accepted by lots of compilers but rejected by Clang. 
  The solution is to either add yet another patch to module moz (the 
dependent name lookups need to be qualified with "this->" etc.---as the 
compiler error message already tries to convey) or try your Clang build 
without mozilla.  (Anyway, you will later on stumble over 
<http://llvm.org/bugs/show_bug.cgi?id=11250> "no code emitted for 
virtual inline function inherited indirectly from class template.")

Stephan


More information about the LibreOffice mailing list