#42327: qgis fails to compile --------------------+-------------------------------- Reporter: jsm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: qgis --------------------+-------------------------------- Qgis fails to compile in a fresh installation of Macports (in Mavericks). The relevant part of the error is the following: {{{ :info:build /opt/local/share/py27-sip/PyQt4/QtGui/qsyntaxhighlighter.sip:78:31: error: use of undeclared identifier 'qtgui_wrap_ancestors' :info:build PyObject *py_td = qtgui_wrap_ancestors(td, sipType_QTextDocument); :info:build }}} which was found by some people before ([http://gis.stackexchange.com/questions/72243/compiling-qgis-2-0-1-on- centos-sip-problems], [http://hub.qgis.org/issues/8826] and [https://hub.qgis.org/issues/8507]). The error seems to be related to the new versions of py-sip and it seems to be corrected in the development repository. I have checked this by creating a new test port of qgis with the latest source from Github. After removing all the patches but the last one of the Portfile (probably they are already applied to the code ?), qgis compiled and now seems to be installed all right. I do not have the necessary skills to identify which commit or patch corrected the problem. The good news is that this problem should be corrected in the future versions of qgis. The bad news is that the current version of the port seems to be affected. By the way, I also tried all the suggestions of reinstalling some ports found on the ticket #42083 because I had the same problem with the conflicting ports py27-pyqt4-devel and py27-pyqt4. But this seems to be unrelated to the problem that I report. -- Ticket URL: <https://trac.macports.org/ticket/42327> MacPorts <http://www.macports.org/> Ports system for OS X