On Wed, Jun 11, 2014 at 09:52:24PM +0100, Alberto Simoes wrote:

> One of Nigel's machines reported on my module Math::GSL:
> http://www.cpantesters.org/cpan/report/97446734-f1a2-11e3-af0f-6440bde15059
> 
> It seems that the problem is that CC is somehow configured as ' cc'. 
> Yes, with that space in the beginning.
> 
> I am not sure how that space got there. But it is messing around with 
> ExtUtils::CBuilder.
> 
> I am not sure if:
>  - ExtUtils::CBuilder should be tweaked to strip spaces in the command 
> name...
>  - or if this should never happen, and that Perl needs to be fixed 
> before continuing sending these reports...

Note that having spaces in $Config{cc} is valid. Back when I was the
maintainer of Devel::CheckLib it came up, the example being 'ccache cc'.
You need to split on spaces and build the compiler invocation from the
resulting list, as well as $Config{ccflags} or whatever it's called.
Possibly re-ordering the flags if you want to add your own. Thank god I
don't maintain that code any more :-)

I suppose that, theoretically, you might even need to parse something
hateful with quoted whitespace in it. Yuck.

However, leading/trailing whitespace like in this test report is
probably an error. Given that Config.pm is created at perl build time,
it might be worth taking up with p5p.

-- 
David Cantrell | Bourgeois reactionary pig

       23.5 degrees of axial tilt is the reason for the season

Reply via email to