Subject: | Doesn't compile on 5.8.8 |
Trying to debug a memory leak issue on POE on 5.8.8 on SLC5 (RHEL5 more
or less), I stumbled upon the following error while trying to install
Devel::SizeMe:
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap SizeMe.xs >
SizeMe.xsc && mv SizeMe.xsc SizeMe.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -DVERSION=\"0.06\"
-DXS_VERSION=\"0.06\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"
-DALIGN_BITS=3 SizeMe.c
SizeMe.xs:231: error: ‘SVt_LAST’ undeclared here (not in a function)
SizeMe.xs: In function ‘np_print_node_name’:
SizeMe.xs:280: warning: passing argument 2 of ‘Perl_custom_op_name’
discards qualifiers from pointer target type
SizeMe.xs: In function ‘magic_size’:
SizeMe.xs:685: warning: ISO C90 forbids mixed declarations and code
SizeMe.xs: In function ‘sv_size’:
SizeMe.xs:1126: warning: ISO C90 forbids mixed declarations and code
SizeMe.xs:1328: warning: passing argument 5 of ‘st->add_attr_cb’ makes
pointer from integer without a cast
SizeMe.xs:1390: warning: cast to pointer from integer of different size
make: *** [SizeMe.o] Error 1
Unfortunately, I do not have the perl internal skills to debug that, but
I'll be happy to help anyone wanting to have a look.