i686-pc-linux-gnu-g++ -O2 -march=i686 -pipe -Wl,-O1 -Wl,--as-needed -L/usr/lib -Wl,-O1 -o gnuplot alloc.o axis.o breaders.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o variable.o version.o -lreadline -lncurses -lz -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lm /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpng12 collect2: ld returned 1 exit status make[3]: *** [gnuplot] Error 1 make[3]: Leaving directory `/var/tmp/portage/sci-visualization/gnuplot-4.2.6/work/gnuplot-4.2.6/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sci-visualization/gnuplot-4.2.6/work/gnuplot-4.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sci-visualization/gnuplot-4.2.6/work/gnuplot-4.2.6' make: *** [all] Error 2 * ERROR: sci-visualization/gnuplot-4.2.6 failed: * (no error message) * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 3149: Called die * The specific snippet of code: * emake || die; * * If you need support, post the output of 'emerge --info =sci-visualization/gnuplot-4.2.6', * the complete build log and the output of 'emerge -pqv =sci-visualization/gnuplot-4.2.6'. * The complete build log is located at '/var/tmp/portage/sci-visualization/gnuplot-4.2.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-visualization/gnuplot-4.2.6/temp/environment'. * S: '/var/tmp/portage/sci-visualization/gnuplot-4.2.6/work/gnuplot-4.2.6' I did run lafilefixer --justfixit, and libpng-1.4.x-update.sh, and that did not fix the problem. Reproducible: Always Steps to Reproduce: 1. Just run sci-visualization/gnuplot and wait :) Actual Results: The ebuild fails to install. Expected Results: The ebuild should have installed without error. Output of 'emerge --info =sci-visualization/gnuplot-4.2.6': Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T6500_@_2.10GHz-with-gentoo-1.12.13 Timestamp of tree: Fri, 06 Aug 2010 13:00:18 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.4_p6-r1, 1.5-r1, 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.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="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-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/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="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.romnet.org/gentoo/ ftp://mirrors.evolva.ro/gentoo/ http://mirrors.xservers.ro/gentoo/ " LDFLAGS="-Wl,-O1 -Wl,--as-needed" 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/sunrise /var/lib/layman/pro-audio" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acl acpi alsa audiofile bash-completion berkdb bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cscope css cups cvs cxx dbus djvu dri dvd dvdread encode exif ffmpeg fftw flac fontconfig fortran gdbm gif gnuplot gnutls gpm graphviz gstreamer gtk iconv icq ipod ipv6 jack jpeg ladspa lame matroska mikmod mmx modules mp3 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin ogg openmp oss pam pcre perl png pppd python qt3 qt3support quicktime readline reflection rss sdl session sndfile sockets spl sse sse2 ssl svg sysfs syslog tcl tcpd threads tiff tk truetype unicode usb vcd vorbis wavpack wifi win32codecs wma wmf wxwindows x86 xemacs xine xml xorg xpm xulrunner xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv vesa vga" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 241727 [details] Build log
Created attachment 241729 [details] Environment
Also, I do have a libpng12 library: # locate libpng12 /usr/lib/libpng12.so.0 and it looks valid to ldd: # ldd /usr/lib/libpng12.so.0 linux-gate.so.1 => (0xb776e000) libz.so.1 => /lib/libz.so.1 (0xb7715000) libm.so.6 => /lib/libm.so.6 (0xb76ef000) libc.so.6 => /lib/libc.so.6 (0xb75a5000) /lib/ld-linux.so.2 (0xb776f000)
nah, you just need to read libpng's postinst message for upgrade instructions...
The postinst message says "Run ${EPREFIX}/usr/sbin/libpng-1.4.x-update.sh to fix libtool archives (.la)". As you can see in my initial comment, I've stated that "I did run lafilefixer --justfixit, and libpng-1.4.x-update.sh, and that did not fix the problem". I've also run 'revdep-rebuild -v' after that, and still no go. Other than manually re-emerging all libpng-affected packages I don't see what else I can do.
I've done an 'emerge -C libpng', then emerged libpng-1.2, then 'emerge -u libpng' and it's working now. Something fishy is going on, but it looks like it's more of a system-wide quirk (I've switched GCC versions recently, might have something to do with that), so the bug I guess doesn't belong with gnuplot.
lafilefixer is useless for the libpng upgrade & plain revdep-rebuild without the --library parameter is also not useful so here goes: 1. /usr/sbin/libpng-1.4.x-update.sh 2. emerge -1 cairo pango gtk+ libglade 3. revdep-rebuild --library libpng12.so.0 if you still have issues after that, please do reopen / open new bug
*** Bug 347585 has been marked as a duplicate of this bug. ***