I'm trying to install B::TerseSize (used with Apache::Status for memory debugging). The build fails on the B::Size dependency when building with perl 5.10 (.0 and .1)
Does anyone know how I can build this on my machine? Is this an included headers failure, an XS error or something else?
My error is the same as in the following places:
CPAN : This is marked as a bug against the package.
http://rt.cpan.org/Public/Dist/Display.html?Name=B-Size
CPAN-Testers : This shows the same bug.
http://www.cpantesters.org/distro/B/B-Size.html
> uname -a Linux mybox 2.6.31-14-generic #48-Ubuntu SMP \ Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
> cpan B::Size ... cp Size.pm blib/lib/B/Size.pm cp lib/B/TerseSize.pm blib/lib/B/TerseSize.pm /usr/local/bin/perl /usr/local/lib/perl5/5.10.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.10.1/ExtUtils/typemap -typemap typemap Size.xs > Size.xsc && mv Size.xsc Size.c cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/usr/local/lib/perl5/5.10.1/i686-linux/CORE" Size.c In file included from Size.xs:16: b_sizeof.c: In function ‘boot_B_Sizeof’: b_sizeof.c:27: error: ‘XRV’ undeclared (first use in this function) b_sizeof.c:27: error: (Each undeclared identifier is reported only once b_sizeof.c:27: error: for each function it appears in.) b_sizeof.c:35: error: invalid application of ‘sizeof’ to incomplete type ‘XPVBM’ Size.xs: In function ‘REGEXP_size’: Size.xs:51: error: ‘REGEXP’ has no member named ‘regstclass’ Size.xs:51: error: ‘REGEXP’ has no member named ‘regstclass’ Size.xs:53: error: ‘REGEXP’ has no member named ‘startp’ Size.xs:53: error: ‘REGEXP’ has no member named ‘startp’ Size.xs:54: error: ‘REGEXP’ has no member named ‘endp’ Size.xs:54: error: ‘REGEXP’ has no member named ‘endp’ Size.xs:56: error: ‘REGEXP’ has no member named ‘data’ Size.xs:57: error: ‘REGEXP’ has no member named ‘data’ Size.xs:58: error: ‘REGEXP’ has no member named ‘data’ Size.xs:62: error: ‘REGEXP’ has no member named ‘data’ Size.xs:65: error: ‘REGEXP’ has no member named ‘data’ Size.c: In function ‘XS_B__OP_op_name’: Size.c:315: warning: assignment discards qualifiers from pointer target type Size.c: In function ‘XS_B__OP_op_desc’: Size.c:337: warning: assignment discards qualifiers from pointer target type make: *** [Size.o] Error 1