Tim,
$ perl -V:gccversion
gccversion='egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)';
which is probably why I hit this problem. On other slightly newer machines I
get:
$ perl -V:gccversion
gccversion='2.95.3 20010315 (release)';
Martin
--
Martin J. Evans
Easysoft Ltd, UK
Development
On 28-Nov-2005 Tim Bunce wrote:
> On Mon, Nov 28, 2005 at 09:47:33AM -0000, Martin J. Evans wrote:
>> As with Jonathan and Darren I get a number of:
>>
>> Perl.c:86: warning: unused parameter `cv' during make.
>
> They're harmless. The cv is from the PERLXS macro. To avoid it I'd need
> to add something like cv=cv; to each XS function. I could do that but I'm
> just going to dodge the issue and use the -Wno-unused-parameter option :)
>
>> I also get:
>>
>> cc -c -W -Wall -Wpointer-arith -Wmissing-noreturn -Wbad-function-cast
>> -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wdisabled-optimization -O2
>> -DVERSION=\"1.49\" -DXS_VERSION=\"1.49\" -fpic
>> "-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE" -DDBI_NO_THREADS Perl.c
>> cc1: Invalid option `-Wmissing-noreturn'
>> cc1: Invalid option `-Wdisabled-optimization'
>
>> The -W issue seems to relate to the new section below in the Makefile.PL:
>> [...]
>> $opts{CCFLAGS} .= ' -Wdisabled-optimization' if $gccversion ge "3.0";
>> [...]
>
>> egcs-2.91.66
>
> Umm, the -Wdisabled-optimization flag should only be added for gcc >=3.
> What does perl -V:gccversion say? Perhaps it has some prefix like 'egcs'.
> I'll strip $gccversion down to digits and dots and move -Wmissing-noreturn
> into that condition.
>
> Thanks guys.
>
> I've attached the current diffs from the release candidate. More
> testing would be great, but unless I hear anything bad by the end of
> today I'll probably release tomorrow morning.
>
> Tim.