I have followed libpng rules for updating properly to libpng-1.4, but abiword-2.6.8 keeps failing to build and seems to require media-libs/libpng:1.2 ./src/text/fmt/xp' -I'../../../../src/text/fmt/unix' -I../../../../../abiword-plugins \ -DPACKAGE_NAME="\"abiword\"" \ ./UnixMain.cpp \ -lpangoxft-1.0 -lXft -lXrender -lX11 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lSM -lICE -lX11 -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgnomeprintui-2-2 -lgnomeprint-2-2 -lz -lgnomecanvas-2 -lxml2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lfreetype -pthread -lgnomevfs-2 -lgconf-2 -lgsf-gnome-1 -lgsf-1 -lbonobo-2 -lxml2 -lbonobo-activation -lgmodule-2.0 -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0 -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgconf-2 -lgthread-2.0 -lrt -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lenchant -lgmodule-2.0 -lglib-2.0 -lxml2 -lz -lm -lfribidi -L/usr/lib -lwv -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 -lpng -lz -lm -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 -lglib-2.0 -lpng -lz -lpopt -lXft -lXrender -lfreetype -lX11 -lfontconfig -lfreetype -pthread -lgthread-2.0 -lrt -lglib-2.0 -lgoffice-0 -lgsf-1 -lglade-2.0 -lgnomeprint-2-2 -lz -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lfreetype -lfontconfig -lart_lgpl_2 -lxml2 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 \ -L/var/tmp/portage/app-office/abiword-2.6.8/work/abiword-2.6.8/src/wp/main/unix -labiword-2.6 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libpng12.so.0, needed by /usr/lib/libabiword-2.6.so, not found (try using -rpath or -rpath-link) /usr/lib/libabiword-2.6.so: undefined reference to `png_create_write_struct@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_write_end@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_set_compression_level@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_get_IHDR@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_write_info@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_set_write_fn@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_create_info_struct@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_get_io_ptr@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_destroy_write_struct@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_write_row@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_destroy_read_struct@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_create_read_struct@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_set_read_fn@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_set_IHDR@PNG12_0' /usr/lib/libabiword-2.6.so: undefined reference to `png_read_info@PNG12_0' collect2: ld returned 1 exit status make[4]: *** [abiword-dynamic] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/app-office/abiword-2.6.8/work/abiword-2.6.8/src/wp/main/unix' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/app-office/abiword-2.6.8/work/abiword-2.6.8/src/wp/main' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-office/abiword-2.6.8/work/abiword-2.6.8/src/wp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-office/abiword-2.6.8/work/abiword-2.6.8/src' make: *** [all-recursive] Error 1 Reproducible: Always Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 30 Jun 2010 09:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r2 dev-util/ccache: 2.4-r7 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.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 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="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" 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 -pipe -march=native" DISTDIR="/usr/distfiles" FEATURES="assume-digests autoaddcvs ccache cvs distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org" LANG="es_ES.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="es es_ES en_US" MAKEOPTS="-j3" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdr cleartype cli consolekit cracklib crypt css cups cxx dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam ffmpeg firefox flac foomaticdb fortran gdbm gdu gif gimp glitz gmail gnome gnome-keyring gpm gstreamer gtk hal iconv imap ipod java jpeg jpeg2k kdehiddenvisibility kpathsea latex lcms libnotify lzma mad mbox mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musepack musicbrainz nautilus ncurses network network-cron nls nptl nptlonly ogg opengl openmp pam pango pch pcre pdf perl png policykit pop ppds pppd python qt3support qt4 raw readline reflection sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs t1lib tcpd theora tiff truetype unicode usb vcd vorbis x264 xcb xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-office/abiword-2.6.8 was built with the following: USE="gnome (multilib) spell xml -debug"
Is adding a RDEPEND on media-libs/libpng:1.2 enough for this or anything else is broken? Thanks
Created attachment 237013 [details] build.log.bz2
abiword doesn't need libpng 1.2.x. >>> Installing (1 of 1) app-office/abiword-2.8.6 $ qlist abiword | xargs objdump -p | grep libpng NEEDED libpng14.so.14 required from libpng14.so.14: you should have picked up cairo-1.8.8-r1 as upgraded package as stable, after libpng 1.4.3 in depgraph and run the update script, as well as revdep-rebuild --library libpng12.so.0 as mentioned in the postinst message. if all that for some reason went wrong for you, then you need to run: emerge -1 pango cairo gtk+ libglade by hand (and run the postinst stuff) closing...
I get exactly the same failure :-( This is what I have run: # emerge -1 pango cairo gtk+ libglade # /usr/sbin/libpng-1.4.x-update.sh # revdep-rebuild --library libpng12.so.0 -> this tries to rebuild the only broken app (abiword) and it fails with the same error.
And still failing even without ccache
Thanks :-)
In that case abiword's build-system is broken and it's trying to link to system libraries instead of the just built ones: /usr/lib/libabiword-2.6.so: undefined reference to `png_create_write_struct@PNG12_0' emerge -C abiword emerge abiword
I'd rather have people concentrate on stabilizing abiword 2.8 since it has a much saner build system than 2.4 and 2.6 ever had.
It solved my problem, I close this since looks solved in testing and abiword-2.8 shouldn't take too much time to become stable (works fine for me on one of the systems I maintain)