Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331217 - dev-perl/GD-2.44 compile fails on amd64
Summary: dev-perl/GD-2.44 compile fails on amd64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 15:19 UTC by Arne Babenhauserheide
Modified: 2010-08-04 16:09 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 Arne Babenhauserheide 2010-08-04 15:19:26 UTC
Looks like this might be a cause: 

** WARNING: found gd.h header file in /usr/X11R6/includegd.h, but it is expected at /usr/include/gd.h. This may cause compile errors! **
** Possible problems found **

Even though: 

$ LANG=C ls /usr/include/gd.h /usr/X11R6/includegd.h
ls: cannot access /usr/X11R6/includegd.h: No such file or directory
/usr/include/gd.h


build log: 


>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
tac: write error
>>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
>>> Unpacking GD-2.44.tar.gz to /var/tmp/portage/dev-perl/GD-2.44/work
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/GD-2.44/image/ -options "JPEG,FREETYPE,PNG,XPM,GIF"
Configuring for libgd version 2.0.35.
Checking for stray libgd header files...

** WARNING: found gd.h header file in /usr/X11R6/includegd.h, but it is expected at /usr/include/gd.h. This may cause compile errors! **
** Possible problems found **

Included Features:          "JPEG,FREETYPE,PNG,XPM,GIF"
GD library used from:       /usr
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl5.8.8 GD/Image.pm.PLS GD/Image.pm
/usr/bin/perl5.8.8 /usr/lib64/perl5/vendor_perl/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib64/perl5/5.8.8/ExtUtils/typemap -typemap typemap  GD.xs > GD.xsc && mv GD.xsc GD.c
Extracting Image.pm (with variable substitutions)
Running Mkbootstrap for GD ()
chmod 644 GD.bs
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
cp GD/Group.pm blib/lib/GD/Group.pm
cp GD.bs blib/arch/auto/GD/GD.bs
chmod 644 blib/arch/auto/GD/GD.bs
/usr/bin/perl5.8.8 "-Iblib/arch" "-Iblib/lib" bdf_scripts/bdf2gdfont.PLS bdf_scripts/bdf2gdfont.pl
Extracting bdf2gdfont.pl (with variable substitutions)
cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl
/usr/bin/perl5.8.8 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/bdf2gdfont.pl
x86_64-pc-linux-gnu-gcc -c  -I/usr/include -Wformat=0 -march=k8 -O2 -pipe   -DVERSION=\"2.44\" -DXS_VERSION=\"2.44\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE"  -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG GD.c
GD.xs: In Funktion »XS_GD__Image_STORABLE_thaw«:
GD.xs:923: Warnung: Typkonvertierung von Zeiger auf Ganzzahl anderer Breite
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe  -shared -L/usr/local/lib64 GD.o  -o blib/arch/auto/GD/GD.so  \
           -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd          \
          
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng12
collect2: ld gab 1 als Ende-Status zurück
make: *** [blib/arch/auto/GD/GD.so] Fehler 1
!!! ERROR: dev-perl/GD-2.44 failed.
!!! Call stack:
!!!                ebuild-daemon.sh, line  192:  Called execute_phases 'compile'
!!!                       ebuild.sh, line  402:  Called dyn_compile
!!!   ebuild-default-functions.bash, line  265:  Called src_compile
!!!                   .scrubbed-env, line 2788:  Called perl-module_src_compile
!!!                   .scrubbed-env, line 2344:  Called die
!!! The die message:
!!!  compilation failed
!!!
!!! If you need support, post the topmost build error, and the call stack if relevant.

phases failed
!!! Failed to build config wrapped(use): ebuild src: dev-perl/GD-2.44: Failed build operation: compile: Failed building (False/0 return from handler)


Reproducible: Always




$ emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11.2-r0, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1
Timestamp of tree: Wed, 04 Aug 2010 00:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r2, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE X11 OPERA-10.10 XMAME free-noncomm madfuload xv fontconfig glut libdrm libICE libSM libX11 libXau libXaw libXcomposite libXcursor libXdamage libXdmcp libXext libXfixes libXft libXi libXinerama libXmu libXp libXpm libXrandr libXrender libXScrnSaver libXt libXtst libXv libXvMC libXxf86dga libXxf86vm MOTIF FESTIVAL XAnim Elm freedist Adobe-SourceCode icu MSttfEULA UCAR-Unidata GPL-2-with-MySQL-FLOSS-exception adobe-ps skype-eula Adobe AdobeFlash-10 unRAR OPERA-10.53 PUEL LLVM"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/var/tmp/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y -q"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages news nostrip parallel-fetch preserve-libs pristine-buildpkg protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://gentoo.cs.nctu.edu.tw/gentoo/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr es eo en us"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/genbab /var/lib/layman/berkano /var/lib/layman/sping /var/lib/layman/zugaina /var/lib/layman/interactive-fiction /var/lib/layman/gnustep /var/lib/layman/python /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/multimedia /var/lib/layman/games /var/lib/layman/gamerlay /var/lib/layman/njw /var/lib/layman/emacs /var/lib/layman/qting-edge /var/lib/layman/kde /var/lib/layman/tove/repo /usr/portage/local/g-pypi"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi akode akonadi alias alsa amd64 amrnb amrwb assistant autoreplace avahi bash-completion berkdb blender-game bonjour branding bzip2 cairo cdaudio cdr cli consolekit contactnotes cracklib crypt cups curl cxx dbus dri dts dv dvd dvdnav dvdr emacs emboss encode espeak examples exif fam festival ffmpeg firefox flac flite fortran gadu gdbm gif gnustep gnutls gpg gpm groupwise gstreamer hal handbook highlight history hpijs iconv id3tag idn ipod ipv6 jabber java java5 java6 jingle jpeg kate kde konqueror kqemu ktts ladspa latex lcms ldap libcaca libnotify lm_sensors m17n-lib mad matroska mdnsresponder-compat melt midi mikmod mmx mng modules mp2 mp3 mp4 mpeg mudflap multilib musepack mysql ncurses nemesi network nls nptl nptlonly nsplugin objc offensive ogg openal openexr opengl openmp oscar otr pam pango pcre pdf perl phonon plasma png pnm policykit ppds pppd privacy pulseaudio pvr python qt3support qt4 rar readline reflection reports ropemacs rss scanner schroedinger sdl semantic semantic-desktop session smartcard snmp sound soundtouch speex spell spl sql sse sse2 ssl startup-notification static-ppds statistics svg sysfs taglib tcpd theora threads tiff tk toolkit-scroll-bars tools truetype unicode urlpicpreview usb v4l2 vamp vhook vorbis vpx webkit width x264 xcb xft xml xorg xpm xulrunner xv xvid yahoo zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr es eo en us" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd ati vesa mesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arne Babenhauserheide 2010-08-04 15:25:40 UTC
other problems I see: 

* GD.xs:923: Warnung: Typkonvertierung von Zeiger auf Ganzzahl anderer Breite

(typeconversion to integer of different width)

* /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng12
Comment 2 Arne Babenhauserheide 2010-08-04 15:43:58 UTC
Also tried: 

/usr/bin/libpng-1.4.x-update.sh

lafilefixer --justfixit

Sadly not fixed :(
Comment 3 Arne Babenhauserheide 2010-08-04 16:05:33 UTC
revdep-rebuild didn’t fix it. 

But I got it fixed via 

pmerge -1 gd

thanks go to fulax → https://identi.ca/notice/45037911

Is there something I can do to help others not stumble over this? 
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-08-04 16:09:45 UTC
nope