New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13756 (new defect)

Opened 5 years ago

Last modified 3 years ago

py25-wxpython fails to build - version mismatch with wxWidgets

Reported by: gjznituv@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: jwa@…
Port: py25-wxpython

Description

[~] sudo port install py25-wxpython
--->  Fetching py25-wxpython
--->  Verifying checksum(s) for py25-wxpython
--->  Extracting py25-wxpython
--->  Configuring py25-wxpython
--->  Building py25-wxpython with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-wxpython/work/wxPython-src-2.8.7.1/wxPython" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: /usr/bin/g++-4.0 -L/opt/local/lib -bundle -undefined dynamic_lookup build.unicode/temp.macosx-10.3-i386-2.5/src/helpers.o build.unicode/temp.macosx-10.3-i386-2.5/src/mac/_core_wrap.o -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lstdc++ -lwx_macu-2.8 -o build.unicode/lib.macosx-10.3-i386-2.5/wx/_core_.so -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime
building '_gdi_' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -Iinclude -Isrc -I/opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/include/wx-2.8 -I/opt/local/include/python2.5 -c src/drawlist.cpp -o build.unicode/temp.macosx-10.3-i386-2.5/src/drawlist.o -O3
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -Iinclude -Isrc -I/opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/include/wx-2.8 -I/opt/local/include/python2.5 -c src/pseudodc.cpp -o build.unicode/temp.macosx-10.3-i386-2.5/src/pseudodc.o -O3
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
src/pseudodc.cpp: In function 'void GreyOutImage(wxImage&)':
src/pseudodc.cpp:60: warning: 'mb' may be used uninitialized in this function
src/pseudodc.cpp:60: warning: 'mg' may be used uninitialized in this function
src/pseudodc.cpp:60: warning: 'mr' may be used uninitialized in this function
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -Iinclude -Isrc -I/opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/include/wx-2.8 -I/opt/local/include/python2.5 -c src/mac/_gdi_wrap.cpp -o build.unicode/temp.macosx-10.3-i386-2.5/src/mac/_gdi_wrap.o -O3
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
src/mac/_gdi_wrap.cpp: In function 'wxPalette* new_wxPalette(const wxArrayInt&, const wxArrayInt&, const wxArrayInt&)':
src/mac/_gdi_wrap.cpp:2882: warning: comparison between signed and unsigned integer expressions
src/mac/_gdi_wrap.cpp:2882: warning: comparison between signed and unsigned integer expressions
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_GCDC_Flush(PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:31028: error: 'class wxDC' has no member named 'Flush'
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_PenList_AddPen(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32474: warning: 'AddPen' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:516)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_PenList_RemovePen(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32512: warning: 'RemovePen' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:517)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_BrushList_AddBrush(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32605: warning: 'AddBrush' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:526)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_BrushList_RemoveBrush(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32643: warning: 'RemoveBrush' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:527)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_FontList_AddFont(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32795: warning: 'AddFont' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:539)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_FontList_RemoveFont(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32833: warning: 'RemoveFont' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:540)
error: command '/usr/bin/gcc-4.0' failed with exit status 1

Error: Status 1 encountered during processing.
[~] 

Change History

comment:1 Changed 5 years ago by skip@…

I get the same error (PB G4, OS X 10.4.11, Xcode 2.5, wxWidgets 2.8.7).

Skip Montanaro

comment:2 Changed 5 years ago by mdickens@…

Ticket #11267 has a tarball for python25 that might resolve this ticket. At least for me, this tarball fixes the python25 install, which corrects the py25-wxpython install issue on 10.5, but still works on 10.4.

comment:3 Changed 5 years ago by gjznituv@…

I downloaded it, but how should I use it? Where can I find proper instructions?

Thanks

comment:4 Changed 5 years ago by jmpp@…

  • Milestone set to Port Bugs

comment:5 Changed 5 years ago by mdickens@…

Some re-Build instructions are in ticket #11267, but I don't think that's the issue ... the install of python25, in my testing, has no impact on the error documented here. Following those re-Build instructions, in particular step (1) to update the installed ports

sudo port selfupdate
sudo port upgrade installed

should have taken care of this issue for most folks. For some reason it hasn't or didn't for the ticket issuer, gjznituv@gmail.com .

After some discussion back and forth with the ticket issuer, I believe it's a version mismatch between wxWidgets and py25-wxpython. In my testing, reverting back to wxWidgets 2.8.6, and trying to install py25-wxpython 2.8.7.1 results in the exact same error as documented in this ticket. I would suggest that the Portfile for py-wxpython, py25-wxpython, py30-wxpython, and so forth, include some check to make sure the version of wxWidgets is correct, as this has been an issue before and will continue to be an issue so long as the versions of wxWidgets and wxpython need to be closely linked.

comment:6 Changed 5 years ago by jmr@…

  • Owner changed from macports-tickets@… to mww@…
  • Cc jwa@… added

Assigning to maintainer.

comment:7 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

comment:8 Changed 3 years ago by jmr@…

  • Port set to py25-wxpython
  • Summary changed from py25-wxpython fails to build on Leopard to py25-wxpython fails to build - version mismatch with wxWidgets
Note: See TracTickets for help on using tickets.