Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384829 - libpng-1.2.46 and libpng-1.4.8-r2 don't seem to install all the usual symlinks
Summary: libpng-1.2.46 and libpng-1.4.8-r2 don't seem to install all the usual symlinks
Status: RESOLVED DUPLICATE of bug 319101
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 18:32 UTC by Evan Teran
Modified: 2011-09-28 18:36 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 Evan Teran 2011-09-28 18:32:06 UTC
After installing libpng-1.5, I received a message saying that I should run "emerge @preserved-rebuild", nothing unusual. After a bit of compiling I saw that net-libs/webkit-gtk-1.2.7 failed to compile, with the terminal message being:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng14

Looks like libpng1.4 isn't installed. So I decided to run:

$ sudo emerge -a1 =libpng-1.4*

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] media-libs/libpng-1.4.8-r2 

Would you like to merge these packages? [Yes/No]


Looks like it's already installed! So after some head scratching, I took a look in /usr/lib and saw the following:


$ ls -l /usr/lib/libpng*
lrwxrwxrwx 1 root root     11 Sep 28 11:51 /usr/lib/libpng.so -> libpng15.so
-rwxr-xr-x 1 root root 162728 Sep 28 14:20 /usr/lib/libpng12.so.0
-rwxr-xr-x 1 root root 174912 Sep 18 14:33 /usr/lib/libpng14.so.14
lrwxrwxrwx 1 root root     18 Sep 28 11:51 /usr/lib/libpng15.so -> libpng15.so.15.5.0
lrwxrwxrwx 1 root root     18 Sep 28 11:51 /usr/lib/libpng15.so.15 -> libpng15.so.15.5.0
-rwxr-xr-x 1 root root 191448 Sep 28 11:51 /usr/lib/libpng15.so.15.5.0


OK, so the symlinks I would expect for libpng1.5 are there, but not for 1.4 (or 1.2, which is why I mentioned it in the subject as well). I expect that /usr/lib/libpng14.so would point to /usr/lib/libpng14.so.14, so applications can just link to /usr/lib/libpng14.so and be happy.

Indeed running: sudo ln -s /usr/lib/libpng14.so.14 /usr/lib/libpng14.so fixes my linker error, but I shouldn't have to manually create this symlink, I would expect it to be there automatically.

re-emerging libpng-1.4 does not solve the problem for me.

Reproducible: Always

Steps to Reproduce:
install: libpng-1.2.46, libpng-1.4.8-r2 and libpng-1.5.5
see that there are less symlinks for libpng-1.2 and libpng-1.4 than expected.



# emerge --info
Portage 2.2.0_alpha59 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 28 Sep 2011 15:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo vmware
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -finline-functions -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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=native -O2 -fomit-frame-pointer -finline-functions -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en_US.UTF-8"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X acl acpi aio alsa amd64 apache2 apng aspell bash-completion berkdb bluetooth boost bzip2 cairo cdr cli clucene cmake consolekit cracklib crypt css cups curl cxx dbus debugger declarative dell device-mapper dri dts dvd dvdr extras fastcgi ffmpeg flac fontconfig fortran gcj gd gdbm gpm grammar graphite graphviz gtk iconv icu innodb inotify ioctl ipv6 java java6 jpeg json kde kqemu kvm lame laptop latex libnotify lto matroska mmx mng modules mono mp3 mpeg mpi mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp openxml pam pcre pdf pdo perl plasma png policykit ppp pppd private-headers python qt3support qt4 qtscript readline rss samba script sdl semantic-desktop session simplexml soap sockets sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4a ssl ssse3 subversion svg sysfs tcpd teamarena theora threads thumbnail tidy tools truetype unicode usb virtuoso vmware-tools vorbis webkit wicd wifi wxwidgets x264 xcomposite xine xinerama xml xorg xscreensaver xsl xvid zeroconf 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 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 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_US.UTF-8" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv 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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-09-28 18:36:25 UTC
The symlinks are purposely removed, so ld won't pick them up.

*** This bug has been marked as a duplicate of bug 319101 ***