Subject: | Env::C does not compile under perl-5.10.0 (Fedora 10) |
I am trying to compile the Env::C module on perl-5.10.0 (Fedora 10),
and it fails to compile with the following messages:
gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.08\"
-DXS_VERSION=\"0.08\" -fPIC
"-I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE" C.c
In file included from C.xs:4:
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE/XSUB.h:130:1:
warning: "dAX" redefined
In file included from C.xs:3:
ppport.h:3771:1: warning: this is the location of the previous definition
In file included from C.xs:4:
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE/XSUB.h:132:1:
warning: "dAXMARK" redefined
In file included from C.xs:3:
ppport.h:3781:1: warning: this is the location of the previous definition
In file included from C.xs:4:
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE/XSUB.h:136:1:
warning: "dITEMS" redefined
In file included from C.xs:3:
ppport.h:3775:1: warning: this is the location of the previous definition
In file included from C.xs:4:
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE/XSUB.h:147:1:
warning: "dXSTARG" redefined
In file included from C.xs:3:
ppport.h:3778:1: warning: this is the location of the previous definition
In file included from C.xs:4:
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE/XSUB.h:169:1:
warning: "dUNDERBAR" redefined
In file included from C.xs:3:
ppport.h:3764:1: warning: this is the location of the previous definition
In file included from C.xs:4:
/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE/XSUB.h:170:1:
warning: "UNDERBAR" redefined
In file included from C.xs:3:
ppport.h:3768:1: warning: this is the location of the previous definition
C.xs: In function ‘XS_Env__C_setenv’:
C.xs:76: warning: implicit declaration of function
‘Perl_Guse_safe_putenv_ptr’
C.xs:76: error: invalid type argument of ‘unary *’ (have ‘int’)
C.c: In function ‘XS_Env__C_getallenv’:
C.xs:131: warning: unused variable ‘av’
C.xs:130: warning: unused variable ‘p’
make: *** [C.o] Error 1
Commenting out the line 76 of C.xs makes it compile, but I am not
sure whether this is the correct thing to do.