[MacPorts] #42073: p5-wx does not build
MacPorts
noreply at macports.org
Thu Jan 9 09:35:07 PST 2014
#42073: p5-wx does not build
--------------------------------+--------------------------------
Reporter: macsforever2000@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: p5-wx |
--------------------------------+--------------------------------
Comment (by mojca@…):
I get completely different errors when compiling for 5.12:
{{{
---> Configuring p5.12-wx
Warning: prerequisite ExtUtils::ParseXS 3.15 not found. We have 2.21.
Checking if your kit is complete...
Looks good
'WX' is not a known MakeMaker parameter name.
Writing Makefile for Wx::PerlTest
...
---> Building p5.12-wx
make: Entering directory
`/opt/local/var/macports/build/_Users_mojca_app_macports_svn_macports_trunk_dports_perl_p5-wx/p5.12-wx/work/Wx-0.9922'
/opt/local/bin/perl5.12 script/make_v_cback.pl > cpp/v_cback_def.h
/opt/local/bin/perl5.12 script/wxperl_overload cpp/ovl_const.cpp
cpp/ovl_const.h overload.lst
/opt/local/bin/perl5.12 /opt/local/lib/perl5/5.12.4/ExtUtils/xsubpp
-nolinenumbers -noprototypes -typemap
/opt/local/lib/perl5/5.12.4/ExtUtils/typemap -typemap typemap Wx.xs >
Wx.xsc && mv Wx.xsc Wx.c
Writing 'cpp/ovl_const.h'.
Writing 'cpp/ovl_const.cpp'.
touch wxt_overload
/opt/local/bin/perl5.12 /opt/local/lib/perl5/5.12.4/ExtUtils/xsubpp
-nolinenumbers -noprototypes -typemap
/opt/local/lib/perl5/5.12.4/ExtUtils/typemap -typemap typemap Constant.xs
> Constant.xsc && mv Constant.xsc Constant.c
/opt/local/bin/perl5.12 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp
XS/ItemContainer.xsp > XS/ItemContainer.xs
/opt/local/bin/perl5.12 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp
XS/ItemContainerImmutable.xsp > XS/ItemContainerImmutable.xs
/opt/local/bin/perl5.12 /opt/local/lib/perl5/5.12.4/ExtUtils/xsubpp
-nolinenumbers -noprototypes -typemap
/opt/local/lib/perl5/5.12.4/ExtUtils/typemap -typemap typemap Event.xs >
Event.xsc && mv Event.xsc Event.c
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/FontEnumerator.xsp' in
Wx.xs, line 547
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ArtProvider.xsp' in
Wx.xs, line 549
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/MimeTypes.xsp' in
Wx.xs, line 551
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Sound.xsp' in Wx.xs,
line 553
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Power.xsp' in Wx.xs,
line 555
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ClassInfo.xsp' in
Wx.xs, line 557
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Display.xsp' in Wx.xs,
line 559
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/StandardPaths.xsp' in
Wx.xs, line 561
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Variant.xsp' in Wx.xs,
line 563
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp
XS/NotificationMessage.xsp' in Wx.xs, line 565
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/EventFilter.xsp' in
Wx.xs, line 567
Error: Function definition too short 'INCLUDE_COMMAND: $^X
-MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp interface/wx/uiaction.h'
in Wx.xs, line 569
make: *** [Wx.c] Error 1
make: *** Waiting for unfinished jobs....
}}}
Just curious: seeing
`-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include
/osx_cocoa-unicode-3.0` in the flags of your build: shouldn't the port
also depend on `wxWidgets-3.0`? Not that this would solve any problem you
are experiencing.
With 5.16 I get the same error. The error complains about
`wxXML_ELEMENT_NODE` not being defined. What I did was:
{{{
cd
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/
> grep -r wxXML_ELEMENT_NODE .
./wx/xml/xml.h: wxXML_ELEMENT_NODE = 1,
}}}
so I added
{{{
#include "wx/xml/xml.h"
}}}
to `ext/xrc/cpp/xr_constants.cpp`. But then it throws another error about
{{{
Grid.c:398:44: error: too few arguments to function call, expected 3, have
2
}}}
I can confirm that `wx/generic/grid.h` expects three arguments:
{{{
virtual void PaintBackground(wxDC& dc,
const wxRect& rectCell,
const wxGridCellAttr& attr);
}}}
but it's up to the developer to find out why the third argument is missing
and how to fix that. The same file in wxWidgets 2.8 indeed expects just
two arguments:
{{{
virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr
*attr);
}}}
--
Ticket URL: <https://trac.macports.org/ticket/42073#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list