Subject: | _deflate symbol not found |
It looks like I either don't have the needed compression libraries or my perl build didn't pick
them up during configuration. That's just a guess though, I don't completely grok this error
though I have seen it previously with other Perl modules. Any advice appreciated.
phred@pooky ~/.cpanm/latest-build/Devel-NYTProf-4.06 $ make test
cp blib/arch/auto/Devel/NYTProf/NYTProf.bundle
blib/lib/Devel/auto/Devel/NYTProf/NYTProf.bundle
PERL_DL_NONLAZY=1 /Users/phred/dev/perl-5.12.3/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ............ 1/2
# Failed test 'use Devel::NYTProf::Core;'
# at t/00-load.t line 5.
# Tried to use 'Devel::NYTProf::Core'.
# Error: Can't load '/Users/phred/.cpanm/work/1306448749.33129/Devel-NYTProf-
4.06/blib/lib/Devel/auto/Devel/NYTProf/NYTProf.bundle' for module Devel::NYTProf:
dlopen(/Users/phred/.cpanm/work/1306448749.33129/Devel-NYTProf-
4.06/blib/lib/Devel/auto/Devel/NYTProf/NYTProf.bundle, 2): Symbol not found: _deflate
# Referenced from: /Users/phred/.cpanm/work/1306448749.33129/Devel-NYTProf-
4.06/blib/lib/Devel/auto/Devel/NYTProf/NYTProf.bundle
# Expected in: dynamic lookup
# at /Users/phred/.cpanm/work/1306448749.33129/Devel-NYTProf-
4.06/blib/lib/Devel/NYTProf/Core.pm line 19
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Testing Devel::NYTProf 4.06 started at Thu May 26 15:27:44 2011
# Failed test 'use Devel::NYTProf::Constants;'
# at t/00-load.t line 11.
# Tried to use 'Devel::NYTProf::Constants'.
# Error: Attempt to reload Devel/NYTProf/Core.pm aborted.
# Compilation failed in require at /Users/phred/.cpanm/work/1306448749.33129/Devel-
NYTProf-4.06/blib/lib/Devel/NYTProf/Constants.pm line 5.
# BEGIN failed--compilation aborted at
/Users/phred/.cpanm/work/1306448749.33129/Devel-NYTProf-
4.06/blib/lib/Devel/NYTProf/Constants.pm line 5.
# Compilation failed in require at (eval 5) line 2.
# BEGIN failed--compilation aborted at (eval 5) line 2.
Undefined subroutine &main::NYTP_DEFAULT_COMPRESSION called at t/00-load.t line 15.
phred@pooky ~/.cpanm/latest-build/Devel-NYTProf-4.06 $ perl -V
Summary of my perl5 (revision 5 version 12 subversion 3) configuration:
Platform:
osname=darwin, osvers=10.7.0, archname=darwin-2level
uname='darwin pooky.redhotpenguin.com 10.7.0 darwin kernel version 10.7.0: sat jan 29
15:17:16 pst 2011; root:xnu-1504.9.37~1release_i386 i386 '
config_args='-Dprefix=/Users/phred/dev/perl-5.12.3'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -
pipe -fstack-protector -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 (Apple Inc. build 5666) (dot 3)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -
L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-
protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under darwin
Compiled at May 26 2011 13:17:46
@INC:
/Users/phred/dev/perl-5.12.3/lib/site_perl/5.12.3/darwin-2level
/Users/phred/dev/perl-5.12.3/lib/site_perl/5.12.3
/Users/phred/dev/perl-5.12.3/lib/5.12.3/darwin-2level
/Users/phred/dev/perl-5.12.3/lib/5.12.3