[kde-freebsd] net/kdenetwork4 (from area51.pcbsd.org) don't build with clang
andrix vertunoff
vertunoff at gmail.com
Thu Apr 11 19:45:39 UTC 2013
Compiler log with some errors:
...
[ 42%] Building CXX object kget/CMakeFiles/kgetcore.dir/core/transfer.o
[ 42%] Building CXX object
kget/CMakeFiles/kgetcore.dir/core/transfergroupscheduler.o
[ 43%] Building CXX object kget/CMakeFiles/kgetcore.dir/core/transferhandler.o
[ 43%] Building CXX object kget/CMakeFiles/kgetcore.dir/core/urlchecker.o
[ 43%] Building CXX object
kget/CMakeFiles/kgetcore.dir/core/transferhistorystore.o
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.cpp:557:98:
error: parameter declarator cannot be qualified
Nepomuk::Query::ResourceTypeTerm
historyTypeTerm(Nepomuk::Types::Class(Nepomuk::HistoryItem::resourceTypeUri()));
~~~~~~~~~~~~~~~~~~~~~~^
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.cpp:557:53:
warning: parentheses were disambiguated as a function declaration
[-Wvexing-parse]
Nepomuk::Query::ResourceTypeTerm
historyTypeTerm(Nepomuk::Types::Class(Nepomuk::HistoryItem::resourceTypeUri()));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.cpp:557:54:
note: add a pair of parentheses to declare a variable
Nepomuk::Query::ResourceTypeTerm
historyTypeTerm(Nepomuk::Types::Class(Nepomuk::HistoryItem::resourceTypeUri()));
^
(
)
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.cpp:558:27:
error: no matching constructor for initialization of
'Nepomuk::Query::Query'
Nepomuk::Query::Query historyQuery(historyTypeTerm);
^ ~~~~~~~~~~~~~~~
/usr/local/kde4/include/KDE/Nepomuk/Query/../../../nepomuk/query.h:87:22:
note: candidate constructor not viable: no known conversion from
'Nepomuk::Query::ResourceTypeTerm (Nepomuk::Types::Class ((*)()))' to
'const Nepomuk::Query::Term' for 1st argument
explicit Query( const Term& term );
^
/usr/local/kde4/include/KDE/Nepomuk/Query/../../../nepomuk/query.h:92:13:
note: candidate constructor not viable: no known conversion from
'Nepomuk::Query::ResourceTypeTerm (Nepomuk::Types::Class ((*)()))' to
'const Nepomuk::Query::Query' for 1st argument
Query( const Query& );
^
/usr/local/kde4/include/KDE/Nepomuk/Query/../../../nepomuk/query.h:82:13:
note: candidate constructor not viable: requires 0 arguments, but 1
was provided
Query();
^
In file included from
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.cpp:11:
In file included from
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.h:14:
In file included from
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/kget_export.h:14:
In file included from /usr/local/kde4/include/KDE/KPluginFactory:1:
In file included from /usr/local/kde4/include/KDE/../kpluginfactory.h:27:
In file included from /usr/local/include/qt4/QtCore/QObject:1:
In file included from /usr/local/include/qt4/QtCore/qobject.h:50:
/usr/local/include/qt4/QtCore/qlist.h:381:22: warning: source of this
'memcpy' call is a pointer to dynamic class 'const
TransferHistoryItem'; vtable pointer will be copied
[-Wdynamic-class-memaccess]
else ::memcpy(n, &t, sizeof(T));
~~~~~~~~ ^
/usr/local/include/qt4/QtCore/qlist.h:512:13: note: in instantiation
of member function 'QList<TransferHistoryItem>::node_construct'
requested here
node_construct(n, t);
^
/usr/ports/net/kdenetwork4/work/kdenetwork-4.10.2/kget/core/transferhistorystore.cpp:396:13:
note: in instantiation of member function
'QList<TransferHistoryItem>::append' requested here
m_items.append(item);
^
/usr/local/include/qt4/QtCore/qlist.h:381:22: note: explicitly cast
the pointer to silence this warning
else ::memcpy(n, &t, sizeof(T));
^
(void*)
2 warnings and 2 errors generated.
*** [kget/CMakeFiles/kgetcore.dir/core/transferhistorystore.o] Error code 1
1 error
*** [kget/CMakeFiles/kgetcore.dir/all] Error code 2
1 error
*** [all] Error code 2
1 error
*** [do-build] Error code 1
Stop in /usr/ports/net/kdenetwork4.
*** [build] Error code 1
Stop in /usr/ports/net/kdenetwork4.
....
uname -a
FreeBSD freehost 9.1-STABLE FreeBSD 9.1-STABLE #0 r249260M: Tue Apr 9
03:33:05 SAMT 2013 root at freehost:/usr/obj/usr/src/sys/GENERIC
amd64
clang -v
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
Target: x86_64-unknown-freebsd9.1
Thread model: posix
--
andrix v.vertunoff
More information about the kde-freebsd
mailing list