This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Build tellico on OpenBSD

Tags: None
(comma "," separated)
mod
Registered Member
Posts
17
Karma
0

Build tellico on OpenBSD

Sat Feb 21, 2015 9:19 am
Hi,

I'm trying to build tellico 2.3.10 on OpenBSD with gcc-4.8.4, but it fails with :
Code: Select all
[335/532] /usr/ports/pobj/tellico-2.3.10/bin/c++   -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=30 -DKDE_DEPRECATED_WARNINGS -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_STL -DYAZ_HAVE_EXSLT=1 -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -D_REENTRANT -O2 -pipe     -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -Wnon-virtual-dtor -Wno-long-long -Wextra -fno-check-new -Woverloaded-virtual -DNDEBUG -DQT_NO_DEBUG -Isrc/fetch -I/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch -I. -I/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/core -I/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/3rdparty -I/usr/local/include/kde4 -I/usr/local/include/kde4/KDE -I/usr/local/include/poppler/qt4 -I/usr/local/include/exempi-2.0 -I/usr/local/include/X11/qt4/QtDesigner -I/usr/local/include/X11/qt4/QtDeclarative -I/usr/local/include/X11/qt4/QtScriptTools -I/usr/local/include/X11/qt4/QtDBus -I/usr/local/include/X11/qt4/QtXml -I/usr/local/include/X11/qt4/QtSql -I/usr/local/include/X11/qt4/QtOpenGL -I/usr/local/include/X11/qt4/QtMultimedia -I/usr/local/include/X11/qt4/QtNetwork -I/usr/local/include/X11/qt4/phonon -I/usr/local/include/X11/qt4/QtXmlPatterns -I/usr/local/include/X11/qt4/QtWebKit -I/usr/local/include/X11/qt4/QtHelp -I/usr/local/include/X11/qt4/QtUiTools -I/usr/local/include/X11/qt4/QtTest -I/usr/local/include/X11/qt4/QtScript -I/usr/local/include/X11/qt4/QtSvg -I/usr/local/include/X11/qt4/QtGui -isystem /usr/local/include/X11/qt4/QtCore -isystem /usr/local/lib/qt4/mkspecs/default -isystem /usr/local/include/X11/qt4 -I/usr/X11R6/include -I/usr/local/include/qimageblitz -I/usr/local/include/libxml2    -I/usr/local/include/exempi-2.0 -I/usr/local/include  -D_LARGEFILE64_SOURCE -I/usr/local/include -I/usr/local/include/libxml2 -MMD -MT src/fetch/CMakeFiles/fetch.dir/discogsfetcher.o -MF src/fetch/CMakeFiles/fetch.dir/discogsfetcher.o.d -o src/fetch/CMakeFiles/fetch.dir/discogsfetcher.o -c /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp
FAILED: /usr/ports/pobj/tellico-2.3.10/bin/c++   -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=30 -DKDE_DEPRECATED_WARNINGS -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_STL -DYAZ_HAVE_EXSLT=1 -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -D_REENTRANT -O2 -pipe     -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -Wnon-virtual-dtor -Wno-long-long -Wextra -fno-check-new -Woverloaded-virtual -DNDEBUG -DQT_NO_DEBUG -Isrc/fetch -I/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch -I. -I/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/core -I/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/3rdparty -I/usr/local/include/kde4 -I/usr/local/include/kde4/KDE -I/usr/local/include/poppler/qt4 -I/usr/local/include/exempi-2.0 -I/usr/local/include/X11/qt4/QtDesigner -I/usr/local/include/X11/qt4/QtDeclarative -I/usr/local/include/X11/qt4/QtScriptTools -I/usr/local/include/X11/qt4/QtDBus -I/usr/local/include/X11/qt4/QtXml -I/usr/local/include/X11/qt4/QtSql -I/usr/local/include/X11/qt4/QtOpenGL -I/usr/local/include/X11/qt4/QtMultimedia -I/usr/local/include/X11/qt4/QtNetwork -I/usr/local/include/X11/qt4/phonon -I/usr/local/include/X11/qt4/QtXmlPatterns -I/usr/local/include/X11/qt4/QtWebKit -I/usr/local/include/X11/qt4/QtHelp -I/usr/local/include/X11/qt4/QtUiTools -I/usr/local/include/X11/qt4/QtTest -I/usr/local/include/X11/qt4/QtScript -I/usr/local/include/X11/qt4/QtSvg -I/usr/local/include/X11/qt4/QtGui -isystem /usr/local/include/X11/qt4/QtCore -isystem /usr/local/lib/qt4/mkspecs/default -isystem /usr/local/include/X11/qt4 -I/usr/X11R6/include -I/usr/local/include/qimageblitz -I/usr/local/include/libxml2    -I/usr/local/include/exempi-2.0 -I/usr/local/include  -D_LARGEFILE64_SOURCE -I/usr/local/include -I/usr/local/include/libxml2 -MMD -MT src/fetch/CMakeFiles/fetch.dir/discogsfetcher.o -MF src/fetch/CMakeFiles/fetch.dir/discogsfetcher.o.d -o src/fetch/CMakeFiles/fetch.dir/discogsfetcher.o -c /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp
In file included from /usr/local/include/X11/qt4/QtCore/qchar.h:45:0,
                 from /usr/local/include/X11/qt4/QtCore/qstring.h:45,
                 from /usr/local/include/X11/qt4/QtCore/QString:1,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchrequest.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:29,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp: In member function 'void Tellico::Fetch::DiscogsFetcher::slotComplete(KJob*)':
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: error: no matching function for call to 'QVariant::value(QLatin1String) const'
   foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
                                                                        ^
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: note: candidate is:
In file included from /usr/local/include/X11/qt4/QtCore/QVariant:1:0,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../filter.h:34,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../collection.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../datavectors.h:74,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchresult.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/local/include/X11/qt4/QtCore/qvariant.h:332:14: note: template<class T> T QVariant::value() const
     inline T value() const
              ^
/usr/local/include/X11/qt4/QtCore/qvariant.h:332:14: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/X11/qt4/QtCore/qchar.h:45:0,
                 from /usr/local/include/X11/qt4/QtCore/qstring.h:45,
                 from /usr/local/include/X11/qt4/QtCore/QString:1,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchrequest.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:29,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: note:   candidate expects 0 arguments, 1 provided
   foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
                                                                        ^
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: error: no matching function for call to 'QVariant::value(QLatin1String) const'
   foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
                                                                        ^
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: note: candidate is:
In file included from /usr/local/include/X11/qt4/QtCore/QVariant:1:0,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../filter.h:34,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../collection.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../datavectors.h:74,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchresult.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/local/include/X11/qt4/QtCore/qvariant.h:332:14: note: template<class T> T QVariant::value() const
     inline T value() const
              ^
/usr/local/include/X11/qt4/QtCore/qvariant.h:332:14: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/X11/qt4/QtCore/qchar.h:45:0,
                 from /usr/local/include/X11/qt4/QtCore/qstring.h:45,
                 from /usr/local/include/X11/qt4/QtCore/QString:1,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchrequest.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:29,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: note:   candidate expects 0 arguments, 1 provided
   foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
                                                                        ^
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: error: no matching function for call to 'QVariant::value(QLatin1String) const'
   foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
                                                                        ^
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: note: candidate is:
In file included from /usr/local/include/X11/qt4/QtCore/QVariant:1:0,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../filter.h:34,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../collection.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/../datavectors.h:74,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchresult.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/local/include/X11/qt4/QtCore/qvariant.h:332:14: note: template<class T> T QVariant::value() const
     inline T value() const
              ^
/usr/local/include/X11/qt4/QtCore/qvariant.h:332:14: note:   template argument deduction/substitution failed:
In file included from /usr/local/include/X11/qt4/QtCore/qchar.h:45:0,
                 from /usr/local/include/X11/qt4/QtCore/qstring.h:45,
                 from /usr/local/include/X11/qt4/QtCore/QString:1,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetchrequest.h:30,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/fetcher.h:29,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.h:28,
                 from /usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:26:
/usr/ports/pobj/tellico-2.3.10/tellico-2.3.10/src/fetch/discogsfetcher.cpp:278:72: note:   candidate expects 0 arguments, 1 provided
   foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
                                                                        ^
ninja: build stopped: subcommand failed.


Thanks in advance for your help !
mod
Registered Member
Posts
17
Karma
0

Re: Build tellico on OpenBSD

Sun Mar 01, 2015 6:57 pm
With help of openbsd dev, there is a conflict with 'result' variable, fix :
Code: Select all
--- src/fetch/discogsfetcher.cpp.orig   Sun Mar  1 18:28:11 2015
+++ src/fetch/discogsfetcher.cpp   Sun Mar  1 18:29:52 2015
@@ -275,15 +275,15 @@ void DiscogsFetcher::slotComplete(KJob* job_) {
   }
 
   int count = 0;
-  foreach(const QVariant& result, result.value(QLatin1String("results")).toList()) {
+  foreach(const QVariant& vr, result.value(QLatin1String("results")).toList()) {
     if(count >= DISCOGS_MAX_RETURNS_TOTAL) {
       break;
     }
 
-  //  myDebug() << "found result:" << result;
+  //  myDebug() << "found result:" << vr;
 
     Data::EntryPtr entry(new Data::Entry(coll));
-    populateEntry(entry, result.toMap(), false);
+    populateEntry(entry, vr.toMap(), false);
 
     FetchResult* r = new FetchResult(Fetcher::Ptr(this), entry);
     m_entries.insert(r->uid, entry);
robbystephenson
KDE Developer
Posts
384
Karma
1
OS

Re: Build tellico on OpenBSD

Sun Mar 01, 2015 7:16 pm
mod wrote:With help of openbsd dev, there is a conflict with 'result' variable, fix :

Ah, indeed, thanks!


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell