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

Chuck Burns break19 at gmail.com
Sun Dec 18 02:26:40 UTC 2011


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 ?
-- 
Chuck Burns
The Southern Libertarian
http://www.thesouthernlibertarian.com/


More information about the kde-freebsd mailing list