Subject: | Compilation troubles on Centos x86_64 |
XS compilation failed on Centos x86_64:
In file included from HTTPHeaders.xs:14:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:163:1:
warning: this is the location of the previous definition
HTTPHeaders.c: In function ‘void
boot_HTTP__HeaderParser__XS(PerlInterpreter*, CV*)’:
HTTPHeaders.c:1009: error: invalid conversion from ‘const char*’ to ‘char*’
HTTPHeaders.c:1009: error: initializing argument 4 of ‘CV*
Perl_newXS(PerlInterpreter*, char*, void (*)(PerlInterpreter*, CV*), char*)’
HTTPHeaders.c:1010: error: invalid conversion from ‘const char*’ to ‘char*’
HTTPHeaders.c:1010: error: initializing argument 4 of ‘CV*
Perl_newXS(PerlInterpreter*, char*, void (*)(PerlInterpreter*, CV*), char*)’
HTTPHeaders.c:1011: error: invalid conversion from ‘const char*’ to ‘char*’
HTTPHeaders.c:1011: error: initializing argument 4 of ‘CV*
Perl_newXS(PerlInterpreter*, char*, void (*)(PerlInterpreter*, CV*), char*)’
HTTPHeaders.c:1012: error: invalid conversion from ‘const char*’ to ‘char*’
HTTPHeaders.c:1012: error: initializing argument 4 of ‘CV*
Perl_newXS(PerlInterpreter*, char*, void (*)(PerlInterpreter*, CV*), char*)’
Fixed simple by replace on 1009 line of HTTPHeaders.c:
-const char* file = __FILE__;
+char* file = __FILE__;