Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311147 - kde-base/kdelibs-4.4.2 (and others): No rule to make target /lib64/libz.so after zlib upgrade
Summary: kde-base/kdelibs-4.4.2 (and others): No rule to make target /lib64/libz.so af...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 311155 315767 322331 361531 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-24 16:58 UTC by Jim Dory
Modified: 2014-05-23 00:52 UTC (History)
6 users (show)

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 Jim Dory 2010-03-24 16:58:06 UTC
Possibly related to libz.so. Here's a snip of the emerge:
<snip>
Found ZLIB: /usr/lib/libz.so
<snip>
[  4%] Built target dolphin-handbook                                                                        
make[2]: *** No rule to make target `/lib/libz.so', needed by `lib/fileviewsvnplugin.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[  5%] Building CXX object dolphin/src/CMakeFiles/fileviewsvnplugin.dir/versioncontrol/fileviewsvnplugin.o
make[1]: *** [dolphin/src/CMakeFiles/fileviewsvnplugin.dir/all] Error 2                                                                               
make[1]: *** Waiting for unfinished jobs....
[  5%] [  5%] [  6%] Building CXX object dolphin/src/CMakeFiles/dolphinprivate.dir/dolphinprivate_automoc.o
<snip>
[ 31%] Building CXX object dolphin/src/CMakeFiles/dolphinprivate.dir/dolphin_generalsettings.o                                                      
[ 31%] make[2]: *** No rule to make target `/lib/libz.so', needed by `lib/libdolphinprivate.so.4.4.0'.  Stop.                                               
make[2]: *** Waiting for unfinished jobs....
Building CXX object dolphin/src/CMakeFiles/dolphinprivate.dir/dolphin_versioncontrolsettings.o
make[1]: *** [dolphin/src/CMakeFiles/dolphinprivate.dir/all] Error 2                                                                               
make: *** [all] Error 2
 * ERROR: kde-base/dolphin-4.4.1 failed:
 *   Make failed! 

Reproducible: Always

Steps to Reproduce:
1. Enable thumbnail USE flag
2. emerge -av dolphin
3.

Actual Results:  
see description


Others have reproduced this as witnessed on gentoo forums.

# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 23 Mar 2010 22:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5, 3.1.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1
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
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
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/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/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.averse.net/pub/gentoo/ http://gentoo.binarycompass.org"
LANG="en_US.UTF-8"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
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/pro-audio /usr/local/portage /var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa apache2 berkdb bitmap-fonts bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus divx4linux dri dvd dvdr exif fam ffmpeg flac foomatic fortran gdbm gif gimp gimpprint gpm hal iconv ipv6 jack jack-tmpfs jackmidi java jpeg kde kipi ladspa mad mikmod modules mp3 mpeg mudflap mysql ncurses nfs nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl php5 png ppds pppd python qt3support qt4 quicktime raw readline reflection samba sane scanner sdl session sndfile spell spl sse sse2 ssl svg swscaler sysfs tcpd theora tiff truetype type1-fonts unicode usb v4l2 vorbis vst vst-sdk win32codecs x264 x86 xanim xcomposite xinerama xml xmp xorg xrandr xsane xulrunner xv xvid zip zlib"
ALSA_CARDS="ice1712"
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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon"
ELIBC="glibc"
INPUT_DEVICES="evdev wacom"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LINGUAS="en en_US"
RUBY_TARGETS="ruby18"
USERLAND="GNU"
VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-03-24 17:04:30 UTC
please post output of

ls -l /lib/libz* /usr/lib/libz* /usr/local/lib/libz* 

Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-03-24 17:25:06 UTC
*** Bug 311155 has been marked as a duplicate of this bug. ***
Comment 3 Jim Dory 2010-03-24 17:25:49 UTC
 ls -l /lib/libz* /usr/lib/libz* /usr/local/lib/libz*
ls: cannot access /usr/local/lib/libz*: No such file or directory
lrwxrwxrwx 1 root root    13 Mar 20 18:23 /lib/libz.so.1 -> libz.so.1.2.4
-rwxr-xr-x 1 root root 83444 Mar 20 18:23 /lib/libz.so.1.2.4
-rw-r--r-- 1 root root 90186 Mar 20 18:23 /usr/lib/libz.a
-rw-r--r-- 1 root root 78748 Mar 17 21:43 /usr/lib/libzip.a
-rw-r--r-- 1 root root   783 Mar 17 21:43 /usr/lib/libzip.la
lrwxrwxrwx 1 root root    15 Mar 17 21:43 /usr/lib/libzip.so -> libzip.so.1.0.0
lrwxrwxrwx 1 root root    15 Mar 17 21:43 /usr/lib/libzip.so.1 -> libzip.so.1.0.0
-rwxr-xr-x 1 root root 38440 Mar 17 21:43 /usr/lib/libzip.so.1.0.0
-rwxr-xr-x 1 root root   519 Mar 20 18:23 /usr/lib/libz.so
Comment 4 Maciej Mrozowski gentoo-dev 2010-03-26 21:34:22 UTC
Unable to reproduce
Comment 5 Jim Dory 2010-03-26 22:05:52 UTC
I've asked at least two others who have the same issue to weigh in from this thread:
http://forums.gentoo.org/viewtopic-p-6220310.html#6220310
Comment 6 Mike Hunt 2010-03-27 00:24:31 UTC
Able to reproduce always.

I get the exact identical errors here also on ~x86

Same /lib/libz*

Nothing to add, just a confirmed reproduction.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2010-03-28 16:33:42 UTC
Just to confirm this, so you DO NOT have a symlink /lib/libz.so ?

What is your version of sys-libs/zlib ? Can you re-emerge that and then try again?
Comment 8 Mike Hunt 2010-03-28 17:27:02 UTC
 ~ $ qlist -Iv sys-libs/zlib
sys-libs/zlib-1.2.4

~ # ls -l /lib/libz*
lrwxrwxrwx 1 root root    13 Mar 20 08:43 /lib/libz.so.1 -> libz.so.1.2.4
-rwxr-xr-x 1 root root 83232 Mar 20 08:43 /lib/libz.so.1.2.4

 ~ # emerge -1 sys-libs/zlib
 ~ # revdep-rebuild

 ~ $ ls -l /lib/libz*
lrwxrwxrwx 1 root root    13 Mar 28 13:12 /lib/libz.so.1 -> libz.so.1.2.4
-rwxr-xr-x 1 root root 83232 Mar 28 13:12 /lib/libz.so.1.2.4

 ~ # euse -e thumbnail

 ~ # emerge -1aDNuv kde-base/dolphin

Result: Still same exact identical errors 

[  5%] make[2]: *** No rule to make target `/lib/libz.so', needed by `lib/fileviewsvnplugin.so'.  Stop.
make[2]: *** Waiting for unfinished jobs.

[  6%] Building CXX object dolphin/src/CMakeFiles/dolphinprivate.dir/dolphindetailsview.o       
make[1]: *** [dolphin/src/CMakeFiles/fileviewsvnplugin.dir/all] Error 2                         
make[1]: *** Waiting for unfinished jobs....

[ 31%] make[2]: *** No rule to make target `/lib/libz.so', needed by `lib/libdolphinprivate.so.4.4.0'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object dolphin/src/CMakeFiles/dolphinprivate.dir/dolphin_versioncontrolsettings.o
make[1]: *** [dolphin/src/CMakeFiles/dolphinprivate.dir/all] Error 2                            
make: *** [all] Error 2
 * ERROR: kde-base/dolphin-4.4.1 failed:
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 4117:  Called kde4-meta_src_compile
 *   environment, line 3207:  Called kde4-base_src_compile
 *   environment, line 2884:  Called cmake-utils_src_compile
 *   environment, line 1094:  Called _execute_optionaly 'src_compile'
 *   environment, line  526:  Called enable_cmake-utils_src_compile
 *   environment, line 1459:  Called cmake-utils_src_make
 *   environment, line 1113:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";

Comment 9 Mike Hunt 2010-03-28 17:28:22 UTC
Oops typo, should read:

 ~ # euse -E thumbnail
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2010-03-28 19:03:47 UTC
sys-libs/zlib-1.2.4 does not install a /lib/libz.so symlink, sys-libs-1.2.3-r1 does. 

This causes compilation failures for programs expecting /lib/libz.so (or /lib64/libz.so), especially kde-base/dolphin-4.4.1

Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-03-28 19:14:50 UTC
AFAIK you only need the matching soname in /lib, libz.so.1 and libz.so is only for compiling, and can remain in /usr/lib since at the time you are building something, /usr will be mounted. So what old zlib did was wrong, and what it does now, is correct.

As such, the problem is in dolphin, not in zlib.
Comment 12 SpanKY gentoo-dev 2010-03-29 04:54:35 UTC
zlib wasnt "wrong" before, but anything that breaks with the new zlib behavior is broken.  not a bug in zlib.
Comment 13 Jonathan Callen (RETIRED) gentoo-dev 2010-03-29 23:54:41 UTC
The workaround for this is to rebuild kde-base/libkonq, which will change the installed /var/lib/kde/libkonq:${SLOT} file to reference /usr/$(get_libdir)/libz.so instead of /$(get_libdir)/libz.so - not sure how we want to handle this in the future, though.
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2010-04-09 09:18:15 UTC
So how shall we handle this?

I suspect this is still present in 4.4.2?
Comment 15 Damian Nadales 2010-04-12 11:37:36 UTC
(In reply to comment #14)
> So how shall we handle this?
> 
> I suspect this is still present in 4.4.2?
> 

(In reply to comment #11)
> AFAIK you only need the matching soname in /lib, libz.so.1 and libz.so is only
> for compiling, and can remain in /usr/lib since at the time you are building
> something, /usr will be mounted. So what old zlib did was wrong, and what it
> does now, is correct.
> 
> As such, the problem is in dolphin, not in zlib.
And some other more. I'm having the same error when compiling the unstable versions of cmake, and poppler.

Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2010-04-17 17:35:01 UTC
*** Bug 315767 has been marked as a duplicate of this bug. ***
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-06-01 09:46:36 UTC
*** Bug 322331 has been marked as a duplicate of this bug. ***
Comment 18 Andreas K. Hüttel archtester gentoo-dev 2010-06-03 19:24:28 UTC
This should not be an issue for an overall kde upgrade, so I am removing the blocker for 4.4.[23].
Comment 19 Andreas K. Hüttel archtester gentoo-dev 2011-03-24 13:54:25 UTC
zlib-1.2.5 just got stable, so a lot of people will lose the /lib(64)/libz.so symlink. Let's see if this problem pops up again...
Comment 20 Andreas K. Hüttel archtester gentoo-dev 2011-03-31 22:22:53 UTC
*** Bug 361531 has been marked as a duplicate of this bug. ***
Comment 21 Rafał Mużyło 2011-03-31 22:46:15 UTC
Perhaps another summary change is in order, to something like:
"cmake packages using find_package(ZLIB) fail to link with zlib >=1.2.5-r2".

I'm not using anything KDE related and this is more of cmake macro problem, than anything else.
Comment 22 Andreas K. Hüttel archtester gentoo-dev 2011-05-21 18:57:26 UTC
One month without any duplicates after stabling zlib >=1.2.5... I guess this problem is obsolete now.