Subject: | install failed on debian / perl 5.14.2: Not a CODE reference at /usr/lib/perl/5.14/DynaLoader.pm line 207. |
same thing as here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647120
had to modify makefile.pl as follows:
add use Config;
and modify line 23:
CCFLAGS => $Config{ccflags} . ' -Wall',
error messages:
cpan Compress::Snappy
Going to read '/root/.cpan/Metadata'
Database was generated on Thu, 29 Dec 2011 15:13:12 GMT
Running install for module 'Compress::Snappy'
Running make for G/GR/GRAY/Compress-Snappy-0.12.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GR/GRAY/Compress-
Snappy-0.12.tar.gz ok
CPAN.pm: Going to build G/GR/GRAY/Compress-Snappy-0.12.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Compress::Snappy
Writing MYMETA.yml
cp lib/Compress/Snappy.pm blib/lib/Compress/Snappy.pm
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/
perl/5.14/ExtUtils/typemap Snappy.xs > Snappy.xsc && mv Snappy.xsc Snappy.c
cc -c -Wall -O2 -g -DVERSION=\"0.12\" -DXS_VERSION=\"0.12\" -fPIC "-I/
usr/lib/perl/5.14/CORE" -D__LITTLE_ENDIAN Snappy.c
In file included from src/csnappy_internal.h:40:0,
from src/csnappy_compress.c:35,
from Snappy.xs:10:
src/csnappy_internal_userspace.h:135:5: warning: #warning forecefully
undefined __BIG_ENDIAN based on __BYTE_ORDER [-Wcpp]
Snappy.c: In function ‘XS_Compress__Snappy_decompress’:
Snappy.c:126:5: warning: unused variable ‘ix’ [-Wunused-variable]
Running Mkbootstrap for Compress::Snappy ()
chmod 644 Snappy.bs
rm -f blib/arch/auto/Compress/Snappy/Snappy.so
cc -shared -O2 -g -L/usr/local/lib -fstack-protector Snappy.o -o blib/
arch/auto/Compress/Snappy/Snappy.so \
\
chmod 755 blib/arch/auto/Compress/Snappy/Snappy.so
cp Snappy.bs blib/arch/auto/Compress/Snappy/Snappy.bs
chmod 644 blib/arch/auto/Compress/Snappy/Snappy.bs
Manifying blib/man3/Compress::Snappy.3pm
GRAY/Compress-Snappy-0.12.tar.gz
/usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_compile.t .. 1/?
# Failed test 'use Compress::Snappy;'
# at t/00_compile.t line 5.
# Tried to use 'Compress::Snappy'.
# Error: Not a CODE reference at /usr/lib/perl/5.14/DynaLoader.pm
line 207.
# END failed--call queue aborted at /root/.cpan/build/Compress-Snappy-0.12-
SUqJhm/blib/lib/Compress/Snappy.pm line 207.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you failed 1 test of 1.
t/00_compile.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/01_snappy.t ... Not a CODE reference at /usr/lib/perl/5.14/DynaLoader.pm
line 207.
END failed--call queue aborted at /root/.cpan/build/Compress-Snappy-0.12-
SUqJhm/blib/lib/Compress/Snappy.pm line 207.
Compilation failed in require at t/01_snappy.t line 4.
BEGIN failed--compilation aborted at t/01_snappy.t line 4.
t/01_snappy.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/00_compile.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/01_snappy.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=2, Tests=1, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.03 cusr
0.00 csys = 0.05 CPU)
Result: FAIL
Failed 2/2 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
GRAY/Compress-Snappy-0.12.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GRAY/Compress-Snappy-0.12.tar.gz
Running make install
make test had returned bad status, won't install without force