[MacPorts] #61588: p5.28-wx: error: unknown type name 'class'
MacPorts
noreply at macports.org
Wed Mar 30 02:31:23 UTC 2022
#61588: p5.28-wx: error: unknown type name 'class'
-----------------------------+----------------------
Reporter: NozomuIshiguro | Owner: mojca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: p5-wx |
-----------------------------+----------------------
Changes (by ryandesign):
* cc: JeanJackPg (added)
Comment:
Replying to [comment:4 jptbtpj]:
> Basically the setup (perl Makefile.PL) is run fine, and after that
stage, the Makefile contains this line:
>
> {{{
> CC = /usr/bin/clang++ -UWX_PRECOMP
> }}}
>
> Then it looks like the post-configure step in the perl5 group script
[macports-ports/_resources/port1.0/group/perl5-1.0.tcl] is run [...]
> which causes the C++ compiler to be replaced by the C compiler. The
Makefile ends up with the replaced definition:
>
> {{{
> CC = /usr/bin/clang
> }}}
Obviously it's silly for a build system to define `CC` to be a C++
compiler. The variable `CC` is for defining the C compiler. If one wants
to use a C++ compiler, one should be using the variable `CXX`. The perl5
portgroup can't possibly be expected to know that a build system is
misusing the `CC` variable...
At least one problem seems to be in
build/Wx/build/MakeMaker/Any_wx_config.pm where it says:
{{{
$config{CC} = $ENV{CXX} || Alien::wxWidgets->compiler;
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61588#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list