Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487222 - =sci-geosciences/qgis-2.0.1[python] - src/core/qgsmaplayerregistry.h:252:10: error: 'virtual void QgsMapLayerRegistry::connectNotify(const char*)' is private
Summary: =sci-geosciences/qgis-2.0.1[python] - src/core/qgsmaplayerregistry.h:252:10: ...
Status: RESOLVED DUPLICATE of bug 482644
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 15:49 UTC by Milos Popovic
Modified: 2014-05-05 14:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emergeinfo.txt,5.09 KB, text/plain)
2013-10-07 15:50 UTC, Milos Popovic
Details
build.log.xz (build.log.xz,54.46 KB, application/x-xz)
2013-10-08 15:33 UTC, Tom Wijsman (TomWij) (RETIRED)
Details
qgis-2.0.1-sipfix.patch (qgis-2.0.1-sipfix.patch,3.18 KB, patch)
2013-10-08 23:48 UTC, Milos Popovic
Details | Diff
build.log.xz - secund bug... (build.log.xz,75.53 KB, application/x-xz)
2013-10-08 23:54 UTC, Milos Popovic
Details
build.log.xz (qgis-1.8.0) (build.log.xz,28.43 KB, application/x-xz)
2013-10-08 23:57 UTC, Milos Popovic
Details
Fix for the second problem with new sip (qgis-2.0.1-sipfix2.patch,818 bytes, patch)
2013-10-09 20:22 UTC, Tomáš Chaloupka
Details | Diff
Modified patch for qgis-1.8.0 (qgis-2.0.1-sipfix.patch,2.71 KB, patch)
2013-10-09 21:10 UTC, Tomáš Chaloupka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Popovic 2013-10-07 15:49:29 UTC
I have tried both QGIS 1.8 and 2.0.1 (from rion overlay), and both failed to compile with python USE flag.

I have tried to play with different use flags, ant to emerge -ev qgis. Nothing helps.

I use Gnome, so my guessing is that it does have to do something with KDE dependencies???

Any ideas???

Reproducible: Always
Comment 1 Milos Popovic 2013-10-07 15:50:04 UTC
Created attachment 360326 [details]
emerge --info
Comment 2 Milos Popovic 2013-10-07 15:55:19 UTC
The output is also useless:

[ 58%] Building CXX object src/providers/wms/CMakeFiles/wmsprovider.dir/moc_qgswmtsdimensions.cxx.o
cd /var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/providers/wms && /usr/bin/x86_64-pc-linux-gnu-g++  -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -Dwmsprovider_EXPORTS  -DNDEBUG -march=amdfam10 -O2 -pipe -fomit-frame-pointer  -fPIC -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtSvg -isystem /usr/include/qt4/QtWebKit -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtSql -isystem /usr/include/qt4/QtNetwork -isystem /usr/include/qt4/QtCore -I/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build -I/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1/src/providers/wms/. -I/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1/src/providers/wms/../../core -I/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1/src/providers/wms/../../core/raster -I/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1/src/providers/wms/../../gui -I/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/providers/wms/../../ui    -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -o CMakeFiles/wmsprovider.dir/moc_qgswmtsdimensions.cxx.o -c /var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/providers/wms/moc_qgswmtsdimensions.cxx
Linking CXX shared module ../../../output/lib64/qgis/libwmsprovider.so
cd /var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/providers/wms && /usr/bin/cmake -E cmake_link_script CMakeFiles/wmsprovider.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=amdfam10 -O2 -pipe -fomit-frame-pointer   -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libwmsprovider.so -o ../../../output/lib64/qgis/libwmsprovider.so CMakeFiles/wmsprovider.dir/qgswmsprovider.cpp.o CMakeFiles/wmsprovider.dir/qgswmssourceselect.cpp.o CMakeFiles/wmsprovider.dir/qgswmsconnection.cpp.o CMakeFiles/wmsprovider.dir/qgswmsdataitems.cpp.o CMakeFiles/wmsprovider.dir/qgstilescalewidget.cpp.o CMakeFiles/wmsprovider.dir/qgswmtsdimensions.cpp.o CMakeFiles/wmsprovider.dir/moc_qgswmsprovider.cxx.o CMakeFiles/wmsprovider.dir/moc_qgswmssourceselect.cxx.o CMakeFiles/wmsprovider.dir/moc_qgswmsconnection.cxx.o CMakeFiles/wmsprovider.dir/moc_qgswmsdataitems.cxx.o CMakeFiles/wmsprovider.dir/moc_qgstilescalewidget.cxx.o CMakeFiles/wmsprovider.dir/moc_qgswmtsdimensions.cxx.o  -L/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/core  -L/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/gui ../../../output/lib64/libqgis_core.so.2.0.1 ../../../output/lib64/libqgis_gui.so.2.0.1 ../../../output/lib64/libqgis_core.so.2.0.1 /usr/lib64/qt4/libQtXml.so /usr/lib64/qt4/libQtCore.so /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtNetwork.so /usr/lib64/qt4/libQtSvg.so /usr/lib64/qt4/libQtWebKit.so -lproj -lgeos_c -lgdal -lspatialindex -lexpat -lsqlite3 -lspatialite /usr/lib64/qt4/libQtUiTools.a -lqwt6 -Wl,-rpath,/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/core:/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/gui:/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/output/lib64:/usr/lib64/qt4: 
make[2]: Leaving directory `/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/CMakeFiles  99
[ 58%] Built target wmsprovider
make[1]: Leaving directory `/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build'
make: *** [all] Error 2
 * ERROR: sci-geosciences/qgis-2.0.1::rion failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/qgis-2.0.1::rion'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/qgis-2.0.1::rion'`.
 * The complete build log is located at '/var/tmp/portage/sci-geosciences/qgis-2.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/qgis-2.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build'
 * S: '/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1'
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-07 16:15:04 UTC
Attach the complete build log such that we can help you, thank you in advance.
Comment 4 Milos Popovic 2013-10-07 23:50:30 UTC
It is 2.2 MB and we have 1000 KB restrictions...
You can get it here:
https://www.dropbox.com/s/kqdxnptsb1hx83q/build.log
Comment 5 Milos Popovic 2013-10-07 23:52:09 UTC
[ebuild   R   ] sci-geosciences/qgis-2.0.1  USE="gps python* spatialite -examples -grass -gsl -mapserver -postgres {-test}" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6"
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-08 15:33:52 UTC
Created attachment 360416 [details]
build.log.xz

You can compress it to get under the limit, it results in an impressive 55K. \o/
Comment 7 Milos Popovic 2013-10-08 19:08:55 UTC
How did you thought of that??? :D :)
Comment 8 Milos Popovic 2013-10-08 23:47:15 UTC
Hm, hm, hm... It is known Bug, fixed in QGIS Git.
http://hub.qgis.org/issues/8507
Comment 9 Milos Popovic 2013-10-08 23:48:20 UTC
Created attachment 360446 [details, diff]
qgis-2.0.1-sipfix.patch
Comment 10 Milos Popovic 2013-10-08 23:53:28 UTC
The patch works, however I still have build error at 97%. Any ideas?
Comment 11 Milos Popovic 2013-10-08 23:54:53 UTC
Created attachment 360448 [details]
build.log.xz - secund bug...
Comment 12 Milos Popovic 2013-10-08 23:57:22 UTC
Created attachment 360450 [details]
build.log.xz (qgis-1.8.0)
Comment 13 Tomáš Chaloupka 2013-10-09 20:19:03 UTC
Found that second problem is also already fixed upstream: http://hub.qgis.org/issues/8601
Comment 14 Tomáš Chaloupka 2013-10-09 20:22:59 UTC
Created attachment 360530 [details, diff]
Fix for the second problem with new sip
Comment 15 Tomáš Chaloupka 2013-10-09 21:07:27 UTC
Now it (qgis-2.0.1) fails with:
/usr/share/sip/QtGui/qsyntaxhighlighter.sip: In function ‘PyObject* meth_QgsExpressionHighlighter_setCurrentBlockUserData(PyObject*, PyObject*, PyObject*)’:
/usr/share/sip/QtGui/qsyntaxhighlighter.sip:78:77: error: ‘qtgui_wrap_ancestors’ was not declared in this scope
             PyObject *py_td = qtgui_wrap_ancestors(td, sipType_QTextDocument);
                                                                             ^

But qgis-1.8.0 builds ok for me.
Comment 16 Tomáš Chaloupka 2013-10-09 21:10:21 UTC
Created attachment 360532 [details, diff]
Modified patch for qgis-1.8.0

Modified patch for qgis-1.8.0 - there was non existent file on original patch which is in 2.0
Comment 17 Nikos Alexandris 2013-10-09 21:37:58 UTC
How can I test the patch?
Comment 18 Milos Popovic 2013-10-09 21:47:49 UTC
You should:
1. put the patch in sci-geoscience/qgis/files directory.
2. edit qgis-VERSION.ebuild file to add patch in scr_prepare() section:
epatch "${FILESDIR}"/${P}-sipfix.patch
3. run ebuild /path/to/qgis-VERSION.ebuild digest
4. emerge qgis

For version 2.0.1 now I got:

[ 88%] ^[[32mBuilding CXX object src/app/CMakeFiles/qgis.dir/composer/qgscomposerscalebarwidget.cpp.o
^[[0mcd /var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/src/app && /usr/bin/x86_64-pc-linux-gnu-g++  -DEXTERNAL_SPATIALITE -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQ$
/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/python/gui/sipguipart3.cpp: In function 'PyObject* meth_QgisInterface_openURL(PyObject*, PyObject*, PyObject*)':
/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/python/gui/sipguipart3.cpp:96400:35: warning: 'virtual void QgisInterface::openURL(QString, bool)' is deprecated (declared at /var/tmp/portage/s$
/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/python/gui/sipguipart3.cpp: In function 'PyObject* meth_QgisInterface_fileMenu(PyObject*, PyObject*)':
/var/tmp/portage/sci-geosciences/qgis-2.0.1/work/qgis-2.0.1_build/python/gui/sipguipart3.cpp:96452:39: warning: 'virtual QMenu* QgisInterface::fileMenu()' is deprecated (declared at /var/tmp/portage/sci-geoscie$
make[2]: *** [python/CMakeFiles/python_module_qgis_gui.dir/gui/sipguipart3.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 19 Nikos Alexandris 2013-10-09 22:33:50 UTC
Perfect, it works :-) Kudos for your efforts.
Comment 20 Egor Y. Egorov 2013-10-10 09:22:48 UTC
Please, test 2.0.1 from rion-overlay
Comment 21 Nikos Alexandris 2013-10-11 10:44:57 UTC
QGIS 2.0.1 (from the rion overlay) fails, sans patches, at 96%. Don't have the time currently to test with the patch.  In addition, I need to adjust the script so as to include a custom compiled "grass64_release". The available "grass 6.4.2" is too old.
Comment 22 Milos Popovic 2013-10-14 12:35:32 UTC
So as 2.0.1 is fixed in Rion, shouldn’t the patch for 1.8 version be commited and the bug closed?
Comment 23 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-05 14:17:48 UTC
*** Bug 509610 has been marked as a duplicate of this bug. ***
Comment 24 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-05 14:18:14 UTC

*** This bug has been marked as a duplicate of bug 482644 ***