Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793440 - =dev-perl/GD-2.730.0 fails tests: Can't locate object method "newFromGif" via package "GD::Image" at t/transp.t line 13
Summary: =dev-perl/GD-2.730.0 fails tests: Can't locate object method "newFromGif" via...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: perl-gd 791481
  Show dependency tree
 
Reported: 2021-06-01 07:47 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-06-23 20:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-01 07:47:18 UTC
>>> Emerging (1 of 1) dev-perl/GD-2.730.0::gentoo
 * Adjusting permissions for FEATURES=userpriv: '/dev/shm/ccache'
 * GD-2.73.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking GD-2.73.tar.gz to /dev/shm/portage/dev-perl/GD-2.730.0/work
>>> Source unpacked in /dev/shm/portage/dev-perl/GD-2.730.0/work
>>> Preparing source in /dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73 ...
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/dev/shm/portage/dev-perl/GD-2.730.0/image -options 'VERSION_33,GD_UNCLOSEDPOLY,GD_FTCIRCLE,JPEG,FT,PNG'
Configuring for libgd version 2.3.2.
Included Features:          'VERSION_33,GD_UNCLOSEDPOLY,GD_FTCIRCLE,JPEG,FT,PNG'
gdlib-config used:          gdlib-config

Where is libgd installed? [/usr/lib] /usr/lib
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for GD
Writing MYMETA.yml and MYMETA.json
>>> Source configured.
>>> Compiling source in /dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73 ...
 * emake OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
make -j4 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu'
"/usr/bin/perl" lib/GD/Image_pm.PL lib/GD/Image.pm
"/usr/bin/perl" "/usr/lib64/perl5/5.34/ExtUtils/xsubpp"  -typemap '/usr/lib64/perl5/5.34/ExtUtils/typemap' -typemap '/dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73/typemap'  GD.xs > GD.xsc
Running Mkbootstrap for GD ()
Extracting Image.pm (with variable substitutions)
chmod 644 "GD.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- GD.bs blib/arch/auto/GD/GD.bs 644
cp lib/GD/Group.pm blib/lib/GD/Group.pm
cp lib/GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp lib/GD/Image.pm blib/lib/GD/Image.pm
cp lib/GD/Simple.pm blib/lib/GD/Simple.pm
cp lib/GD/Polyline.pm blib/lib/GD/Polyline.pm
cp lib/GD/Polygon.pm blib/lib/GD/Polygon.pm
"/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" bdf_scripts/bdf2gdfont_pl.PL bdf_scripts/bdf2gdfont.pl
Extracting bdf2gdfont.pl (with variable substitutions)
mv GD.xsc GD.c
x86_64-pc-linux-gnu-gcc -c  -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/uuid -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wformat=1 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches   -DVERSION=\"2.73\" -DXS_VERSION=\"2.73\" -fPIC "-I/usr/lib64/perl5/5.34/x86_64-linux/CORE"  -DHAVE_JPEG -DHAVE_FT -DHAVE_PNG -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FTCIRCLE -DLIBGD_VERSION="2.3.2" GD.c
GD.c: In function ‘XS_GD__Image_newFromXpm’:
GD.c:1246:17: warning: unused variable ‘filename’ [-Wunused-variable]
 1246 |         char *  filename = (char *)SvPV_nolen(ST(1))
      |                 ^~~~~~~~
GD.c: In function ‘XS_GD__Image_gifanimbegin’:
GD.xs:810:23: warning: unused variable ‘size’ [-Wunused-variable]
  810 |         int           size;
      |                       ^~~~
GD.xs:809:23: warning: unused variable ‘data’ [-Wunused-variable]
  809 |         void*         data;
      |                       ^~~~
GD.c:1633:17: warning: variable ‘loops’ set but not used [-Wunused-but-set-variable]
 1633 |         int     loops;
      |                 ^~~~~
GD.c:1632:17: warning: variable ‘globalcm’ set but not used [-Wunused-but-set-variable]
 1632 |         int     globalcm;
      |                 ^~~~~~~~
GD.c:1631:25: warning: variable ‘image’ set but not used [-Wunused-but-set-variable]
 1631 |         GD__Image       image;
      |                         ^~~~~
GD.c: In function ‘XS_GD__Image_gifanimadd’:
GD.xs:836:23: warning: unused variable ‘size’ [-Wunused-variable]
  836 |         int           size;
      |                       ^~~~
GD.xs:835:23: warning: unused variable ‘data’ [-Wunused-variable]
  835 |         void*         data;
      |                       ^~~~
GD.c:1694:25: warning: variable ‘previm’ set but not used [-Wunused-but-set-variable]
 1694 |         GD__Image       previm;
      |                         ^~~~~~
GD.c:1693:17: warning: variable ‘disposal’ set but not used [-Wunused-but-set-variable]
 1693 |         int     disposal;
      |                 ^~~~~~~~
GD.c:1692:17: warning: variable ‘delay’ set but not used [-Wunused-but-set-variable]
 1692 |         int     delay;
      |                 ^~~~~
GD.c:1691:17: warning: variable ‘topofs’ set but not used [-Wunused-but-set-variable]
 1691 |         int     topofs;
      |                 ^~~~~~
GD.c:1690:17: warning: variable ‘leftofs’ set but not used [-Wunused-but-set-variable]
 1690 |         int     leftofs;
      |                 ^~~~~~~
GD.c:1689:17: warning: variable ‘localcm’ set but not used [-Wunused-but-set-variable]
 1689 |         int     localcm;
      |                 ^~~~~~~
GD.c:1688:25: warning: variable ‘image’ set but not used [-Wunused-but-set-variable]
 1688 |         GD__Image       image;
      |                         ^~~~~
GD.c: In function ‘XS_GD__Image_gifanimend’:
GD.xs:857:23: warning: unused variable ‘size’ [-Wunused-variable]
  857 |         int           size;
      |                       ^~~~
GD.xs:856:23: warning: unused variable ‘data’ [-Wunused-variable]
  856 |         void*         data;
      |                       ^~~~
GD.c: In function ‘XS_GD__Image_useFontConfig’:
GD.c:4760:17: warning: unused variable ‘flag’ [-Wunused-variable]
 4760 |         int     flag = (int)SvIV(ST(1))
      |                 ^~~~
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc  -shared -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu  GD.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o blib/arch/auto/GD/GD.so  \
   -L/usr/lib -L/usr/lib64 -lgd   \

/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
chmod 755 blib/arch/auto/GD/GD.so
cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/bdf2gdfont.pl
Manifying 1 pod document
>>> Source compiled.
>>> Test phase: dev-perl/GD-2.730.0
 * Removing un-needed t/z_kwalitee.t
 * Removing un-needed t/z_manifest.t
 * Removing un-needed t/z_pod-spell-mistakes.t
 * Removing un-needed t/z_pod.t
 * Fixing Manifest
 * Test::Harness Jobs=4
make -j4 test TEST_VERBOSE=0
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- GD.bs blib/arch/auto/GD/GD.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Polyline.t .. ok
t/fork.t ...... ok
===(      22;0   1/14  0/1  0/? )=======================================# Testing gd 2.3.2 using gd2 support.
t/HSV.t ....... ok
===(      30;0   7/14   1/12 )==========================================Can't locate object method "newFromGif" via package "GD::Image" at t/transp.t line 13.
# Looks like your test exited with 255 just after 1.
t/transp.t .... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/12 subtests
t/GD.t ........ 8/14 # ignore corrupt png error messages...
GD Warning: gd-png: fatal libpng error: IHDR: CRC error
GD Warning: gd-png error: setjmp returns error condition 1
t/GD.t ........ ok

Test Summary Report
-------------------
t/transp.t  (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 12 tests but ran 1.
Files=5, Tests=37,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.19 cusr  0.05 csys =  0.25 CPU)
Result: FAIL
Failed 1/5 test programs. 0/37 subtests failed.
make: *** [Makefile:1127: test_dynamic] Error 255
 * ERROR: dev-perl/GD-2.730.0::gentoo failed (test phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-perl/GD-2.730.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-perl/GD-2.730.0::gentoo'`.
 * The complete build log is located at '/bound/build-logs/dev-perl:GD-2.730.0:20210601-074538.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-perl/GD-2.730.0/temp/environment'.
 * Working directory: '/dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73'
 * S: '/dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73'

>>> Failed to emerge dev-perl/GD-2.730.0, Log file:

>>>  '/bound/build-logs/dev-perl:GD-2.730.0:20210601-074538.log'

 * Messages for package dev-perl/GD-2.730.0:
 * Log file: /bound/build-logs/dev-perl:GD-2.730.0:20210601-074538.log

 * ERROR: dev-perl/GD-2.730.0::gentoo failed (test phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-perl/GD-2.730.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-perl/GD-2.730.0::gentoo'`.
 * The complete build log is located at '/bound/build-logs/dev-perl:GD-2.730.0:20210601-074538.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-perl/GD-2.730.0/temp/environment'.
 * Working directory: '/dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73'
 * S: '/dev/shm/portage/dev-perl/GD-2.730.0/work/GD-2.73'


Portage 3.0.19 (python 3.8.10-final-0, default/linux/amd64/17.1, gcc-11.1.0, glibc-2.33, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.2.5
KiB Mem:   131923880 total,  97011624 free
KiB Swap:          0 total,         0 free
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p1) 2.36.1
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.6.13::gentoo, 3.7.10_p1::gentoo, 3.8.10_p1::gentoo, 3.9.5_p1::gentoo, 3.10.0_beta1::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/ccache:          4.3::gentoo
dev-util/cmake:           3.20.2::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo, 2.36.1-r1::gentoo
sys-devel/gcc:            10.3.0::gentoo, 11.1.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /bound/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

co
    location: /co
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/bound/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict stricter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/dev/shm"
USE="X acl amd64 berkdb bzip2 cli crypt dot dri elogind fontconfig fortran gdbm iconv ipv6 jpeg libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pcre16 png readline seccomp split-usr ssl tcpd truetype unicode xattr xvfb zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-01 07:47:49 UTC
# LANG=C FEATURES=test emerge -pv1 dev-perl/GD
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-perl/GD-2.730.0::gentoo  USE="jpeg png test truetype -animgif -examples -fcgi -gif -xpm" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2021-06-23 20:49:02 UTC
This is fixed in -r1