Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the devel-nytprof CPAN distribution.

Report information
The Basics
Id: 68495
Status: resolved
Priority: 0/
Queue: devel-nytprof

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

Bug Information
Severity: Critical
Broken in: 4.06
Fixed in: (no value)



Subject: _deflate symbol not found
Download (untitled) / with headers
text/plain 4.4k
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
Download (untitled) / with headers
text/plain 5.3k
A short follow up. I was able to repeat this issue on a recently acquired iMac running 10.6 with 5.12.3 compiled with no additional options. So it is unlikely that any third party libs are causing this issue. It looks like I have the needed zlib header files. I built on my additional machine, and while I got the same error during tests, I installed and ran this command: phred@harpua ~/.cpanm/latest-build/Devel-NYTProf-4.06 $ perl -MDevel::NYTProf -e 0 dyld: lazy symbol binding failed: Symbol not found: _zlibVersion Referenced from: /Users/phred/dev/perl-5.12.3/lib/site_perl/5.12.3/darwin- 2level/Devel/auto/Devel/NYTProf/NYTProf.bundle Expected in: dynamic lookup dyld: Symbol not found: _zlibVersion On Thu May 26 18:33:36 2011, PHRED wrote: Show quoted text
> 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
Download (untitled) / with headers
text/plain 4.3k
One more piece of data and I'll stop spamming the maintainer list :) phred@harpua ~/.cpanm/latest-build/Devel-NYTProf-4.06 $ Looking for header files and functions... Found deflateInit2 in zlib.h Found mach_absolute_time in mach_time.h Your perl was compiled with gcc (version 4.2.1 (Apple Inc. build 5666) (dot 3)), okay. Writing Makefile for Devel::NYTProf phred@harpua ~/.cpanm/latest-build/Devel-NYTProf-4.06 $ make Skip blib/lib/Devel/NYTProf/js/bg.png (unchanged) Skip blib/lib/Devel/NYTProf/js/jquery-tablesorter-min.js (unchanged) Skip blib/lib/Devel/NYTProf/js/jquery-min.js (unchanged) Skip blib/lib/Devel/benchmark.pl (unchanged) Skip blib/lib/Devel/NYTProf/Run.pm (unchanged) Skip blib/lib/Devel/NYTProf/js/asc.png (unchanged) Skip blib/lib/Devel/NYTProf/Data.pm (unchanged) Skip blib/lib/Devel/NYTProf/SubInfo.pm (unchanged) Skip blib/lib/Devel/NYTProf/js/desc.png (unchanged) Skip blib/lib/Devel/NYTProf/Reader.pm (unchanged) Skip blib/lib/Devel/NYTProf/FileInfo.pm (unchanged) Skip blib/lib/Devel/NYTProf/Test.pm (unchanged) Skip blib/lib/Devel/NYTProf.pm (unchanged) Skip blib/lib/Devel/NYTProf/ReadStream.pm (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/jit.js (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/gradient.png (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/gradient-cushion1.png (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/gradient20.png (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/gradient40.png (unchanged) Skip blib/lib/Devel/NYTProf/Core.pm (unchanged) Skip blib/lib/Devel/NYTProf/Apache.pm (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/gradient30.png (unchanged) Skip blib/lib/Devel/NYTProf/FileHandle.pm (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/gradient50.png (unchanged) Skip blib/lib/Devel/NYTProf/Util.pm (unchanged) Skip blib/lib/Devel/NYTProf/Constants.pm (unchanged) Skip blib/lib/Devel/NYTProf/js/style-tablesorter.css (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/jit-yc.js (unchanged) Skip blib/lib/Devel/NYTProf/js/jit/Treemap.css (unchanged) cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"4.06\" -DXS_VERSION=\"4.06\" "-I/Users/phred/dev/perl-5.12.3/lib/5.12.3/darwin-2level/CORE" -DHAS_ZLIB -DHAS_MACH_TIME -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter FileHandle.c cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"4.06\" -DXS_VERSION=\"4.06\" "-I/Users/phred/dev/perl-5.12.3/lib/5.12.3/darwin-2level/CORE" -DHAS_ZLIB -DHAS_MACH_TIME -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter NYTProf.c NYTProf.xs:815: warning: ‘lookup_file_entry’ defined but not used Running Mkbootstrap for Devel::NYTProf () chmod 644 NYTProf.bs rm -f blib/arch/auto/Devel/NYTProf/NYTProf.bundle LD_RUN_PATH="/usr/local/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector FileHandle.o NYTProf.o -o blib/arch/auto/Devel/NYTProf/NYTProf.bundle \ -lz \ ld: warning: in /usr/local/lib/libz.dylib, file was built for i386 which is not the architecture being linked (x86_64) chmod 755 blib/arch/auto/Devel/NYTProf/NYTProf.bundle cp NYTProf.bs blib/arch/auto/Devel/NYTProf/NYTProf.bs chmod 644 blib/arch/auto/Devel/NYTProf/NYTProf.bs cp blib/arch/auto/Devel/NYTProf/NYTProf.bundle blib/lib/Devel/auto/Devel/NYTProf/NYTProf.bundle cp bin/nytprofcg blib/script/nytprofcg /Users/phred/dev/perl/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/nytprofcg cp bin/nytprofmerge blib/script/nytprofmerge /Users/phred/dev/perl/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/nytprofmerge cp bin/nytprofcsv blib/script/nytprofcsv /Users/phred/dev/perl/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/nytprofcsv cp bin/nytprofhtml blib/script/nytprofhtml /Users/phred/dev/perl/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/nytprofhtml Manifying blib/man1/nytprofcg.1 Manifying blib/man1/nytprofcsv.1 Manifying blib/man1/nytprofhtml.1 Manifying blib/man3/Devel::NYTProf::Apache.3 Manifying blib/man3/Devel::NYTProf::Core.3 Manifying blib/man3/Devel::NYTProf::Run.3 Manifying blib/man3/Devel::NYTProf::Data.3 Manifying blib/man3/Devel::NYTProf::FileInfo.3 Manifying blib/man3/Devel::NYTProf::ReadStream.3
Download (untitled) / with headers
text/plain 271b
Looks like I had a rogue libz built for i386 in my /usr/local/lib. It looks like Time Machine may have carried that over from my previous environment. ld: warning: in /usr/local/lib/libz.dylib, file was built for i386 which is not the architecture being linked (x86_64)
Subject: Re: [rt.cpan.org #68495] _deflate symbol not found
Date: Fri, 27 May 2011 20:10:02 +0100
To: via RT <bug-devel-nytprof [...] rt.cpan.org>
From: Tim Bunce <Tim.Bunce [...] pobox.com>
Download (untitled) / with headers
text/plain 387b
On Fri, May 27, 2011 at 01:07:35PM -0400, via RT wrote: Show quoted text
> Looks like I had a rogue libz built for i386 in my /usr/local/lib. It > looks like Time Machine may have carried that over from my previous > environment. > > ld: warning: in /usr/local/lib/libz.dylib, file was built for i386 which > is not the architecture being linked (x86_64)
Yes. Try deleting that and rebuilding. Tim.
Removing that file resolved the issue.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.