Build aborts with error when trying to build the gd plugin: Making all in gd make[3]: Entering directory `/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/work/graphviz-2.26.3/plugin/gd' CC gvplugin_gd.lo CC gvrender_gd.lo CC gvrender_gd_vrml.lo CC gvtextlayout_gd.lo CC gvloadimage_gd.lo CC gvdevice_gd.lo CCLD libgvplugin_gd.la CCLD libgvplugin_gd_C.la /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng12 collect2: ld returned 1 exit status distcc[18925] ERROR: compile (null) on localhost failed make[3]: *** [libgvplugin_gd.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/work/graphviz-2.26.3/plugin/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/work/graphviz-2.26.3/plugin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/work/graphviz-2.26.3' make: *** [all] Error 2
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.34-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 17 Jul 2010 11:45:02 +0000 distcc 3.1 x86_64-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r8 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-r1 sys-devel/automake: 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.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Q3AEULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -Os -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/tomoyo/conf /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=core2 -Os -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going --load-average=3.0" FEATURES="assume-digests ccache distcc distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/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="/var/lib/layman/vmware /var/lib/layman/sunrise /var/lib/layman/qting-edge /var/lib/layman/kde-sunset /var/lib/layman/roslin /var/lib/layman/enlightenment /usr/local/portage/local /home/mschiff/gentoo/git/kde" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi adns akonadi alsa amd64 ao audiofile bacula-clientonly bacula-console bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdr chm cli consolekit cracklib crypt css cups curl cxx dbus device-mapper dhclient disk-partition djvu dri dts dvd dvdr ebook emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gimp glibc-omitfp google-gadgets gpm gtk hal iconv id3tag ieee1394 ipod jpeg jpeg2k kde kipi l7filter lame laptop lcms ldap libnotify lm_sensors logrotate loop-aes lzma lzo mad mikmod mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musicbrainz mysql ncurses networkmanager nls nptl nptlonly nsplugin ntp ogg openexr opengl openmp pam pango pcmcia pcre pdf perl phonon png policykit postgres ppds pppd python qt3support qt4 readline reflection rss samba sdl semantic-desktop session smapi smp sndfile spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads thumbnail tiff truetype unicode usb utempter vcd vim-syntax vnc vorbis webkit wifi x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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
Uncomplete libpng upgrade. Read the postinst message of libpng.
Sorry, I should have provided this info: Thats what I did. I have executed libpng-1.4.x-update.sh already. Maybe that script will not work when libpng:1.2 is also installed?
reopened because libpng-1.4.x-update.sh does not fix the issue
even with libpng-1.2.44 deinstalled and libpng updater-script executed after that, this ebuild aborts with the same message (cannot find -lpng12)
really, graphviz is fine, the problem is somewhere in your system. the update script is only fixing .la files owned by portage, so any local installations of <random> software you might have made could be messing things up as well if they are in scope that build systems pick them up. just recursively grep for "png12" in *.la and *.pc files in your /usr/lib and /usr/local directories and fix them by hand then.
I do not have any local software installed. Its all portage based. And the libpng script just looks for .la files: qlist -a | grep "\.la$" I now looked manually and the only png12 that is leftover is in /usr/lib64/pkgconfig/libsexy.pc: Cflags: -I${includedir} -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 re-emerging libsexy fixed this case. But graphviz still does not compile here.
Just for the record: I solved this issue finally by re-emerging media-libs/gd before emerging graphiz Seems that gd was still linked against libpng12 but no revdep-rebuild or libpng14 update script noticed this. This may be fine because libpng12 (.so) is still installed for legacy apps...
(In reply to comment #8) > Just for the record: > > I solved this issue finally by re-emerging media-libs/gd before emerging > graphiz > > Seems that gd was still linked against libpng12 but no revdep-rebuild or > libpng14 update script noticed this. This may be fine because libpng12 (.so) is > still installed for legacy apps... > Thanks for this solution. simply emerging gd resolved the issue
(In reply to comment #8) > Just for the record: > > I solved this issue finally by re-emerging media-libs/gd before emerging > graphiz > > Seems that gd was still linked against libpng12 but no revdep-rebuild or > libpng14 update script noticed this. This may be fine because libpng12 (.so) is > still installed for legacy apps... > That didn't solve the problem for me though. media-gfx/graphviz-2.26.3-r2. I need libpng:1.2 for the googletalk plugin which is a binary-only package, and needs libpng 1.2. I still need to re-check my system though.
(In reply to comment #10) > That didn't solve the problem for me though. media-gfx/graphviz-2.26.3-r2. I > need libpng:1.2 for the googletalk plugin which is a binary-only package, and > needs libpng 1.2. I still need to re-check my system though. Cleaning up some leftover libpng 1.2 libs did the trick.