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

2011-12-17 Thread Chuck Burns
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*>(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/
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information


[kde-freebsd] x11/kde4-baseapps fails to build under clang (a QT issue?)

2011-12-17 Thread Chuck Burns
In file included from 
/usr/ports/x11/kde4-baseapps/work/kde-baseapps-4.7.4/konq-plugins/domtreeviewer/domtreecommands.cpp:21: 

In file included from 
/usr/ports/x11/kde4-baseapps/work/kde-baseapps-4.7.4/konq-plugins/domtreeviewer/domtreecommands.h:24:

In file included from /usr/local/kde4/include/dom/dom_element.h:34:
In file included from /usr/local/kde4/include/dom/css_value.h:30:
In file included from /usr/local/kde4/include/dom/dom_string.h:26:
In file included from /usr/local/kde4/include/kdebug.h:27:
In file included from /usr/local/include/qt4/QtCore/QDebug:1:
In file included from /usr/local/include/qt4/QtCore/qdebug.h:48:
/usr/local/include/qt4/QtCore/qmap.h:107:17: error: invalid operands to 
binary expression ('const DOM::Node' and 'const DOM::Node')

return key1 < key2;
    ^ 
/usr/local/include/qt4/QtCore/qmap.h:782:49: note: in instantiation of 
function template specialization 'qMapLessThanKey' requested 
here
while ((next = cur->forward[i]) != e && 
qMapLessThanKey(concrete(next)->key, akey))

^
/usr/local/include/qt4/QtCore/qmap.h:562:28: note: in instantiation of 
member function 'QMap::mutableFindNode' requested here 


QMapData::Node *node = mutableFindNode(update, akey);
   ^
/usr/ports/x11/kde4-baseapps/work/kde-baseapps-4.7.4/konq-plugins/domtreeviewer/domtreecommands.cpp:137:17: 
note: in instantiation of member function 'QMapbool>::insert'

  requested here
  changedNodes->insert(node, true);
^
/usr/local/include/qt4/QtCore/qchar.h:390:13: note: candidate function 
not viable: no known conversion from 'const DOM::Node' to 'QChar' for 
1st argument;
inline bool operator<(QChar c1, QChar c2) { return c1.unicode() < 
c2.unicode(); }

^
/usr/local/include/qt4/QtCore/qbytearray.h:529:13: note: candidate 
function not viable: no known conversion from 'const DOM::Node' to 
'const QByteArray' for 1st argument;

inline bool operator<(const QByteArray &a1, const QByteArray &a2)
^
/usr/local/include/qt4/QtCore/qbytearray.h:531:14: note: candidate 
function not viable: no known conversion from 'const DOM::Node' to 
'const QByteArray' for 1st argument;

 inline bool operator<(const QByteArray &a1, const char *a2)
 ^
/usr/local/include/qt4/QtCore/qbytearray.h:533:13: note: candidate 
function not viable: no known conversion from 'const DOM::Node' to 
'const char *' for 1st argument;

inline bool operator<(const char *a1, const QByteArray &a2)
^
/usr/local/include/qt4/QtCore/qstring.h:941:32: note: candidate function 
not viable: no known conversion from 'const DOM::Node' to 'const char *' 
for 1st argument;

inline QT_ASCII_CAST_WARN bool operator<(const char *s1, const QString &s2)
   ^
/usr/local/include/qt4/QtCore/qstring.h:954:32: note: candidate function 
not viable: no known conversion from 'const DOM::Node' to 'const char *' 
for 1st argument;
inline QT_ASCII_CAST_WARN bool operator<(const char *s1, const 
QLatin1String &s2)

   ^
/usr/local/include/qt4/QtCore/qstring.h:967:13: note: candidate function 
not viable: no known conversion from 'const DOM::Node' to 'const 
QLatin1String' for 1st argument;

inline bool operator<(const QLatin1String &s1, const QLatin1String &s2)
^
/usr/local/include/qt4/QtCore/qstring.h:1189:20: note: candidate 
function not viable: no known conversion from 'const DOM::Node' to 
'const QStringRef' for 1st argument;

Q_CORE_EXPORT bool operator<(const QStringRef &s1,const QStringRef &s2);
   ^
/usr/local/include/qt4/QtCore/qpair.h:78:24: note: candidate template 
ignored: failed template argument deduction 

Q_INLINE_TEMPLATE bool operator<(const QPair &p1, const 
QPair &p2)

   ^
1 error generated. 



*** Error code 1

Stop in /usr/ports/x11/kde4-baseapps/work/kde-baseapps-4.7.4/build.
*** Error code 1

Stop in /usr/ports/x11/kde4-baseapps/work/kde-baseapps-4.7.4/build.
*** Error code 1

Stop in /usr/ports/x11/kde4-baseapps/work/kde-baseapps-4.7.4/build.
*** Error code 1

Stop in /usr/ports/x11/kde4-baseapps.
*** Error code 1

Stop in /usr/ports/x11/kde4-baseapps.

===>>> make failed for x11/kde4-baseapps
===>>> Aborting update

Terminated

--
Chuck Burns
The Southern Libertarian
http://www.thesouthernlibertarian.com/
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information