fails to build by hand and with cpanm on archlinux with gcc4.7
[root@garchlinux1 Perlbal-XS-HTTPHeaders-0.20]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Perlbal::XS::HTTPHeaders
Writing MYMETA.yml and MYMETA.json
[root@gavarchlinux1 Perlbal-XS-HTTPHeaders-0.20]# less README
[root@gavarchlinux1 Perlbal-XS-HTTPHeaders-0.20]# make
cp lib/Perlbal/XS/HTTPHeaders.pm blib/lib/Perlbal/XS/HTTPHeaders.pm
AutoSplitting blib/lib/Perlbal/XS/HTTPHeaders.pm (blib/lib/auto/Perlbal/XS/HTTPHeaders)
g++ -c -I. -g -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" headers.cpp
/usr/bin/perl /usr/share/perl5/site_perl/ExtUtils/xsubpp -C++ -typemap /usr/share/perl5/core_perl/ExtUtils/typemap -typemap typemap HTTPHeaders.xs > HTTPHeaders.xsc && mv HTTPHeaders.xsc HTTPHeaders.c
g++ -c -I. -g -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" HTTPHeaders.c
Running Mkbootstrap for Perlbal::XS::HTTPHeaders ()
chmod 644 HTTPHeaders.bs
rm -f blib/arch/auto/Perlbal/XS/HTTPHeaders/HTTPHeaders.so
LD_RUN_PATH="/usr/lib" cc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/local/lib -fstack-protector headers.o HTTPHeaders.o -o blib/arch/auto/Perlbal/XS/HTTPHeaders/HTTPHeaders.so \
-lstdc++ \
chmod 755 blib/arch/auto/Perlbal/XS/HTTPHeaders/HTTPHeaders.so
cp HTTPHeaders.bs blib/arch/auto/Perlbal/XS/HTTPHeaders/HTTPHeaders.bs
chmod 644 blib/arch/auto/Perlbal/XS/HTTPHeaders/HTTPHeaders.bs
Manifying blib/man3/Perlbal::XS::HTTPHeaders.3pm
[root@garchlinux1 Perlbal-XS-HTTPHeaders-0.20]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/HTTPHeaders.t .. 1/40
# Failed test 'use Perlbal::XS::HTTPHeaders;'
# at t/HTTPHeaders.t line 10.
# Tried to use 'Perlbal::XS::HTTPHeaders'.
# Error: Not a CODE reference at /usr/lib/perl5/core_perl/DynaLoader.pm line 213.
# END failed--call queue aborted at /home/apps/Perlbal-XS-HTTPHeaders-0.20/blib/lib/Perlbal/XS/HTTPHeaders.pm line 213.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Bizarre copy of UNKNOWN in list assignment at /usr/share/perl5/core_perl/Test/Builder.pm line 942.
Attempt to free unreferenced scalar: SV 0x9db9500, Perl interpreter: 0x9db9008 at /usr/share/perl5/core_perl/Test/Builder.pm line 942.
# Looks like you planned 40 tests but ran 6.
# Looks like you failed 1 test of 6 run.
# Looks like your test exited with 255 just after 6.
t/HTTPHeaders.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 35/40 subtests
Test Summary Report
-------------------
t/HTTPHeaders.t (Wstat: 65280 Tests: 6 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 40 tests but ran 6.
Files=1, Tests=6, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.10 cusr 0.01 csys = 0.13 CPU)
Result: FAIL
Failed 1/1 test programs. 1/6 subte
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /build/src/gcc-4.6-20120120/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=
https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libssp --enable-checking=release
Thread model: posix
gcc version 4.6.2 20120120 (prerelease) (GCC)