Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 106265
Status: resolved
Priority: 0/
Queue: GD

People
Owner: RURBAN [...] cpan.org
Requestors: CLEACH [...] cpan.org
Cc:
AdminCc:

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



Subject: Option -print-search-dirs not available for all compilers
Can you update Makefile.PL & Build.PL as follows: my $data = `$cc -print-search-dirs`; becomes my $data = `$cc -print-search-dirs 2>/dev/null`; This way when the option is invalid for a particular compiler used to build perl it will throw away the error messages (pages on pages of errors). Looking at check_for_stray_headers() it doesn't seem to care if $data is empty or undef. I've been troubleshooting why this module won't build on AIX for the last couple of days and the above issue wasted a lot of time tracking down that the error thrown here was meaningless. That my problems probably reside elsewhere. Curtis
On Wed Aug 05 16:51:53 2015, CLEACH wrote: Show quoted text
> Can you update Makefile.PL & Build.PL as follows: > > my $data = `$cc -print-search-dirs`; > > becomes > > my $data = `$cc -print-search-dirs 2>/dev/null`; > > This way when the option is invalid for a particular compiler used to > build perl it will throw away the error messages (pages on pages of > errors). > > Looking at check_for_stray_headers() it doesn't seem to care if $data > is empty or undef. > > I've been troubleshooting why this module won't build on AIX for the > last couple of days and the above issue wasted a lot of time tracking > down that the error thrown here was meaningless. That my problems > probably reside elsewhere.
Thanks. We should check for $Config{gccversion} also, but for now 2.57 will be out with your patch. -- Reini Urban