Opened 7 years ago

Closed 7 years ago

#55250 closed defect (fixed)

py27-pyqt4 @4.12.1_1: error: expected a class or namespace

Reported by: tehcog (tehcog) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: mavericks Cc: ccorn
Port: py-pyqt4

Description

:info:build /usr/bin/clang++ -c -Os -stdlib=libc++ -pipe -fPIC -arch x86_64 -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/libexec/qt4/mkspecs/macx-g++ -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Headers -I/opt/local/libexec/qt4/include -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -F/opt/local/libexec/qt4/lib -F/opt/local/libexec/qt4/Library/Frameworks -o sipQtGuiQList0100QTextEditExtraSelection.o sipQtGuiQList0100QTextEditExtraSelection.cpp
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui/sipQtGuicmodule.cpp:7646:53: error: expected a class or namespace
:info:build      ::QPrinter::PrinterState sipRes =  ::QPrinter::PrinterState::Idle;
:info:build                                         ~~~~~~~~~~~~^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui/sipQtGuicmodule.cpp:7711:53: error: expected a class or namespace
:info:build      ::QPaintEngine::Type sipRes =  ::QPaintEngine::Type::X11;
:info:build                                     ~~~~~~~~~~~~~~~~^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui/sipQtGuicmodule.cpp:8313:47: error: expected a class or namespace
:info:build      ::Qt::WindowFrameSection sipRes =  ::Qt::WindowFrameSection::NoSection;
:info:build                                         ~~~~~~^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui/sipQtGuicmodule.cpp:8680:47: error: expected a class or namespace
:info:build      ::QStyle::SubControl sipRes =  ::QStyle::SubControl::SC_None;
:info:build                                     ~~~~~~~~~~^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui/sipQtGuicmodule.cpp:8974:50: error: expected a class or namespace
:info:build      ::QValidator::State sipRes =  ::QValidator::State::Invalid;
:info:build                                    ~~~~~~~~~~~~~~^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui/sipQtGuicmodule.cpp:8984:50: error: expected a class or namespace
:info:build      ::QValidator::State sipRes =  ::QValidator::State::Invalid;
:info:build                                    ~~~~~~~~~~~~~~^
:info:build /usr/bin/clang++ -c -Os -stdlib=libc++ -pipe -fPIC -arch x86_64 -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/libexec/qt4/mkspecs/macx-g++ -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Headers -I/opt/local/libexec/qt4/include -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -F/opt/local/libexec/qt4/lib -F/opt/local/libexec/qt4/Library/Frameworks -o sipQtGuiQList0100QPolygonF.o sipQtGuiQList0100QPolygonF.cpp
:info:build /usr/bin/clang++ -c -Os -stdlib=libc++ -pipe -fPIC -arch x86_64 -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/libexec/qt4/mkspecs/macx-g++ -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Headers -I/opt/local/libexec/qt4/include -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -F/opt/local/libexec/qt4/lib -F/opt/local/libexec/qt4/Library/Frameworks -o sipQtGuiQVector0100QRect.o sipQtGuiQVector0100QRect.cpp
:info:build /usr/bin/clang++ -c -Os -stdlib=libc++ -pipe -fPIC -arch x86_64 -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/libexec/qt4/mkspecs/macx-g++ -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Headers -I/opt/local/libexec/qt4/include -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/qpy/QtGui -F/opt/local/libexec/qt4/lib -F/opt/local/libexec/qt4/Library/Frameworks -o sipQtGuiQVector0100QRectF.o sipQtGuiQVector0100QRectF.cpp
:info:build 6 errors generated.
:info:build make[1]: *** [sipQtGuicmodule.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/QtGui'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1" && make -j8 -w all
:info:build Exit code: 2
:error:build Failed to build py27-pyqt4: command execution failed
:debug:build Error code: CHILDSTATUS 29370 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/main.log for details.

Attachments (1)

main.log (311.0 KB) - added by tehcog (tehcog) 7 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by tehcog (tehcog)

Attachment: main.log added

main.log

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld removed
Keywords: mavericks added
Owner: set to michaelld
Status: newassigned
Summary: py27-pyqt4 @4.12.1_1 (Mavericks) fails to buildpy27-pyqt4 @4.12.1_1: error: expected a class or namespace

comment:2 Changed 7 years ago by manfeel (Manfeel)

I encountered the exactly same issue when installing gnuradio via mac ports, the gnuradio depends on py27-pyqt4. Finally, I resolved the issues by modifying the source code (it's dirty hacks!). in my system, the sources locate in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1

and there are so many definition errors! for example: QPrinter::PrinterState::Idle QPaintEngine::Type::X11 QStyle::SubControl::SC_None QAbstractVideoBuffer::MapMode::NotMapped QXmlNodeModelIndex::NodeKind::Attribute ... they should be: QPrinter::Idle QPaintEngine::X11 QStyle::SC_None QAbstractVideoBuffer::NotMapped QXmlNodeModelIndex::Attribute

I deleted the middle part of above definition and everything compiled like a charm ;-)

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Port: py-pyqt4 added; py27-pyqt4 removed

comment:4 Changed 7 years ago by michaelld (Michael Dickens)

Looks like this is the same basic issue as #55329, just for py27 instead of py35. I saw a fix somewhere. Will try to track it down.

comment:5 Changed 7 years ago by ccorn

Cc: ccorn added

comment:6 Changed 7 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

Should be fixed with the latest SIP update to 4.19.6 in commit https://github.com/macports/macports-ports/commit/bda419c71dfc437e7bd00b04a7a9325fac0c73ec . I'm going to close as fixed.

Note: See TracTickets for help on using tickets.