Skip Menu |

This queue is for tickets about the Image-Scale CPAN distribution.

Report information
The Basics
Id: 79806
Status: resolved
Priority: 0/
Queue: Image-Scale

People
Owner: Nobody in particular
Requestors: moritz [...] bunkus.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.08
Fixed in: (no value)



Subject: Installation (tests) fail on Arch Linux 64
I'm trying to install Image::Scale on an Arch Linux 64bit box. Compilation succeeds, but the tests fail when trying to load the Scale.so library with png_memcpy being an unresolved symbol. I'll attach the full installation log. Perl version is: This is perl 5, version 16, subversion 1 (v5.16.1) built for x86_64-linux- thread-multi
Subject: image-scale-build-log.txt
$ cpan Image::Scale Reading '/root/.cpan/Metadata' Database was generated on Sun, 23 Sep 2012 08:11:36 GMT Running install for module 'Image::Scale' Running make for A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz Checksum for /root/.cpan/sources/authors/id/A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz ok CPAN.pm: Building A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz Image::Scale will be built with: JPEG support: yes (/usr/include, version unknown) PNG support: yes (/usr/include, version 1.5.12) GIF support: yes (/usr/include, version 4.1, libgif) Checking if your kit is complete... Looks good Writing Makefile for Image::Scale Writing MYMETA.yml and MYMETA.json cp lib/Image/Scale.pm blib/lib/Image/Scale.pm /usr/bin/perl /usr/share/perl5/core_perl/ExtUtils/xsubpp -typemap /usr/share/perl5/core_perl/ExtUtils/typemap -typemap typemap Scale.xs > Scale.xsc && mv Scale.xsc Scale.c Please specify prototyping behavior for Scale.xs (see perlxs manual) cc -c -I. -I.. -Isrc -Iinclude -I/usr/include -I/usr/include -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" -O2 -Wall -Wno-unused-value -Wno-format-security -Winline -ffast-math -DHAVE_JPEG -DJPEG_VERSION=unknown -DHAVE_PNG -DPNG_VERSION=1.5.12 -DHAVE_GIF -DGIF_VERSION=4.1 Scale.c In file included from src/image.c:20:0, from Scale.xs:18: src/bmp.c: In function ‘image_bmp_read_header’: src/bmp.c:25:7: warning: variable ‘offset’ set but not used [-Wunused-but-set-variable] In file included from src/image.c:25:0, from Scale.xs:18: src/png.c: In function ‘image_png_read_buf’: src/png.c:43:2: warning: implicit declaration of function ‘png_memcpy’ [-Wimplicit-function-declaration] In file included from src/image.c:28:0, from Scale.xs:18: src/gif.c: In function ‘image_gif_load’: src/gif.c:82:7: warning: variable ‘BackGround’ set but not used [-Wunused-but-set-variable] Scale.c: In function ‘XS_Image__Scale___cleanup’: Scale.c:633:7: warning: variable ‘self’ set but not used [-Wunused-but-set-variable] Running Mkbootstrap for Image::Scale () chmod 644 Scale.bs rm -f blib/arch/auto/Image/Scale/Scale.so LD_RUN_PATH="/lib/../lib" cc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -fstack-protector Scale.o -o blib/arch/auto/Image/Scale/Scale.so \ -ljpeg -lpng -lz -lgif \ chmod 755 blib/arch/auto/Image/Scale/Scale.so cp Scale.bs blib/arch/auto/Image/Scale/Scale.bs chmod 644 blib/arch/auto/Image/Scale/Scale.bs Manifying blib/man3/Image::Scale.3pm AGRUNDMA/Image-Scale-0.08.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/01use.t .......... t/01use.t .......... 1/1 # Failed test 'use Image::Scale;' # at t/01use.t line 3. # Tried to use 'Image::Scale'. # Error: Can't load '/root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/core_perl/DynaLoader.pm line 190. # at (eval 4) line 2. # 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/01use.t .......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/02pod.t .......... t/02pod.t .......... skipped: Test::Pod 1.14 required t/03podcoverage.t .. t/03podcoverage.t .. skipped: Test::Pod::Coverage 1.04 required t/04critic.t ....... t/04critic.t ....... skipped: Critic test only for developers. t/bmp.t ............ Can't load '/root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/core_perl/DynaLoader.pm line 190. at t/bmp.t line 9. Compilation failed in require at t/bmp.t line 9. BEGIN failed--compilation aborted at t/bmp.t line 9. # Looks like your test exited with 2 before it could output anything. t/bmp.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 30/30 subtests t/gif.t ............ Can't load '/root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/core_perl/DynaLoader.pm line 190. at t/gif.t line 9. Compilation failed in require at t/gif.t line 9. BEGIN failed--compilation aborted at t/gif.t line 9. t/gif.t ............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/jpeg.t ........... Can't load '/root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/core_perl/DynaLoader.pm line 190. at t/jpeg.t line 9. Compilation failed in require at t/jpeg.t line 9. BEGIN failed--compilation aborted at t/jpeg.t line 9. t/jpeg.t ........... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/png.t ............ Can't load '/root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /root/.cpan/build/Image-Scale-0.08-as35YO/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/core_perl/DynaLoader.pm line 190. at t/png.t line 9. Compilation failed in require at t/png.t line 9. BEGIN failed--compilation aborted at t/png.t line 9. t/png.t ............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/01use.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/bmp.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 30 tests but ran 0. t/gif.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/jpeg.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/png.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=8, Tests=1, 1 wallclock secs ( 0.06 usr 0.04 sys + 0.29 cusr 0.05 csys = 0.44 CPU) Result: FAIL Failed 5/8 test programs. 1/1 subtests failed. make: *** [test_dynamic] Error 2 AGRUNDMA/Image-Scale-0.08.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports AGRUNDMA/Image-Scale-0.08.tar.gz Running make install make test had returned bad status, won't install without force
From: moritz [...] bunkus.org
Oh, libpng version is 1.5.12. Judging from libpng's source code png_memcpy is defined in pngpriv.h which, in turn, is not included from any of libpng's public header files.
Fixed in 0.10.