Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Inline CPAN distribution.

Report information
The Basics
Id: 61218
Status: resolved
Priority: 0/
Queue: Inline

People
Owner: Nobody in particular
Requestors: derek [...] boulder.swri.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Inline::C doesn't find c compiler with decimal point in name
Date: Thu, 9 Sep 2010 14:12:05 -0600
To: bug-Inline [...] rt.cpan.org
From: Derek Lamb <derek [...] boulder.swri.edu>
On a Mac running OS X 10.6.4, trying to install Inline::C. This is using perl 5.8.9 (from MacPorts). $Config{cc} gives '/usr/bin/gcc-4.2', which exists. However, Inline::C says it cannot find the compiler. I believe this is because the $comp string in Inline::C/Makefile.PL strips off anything after the '.', believing it to be a filename extension. The following command prints "found": perl -e 'use Config; unless(-e $Config{cc}){print "not ";} print "found\n";' telling it to ignore that warning allows it to pass make test and install just fine (I think so far). Derek
On Thu Sep 09 16:12:14 2010, derek@boulder.swri.edu wrote: Show quoted text
> On a Mac running OS X 10.6.4, trying to install Inline::C. This is > using perl 5.8.9 (from MacPorts). $Config{cc} gives '/usr/bin/gcc- > 4.2', which exists. However, Inline::C says it cannot find the > compiler. I believe this is because the $comp string in > Inline::C/Makefile.PL strips off anything after the '.', believing > it to be a filename extension. > > The following command prints "found": > perl -e 'use Config; unless(-e $Config{cc}){print "not ";} print > "found\n";'
That seems to be a fairly sane approach to determining whether $Config {cc} is executable :-) Show quoted text
> telling it to ignore that warning allows it to pass make test and > install just fine (I think so far).
Yes, the fact that the C/Makefile.PL can't find the compiler shouldn't matter in the least, so long as Inline::C can find it. (I don't really know why all that probing done by the C/Makefile.PL is necessary ... or even if it *is* necessary.) Does your compiler get found with Inline-0.46_01 ? If (as I expect) it's still not being found, try inserting the following line at the very beginning of the find_executable subroutine (which you'll find at the bottom of the 0.46_01 C/Makefile.PL): return 1 if -e $_[0]; If that fixes it, then that's what I'll do in 0.47. Cheers, Rob
Subject: Re: [rt.cpan.org #61218] Inline::C doesn't find c compiler with decimal point in name
Date: Fri, 1 Oct 2010 11:02:13 -0600
To: bug-Inline [...] rt.cpan.org
From: Derek Lamb <derek [...] boulder.swri.edu>
Sorry about the long turnaround on this. See below. On Sep 9, 2010, at 6:32 PM, Sisyphus via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=61218 > > > On Thu Sep 09 16:12:14 2010, derek@boulder.swri.edu wrote:
>> On a Mac running OS X 10.6.4, trying to install Inline::C. This is >> using perl 5.8.9 (from MacPorts). $Config{cc} gives '/usr/bin/gcc- >> 4.2', which exists. However, Inline::C says it cannot find the >> compiler. I believe this is because the $comp string in >> Inline::C/Makefile.PL strips off anything after the '.', believing >> it to be a filename extension. >> >> The following command prints "found": >> perl -e 'use Config; unless(-e $Config{cc}){print "not ";} print >> "found\n";'
> > That seems to be a fairly sane approach to determining whether $Config > {cc} is executable :-) >
>> telling it to ignore that warning allows it to pass make test and >> install just fine (I think so far).
> > Yes, the fact that the C/Makefile.PL can't find the compiler shouldn't > matter in the least, so long as Inline::C can find it. (I don't really > know why all that probing done by the C/Makefile.PL is necessary ... or > even if it *is* necessary.) > > Does your compiler get found with Inline-0.46_01 ?
No, it does not. Show quoted text
> If (as I expect) it's still not being found, try inserting the > following line at the very beginning of the find_executable subroutine > (which you'll find at the bottom of the 0.46_01 C/Makefile.PL): > > return 1 if -e $_[0]; > > If that fixes it, then that's what I'll do in 0.47.
that does the trick. Thanks! Derek Show quoted text
> > Cheers, > Rob > >
RT-Send-CC: derek [...] boulder.swri.edu
Hi Derek, Fixed in 0.46_02, and closed today with the release of 0.47 Cheers, Rob