Subject: | HASATTRIBUTE_UNUSED makes gcc-3.3 unable to install |
Detector.xs suffers from this compiler issue:
http://rt.perl.org/rt3//Public/Bug/Display.html?id=39634
The attached patch allows it to work for everybody.
This is a sample of the error received:
Show quoted text
> error building lib/Encode/Detect/Detector.o from 'lib/Encode/Detect/
> Detector.c' at /usr/lib/perl5/site_perl/5.8.8/ExtUtils/CBuilder/
> Base.pm line 109.
> make: *** [all] Error 2
> JGMYERS/Encode-Detect-1.00.tar.gz
> /usr/bin/make -- NOT OK
> Running make install
> Make had returned bad status, install seems impossible
> perlmod--Install done
Subject: | rt.39634.diff |
--- Detector.xs.orig 2008-05-01 07:59:58.000000000 -0500
+++ Detector.xs 2008-05-01 08:00:28.000000000 -0500
@@ -38,6 +38,7 @@
#define PERL_NO_GET_CONTEXT /* we want efficiency */
#include "EXTERN.h"
#include "perl.h"
+#undef HASATTRIBUTE_UNUSED
#include "XSUB.h"
}