[kde-freebsd] attempt to compile kdelibs-4.7.3 with clang.

Raphael Kubo da Costa rakuco at FreeBSD.org
Sat Dec 31 01:56:26 UTC 2011


Chuck Burns <break19 at gmail.com> writes:

> In file included from
> /usr/ports/x11/kdelibs4/work/kdelibs-4.7.3/kjs/lookup.cpp:23:
> /usr/ports/x11/kdelibs4/work/kdelibs-4.7.3/kjs/lookup.h:324:33: error:
> static_cast from 'KJS::JSGlobalObject *' to 'KJS::JSObject *' is not
> allowed
>   KJS::JSObject *globalObject = static_cast<KJS::JSObject
> *>(exec->lexicalInterpreter()->globalObject());
>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> *** Error code 1
> 1 error
> *** Error code 2
>
> The code compiles fine with gcc.. but I wonder if this is a clang bug,
> or a bug in kde ?

I have finally fixed the two reported issues upstream (commits d1fe207
and 01b0c1a) and added the patches to area51 and the ports tree. Thanks.


More information about the kde-freebsd mailing list