[MacPorts] #49074: qt5-mac @5.4.2: error: declaration of anonymous struct must be a definition

MacPorts noreply at macports.org
Fri Oct 16 13:04:40 PDT 2015


#49074: qt5-mac @5.4.2: error: declaration of anonymous struct must be a definition
-----------------------+------------------------
  Reporter:  fpvvd1@…  |      Owner:  mcalhoun@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:  elcapitan
      Port:  qt5-mac   |
-----------------------+------------------------

Comment (by casey.webster@…):

 Replying to [comment:18 michaelld@…]:
 > NP. I've no idea why it would build for you & not others. It doesn't
 build for me because of the TBD libraries issue.

 Figured out it is building for me because my default python is 3.4.  Qt
 runs a python script that bails on a print without parenthesis causing a
 SyntaxError to be raised and fails to retrieve a python version number.
 It then assumes python < 2.7 and disables qtwebengine from being built.
 That explains why I am "successfully" building Qt while others are running
 into errors in Qtwebengine.

 {{{
 cd qtwebengine/ && ( test -e Makefile ||
 /opt/local/var/macports/build/_usr_local_ports_aqua_qt5-mac/qt5-mac/work
 /qt-everywhere-opensource-src-5.4.2/qtbase/bin/qmake
 /opt/local/var/macports/build/_usr_local_ports_aqua_qt5-mac/qt5-mac/work
 /qt-everywhere-opensource-src-5.4.2/qtwebengine/qtwebengine.pro -o
 Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
 Makefile
 cd qttools/ && ( test -e Makefile ||
 /opt/local/var/macports/build/_usr_local_ports_aqua_qt5-mac/qt5-mac/work
 /qt-everywhere-opensource-src-5.4.2/qtbase/bin/qmake
 /opt/local/var/macports/build/_usr_local_ports_aqua_qt5-mac/qt5-mac/work
 /qt-everywhere-opensource-src-5.4.2/qttools/qttools.pro -o Makefile ) &&
 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
 Info: creating cache file
 /opt/local/var/macports/build/_usr_local_ports_aqua_qt5-mac/qt5-mac/work
 /qt-everywhere-opensource-src-5.4.2/qttools/.qmake.cache
   File "<string>", line 1
     import sys; print sys.version_info.major
                         ^
 SyntaxError: invalid syntax
   File "<string>", line 1
     import sys; print sys.version_info.minor
                         ^
 SyntaxError: invalid syntax
 Info: creating cache file
 /opt/local/var/macports/build/_usr_local_ports_aqua_qt5-mac/qt5-mac/work
 /qt-everywhere-opensource-src-5.4.2/qtwebengine/.qmake.cache

 Using Python version ., but at least Python version 2.7 is required to
 build Qt WebEngine.
 QtWebEngine will not be built.
 }}}

 {{{
 % python --version
 Python 3.4.3
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/49074#comment:21>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list