Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450366 - x11-libs/cairo-1.12.8: ld: cannot find -lpng14
Summary: x11-libs/cairo-1.12.8: ld: cannot find -lpng14
Status: RESOLVED DUPLICATE of bug 319101
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 11:34 UTC by Martin Mokrejš
Modified: 2013-01-05 12:26 UTC (History)
0 users

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


Attachments
build.log (build.log,692.52 KB, text/plain)
2013-01-05 11:34 UTC, Martin Mokrejš
Details
config.log (config.log,148.05 KB, text/plain)
2013-01-05 11:37 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2013-01-05 11:34:02 UTC
Created attachment 334502 [details]
build.log

First of all, I do not understand why a testsuite is compiled for me.
Second, I suspect it is hardcoded in C sources that libpng-1.5 must be available (see the "-I/usr/include/libpng15"). However, maybe due to some *.la file or whomever, linker looks for libpng-1.4.

At the very moment revdep-rebuild does not find anything broken related to libpng.

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I. -I./pdiff -I../boilerplate -I../util/cairo-missing -I../util/cairo-script -I../src -I../src -D_REENTRANT      -I/usr/include/pixman-1        -I/usr/include/freetype2     -I/usr/include/libdrm   -I/usr/include/libdrm   -I/usr/include/libpng15   -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore         -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wbad-function-cast -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2                             -pthread -DQT_SHARED -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0    -O2 -pipe -march=nocona -finline-limit=1200 -c -o any2ppm-any2ppm.o `test -f 'any2ppm.c' || echo './'`any2ppm.c
  CCLD   any2ppm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng14
collect2: ld returned 1 exit status
make[4]: *** [any2ppm] Error 1
make[4]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.8/work/cairo-1.12.8/test'


# emerge --info '=x11-libs/cairo-1.12.8'
Portage 2.1.11.38 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.1-r3, 2.6.35.9-default x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35.9-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Sat, 05 Jan 2013 00:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.6-r1, 2.7.1, 3.1.3, 3.2.3-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.6.8
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.3.5, 4.4.4-r1, 4.5.2
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.1-r3
Repositories: gentoo science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 amr apache apache2 berkdb bzip2 cairo cgi cli cracklib crypt cups cxx dbus device-mapper dri encode ffmpeg flac fontconfig fortran gd gdbm gnutls hal iconv id3tag innodb ipv6 java jce jpeg jpg kde ladspa laptop mad mmx modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ogg opengl openmp openssl pam pcre perl php png policykit python qt3support qt4 readline server session sndfile sse sse2 ssl suexec svg syslog tcpd threads tiff truetype unicode usb wavpack xml xorg 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="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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs cz" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# emerge -pqv '=x11-libs/cairo-1.12.8'
[ebuild     U ] x11-libs/cairo-1.12.8 [1.10.2-r1] USE="X glib opengl qt4 svg (-aqua) -debug -directfb -doc (-drm) (-gallium) -legacy-drivers% -openvg -static-libs -xcb"
Comment 1 Martin Mokrejš 2013-01-05 11:37:28 UTC
Created attachment 334506 [details]
config.log

A config.log showing that -lpng15 was detected by configure.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-01-05 11:53:56 UTC

*** This bug has been marked as a duplicate of bug 319101 ***
Comment 3 Martin Mokrejš 2013-01-05 12:26:37 UTC
# find /usr/ -name '*.la' -exec grep -l png14 {} +
/usr/lib64/ImageMagick-6.6.5/modules-Q16/coders/svg.la
/usr/lib64/libgimpthumb-2.0.la
/usr/lib64/libwnck-1.la
/usr/lib64/librrd_th.la
/usr/lib64/libass.la
/usr/lib64/libgtkmm-2.4.la
/usr/lib64/libgimpui-2.0.la
/usr/lib64/libpangomm-1.4.la
/usr/lib64/libntop.la
/usr/lib64/librrd.la
/usr/lib64/libgimpwidgets-2.0.la
/usr/lib64/gimp/2.0/modules/libcolor-selector-cmyk.la
/usr/lib64/gimp/2.0/modules/libcolor-selector-wheel.la
/usr/lib64/gimp/2.0/modules/libdisplay-filter-gamma.la
/usr/lib64/gimp/2.0/modules/libcontroller-midi.la
/usr/lib64/gimp/2.0/modules/libdisplay-filter-high-contrast.la
/usr/lib64/gimp/2.0/modules/libcontroller-linux-input.la
/usr/lib64/gimp/2.0/modules/libcolor-selector-water.la
/usr/lib64/gimp/2.0/modules/libdisplay-filter-color-blind.la
/usr/lib64/gimp/2.0/python/_gimpui.la
/usr/lib64/gimp/2.0/python/gimpthumb.la
/usr/lib64/librsvg-2.la
/usr/lib64/libntopreport.la
/usr/lib64/libvigraimpex.la
/usr/lib64/libgdkmm-2.4.la
/usr/lib64/directfb-1.4-5/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.la
#
# find /usr/lib64 -name '*.la' |xargs grep lpng14 2> /dev/null | sed 's/\:.*//' | xargs equery -q b | sort | uniq
dev-cpp/gtkmm-2.22.0
dev-cpp/pangomm-2.26.3
dev-libs/DirectFB-1.4.5
gnome-base/librsvg-2.32.1
media-gfx/gimp-2.6.11
media-gfx/imagemagick-6.6.5.6
media-libs/libass-0.9.11
media-libs/vigra-1.6.0-r1
net-analyzer/ntop-4.0.1
net-analyzer/rrdtool-1.4.4
x11-libs/libwnck-2.30.6
#

I will try to update the packages and if that fails re-install with same version.

Note: Sorry for the dupe. I did search through bugzilla but forgot that "-lpng14" likely prevents items matching "lpng14" due to the minus sign. Otherwise do not know why it did not find anything.