Skip Menu |

This queue is for tickets about the Devel-SizeMe CPAN distribution.

Report information
The Basics
Id: 80282
Status: resolved
Priority: 0/
Queue: Devel-SizeMe

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

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



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.
On Fri Oct 19 12:40:12 2012, BABAR wrote: Show quoted text
> 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.
I get the same problem unless I install DBI first. Does DBD::SQLite fail to install with an error about DBI 1.57 being required? If that’s the case, it’s the same problem that I patched in <https://rt.cpan.org/Ticket/Display.html?id=57789>, which was rejected.
Babar, can you try my branch https://github.com/rgs/devel-sizeme which should compile on all 5.8.* (at the cost of removing some information about "our" variables)
I've merged Rafaël's patch into master on github. Please let me know if it works for you.
I believe this is fixed now (cpantesters reports success on 5.8.9 at least)