Skip Menu |

This queue is for tickets about the Encode-Detect CPAN distribution.

Report information
The Basics
Id: 58124
Status: open
Priority: 0/
Queue: Encode-Detect

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

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



Subject: ./Build fails with: Detector.c:121: parse error before `__attribute__'

Message body is not shown because it is too large.

The fix is the simple patch found here http://wiki.cpaneldirect.net/wiki/index.php/Unable_to_compile_Encode::Detect::Detector namely: --- Detector.xs 2006-10-27 16:48:59.000000000 -0400 +++ Detector.xs.old 2008-04-29 15:59:43.000000000 -0400 @@ -38,6 +38,7 @@ #define PERL_NO_GET_CONTEXT /* we want efficiency */ #include "EXTERN.h" #include "perl.h" +#undef HASATTRIBUTE_UNUSED #include "XSUB.h" }
I don't think turning off attribute(unused) for all compilers is the correct fix. Why is HASATTRIBUTE_UNUSED defined when your compiler doesn't support it? Did you compile the module with a different compiler than you used to compile Perl?
On Fri Jun 04 12:30:54 2010, JGMYERS wrote: Show quoted text
> I don't think turning off attribute(unused) for all compilers is the > correct fix.
Probably true. Show quoted text
> Why is HASATTRIBUTE_UNUSED defined when your compiler > doesn't support it? Did you compile the module with a different compiler > than you used to compile Perl?
I am not sure offhand. This was a customer's server and the fix in the URL worked on this box. I was just passing along details. I'll see if I can find out any other details that would help. Thanks!