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: 92144
Status: resolved
Priority: 0/
Queue: Inline

People
Owner: Nobody in particular
Requestors: PLICEASE [...] cpan.org
Cc:
AdminCc:

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



Subject: can't find gcc-4 on cygwin (patch to fix)
Hi there, the Makefile.PL incorrectly is unable to find gcc-4 on cygwin: Config.pm indicates that your version of Perl was built with this C compiler: gcc-4 I cannot locate this compiler on your system. This patch fixes it: --- a/C/Makefile.PL +++ b/C/Makefile.PL @@ -5,6 +5,7 @@ use File::Spec; my ($cc, $exe) = @Config{'cc', '_exe'}; $cc =~ s/\s+-.+$//; #remove possible trailing options +$exe = '' if $^O eq 'cygwin'; my $found = 0; my $delim = $Config::Config{path_sep}; explanation: Although executable by convention end in .exe on Cygwin, programs in the PATH, may actually be a symlink without an extension, as is the case with gcc-4: fs01% ls -l /usr/bin/gcc-4* lrwxrwxrwx 1 ollisg None 7 Sep 13 10:42 /usr/bin/gcc-4 -> gcc.exe* The patch above still also works if $Config{cc} is not a symlink and does have the .exe extension, because on Cygwin -f (and friends) works both with and without the extension for executable. For example: fs01% ls -l /usr/bin/df* -rwx------+ 1 ollisg None 90638 Feb 6 2012 /usr/bin/df.exe* fs01% perl -E 'say -f "/usr/bin/df"' 1 fs01% perl -E 'say -f "/usr/bin/df.exe"' 1
From: rurban [...] x-ray.at
Fixed in https://github.com/rurban/Inline and unauthorized RURBAN/Inline-0.54_02.tar.gz on cpan
RT-Send-CC: rurban [...] x-ray.at
On Tue Jan 14 10:43:07 2014, PLICEASE wrote: Show quoted text
> --- a/C/Makefile.PL > +++ b/C/Makefile.PL > @@ -5,6 +5,7 @@ use File::Spec; > > my ($cc, $exe) = @Config{'cc', '_exe'}; > $cc =~ s/\s+-.+$//; #remove possible trailing options > +$exe = '' if $^O eq 'cygwin'; > > my $found = 0; > my $delim = $Config::Config{path_sep};
Sorry - I missed this bug report when I was preparing for 0.54 to be released. I've just released 0.54_01 to CPAN. It has been patched as per the quoted patch. It also includes the patches provided by rurban in his submission to ticket #85336. If 0.54_01 tests ok, it will be released as 0.55 in about a week's time. Cheers, Rob
On Sun Apr 06 03:38:41 2014, SISYPHUS wrote: Show quoted text
> Sorry - I missed this bug report when I was preparing for 0.54 to be > released. > > I've just released 0.54_01 to CPAN. It has been patched as per the > quoted patch. It also includes the patches provided by rurban in his > submission to ticket #85336. > If 0.54_01 tests ok, it will be released as 0.55 in about a week's > time. > > Cheers, > Rob
Thanks! Resolving.