Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357359 - Upgrade to dev-libs/libzip-0.10_rc1 breaks app-text/ebook-tools-0.1.1-r1 compilation
Summary: Upgrade to dev-libs/libzip-0.10_rc1 breaks app-text/ebook-tools-0.1.1-r1 comp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InVCS
: 357527 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-04 14:20 UTC by Kamen Dokov
Modified: 2011-03-06 03:44 UTC (History)
12 users (show)

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


Attachments
build.log (app-text:ebook-tools-0.1.1-r1:20110304-142026.log,6.04 KB, text/plain)
2011-03-04 14:21 UTC, Kamen Dokov
Details
Portage log of failing emerge of app-text/ebook-tools-0.1.1-r1 today. (app-text:ebook-tools-0.1.1-r1:20110305-182911.log,6.15 KB, text/plain)
2011-03-05 20:33 UTC, Navid Zamani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kamen Dokov 2011-03-04 14:20:42 UTC
Upgrade to dev-libs/libzip-0.10_rc1 breaks app-text/ebook-tools-0.1.1-r1 compilation!

Reproducible: Always

Steps to Reproduce:
1.upgrade to dev-libs/libzip-0.10_rc1
2.emerge @preserved-rebuild or emerge -1 =app-text/ebook-tools-0.1.1-r1
3.

Actual Results:  
make -j3 
Scanning dependencies of target epub
[ 16%] [ 33%] [ 50%] Building C object src/libepub/CMakeFiles/epub.dir/ocf.o                                                                                   
Building C object src/libepub/CMakeFiles/epub.dir/epub.o                                                                                                       
Building C object src/libepub/CMakeFiles/epub.dir/opf.o                                                                                                        
In file included from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epublib.h:9:0,                                         
                 from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epub.c:2:
/usr/include/zip.h:51:21: fatal error: zipconf.h: No such file or directory
compilation terminated.
In file included from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epublib.h:9:0,
                 from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/ocf.c:1:
/usr/include/zip.h:51:21: fatal error: zipconf.h: No such file or directory
compilation terminated.
make[2]: *** [src/libepub/CMakeFiles/epub.dir/ocf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/libepub/CMakeFiles/epub.dir/epub.o] Error 1
In file included from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epublib.h:9:0,
                 from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/opf.c:1:
/usr/include/zip.h:51:21: fatal error: zipconf.h: No such file or directory
compilation terminated.
make[2]: *** [src/libepub/CMakeFiles/epub.dir/opf.o] Error 1
make[1]: *** [src/libepub/CMakeFiles/epub.dir/all] Error 2
make: *** [all] Error 2
emake failed


Expected Results:  
To compile and install fine!

 emerge --info
Portage 2.2.0_alpha24_p10 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r1, 2.6.37.1-zen-gd4751cd x86_64)
=================================================================
System uname: Linux-2.6.37.1-zen-gd4751cd-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Fri, 04 Mar 2011 13:00:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.1_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
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
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo repo_name-seti
Installed sets: @kde-4.6, @koffice
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-loop-linear"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/config/kdm/ /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-loop-linear -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy ccache distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org http://mirrors.ludost.net/gentoo/ ftp://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="bg_BG.UTF-8"
LC_ALL="bg_BG.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags"
LINGUAS="en"
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="3dnow 3dnowext X acl acpi alsa amd64 bash-completion bitmap-fonts bluray branding cairo cdr cli consolekit cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode esd evo exceptions fam fortran gcj gdbm gif gpm gtk handbook html iconv ipv6 isdnlog jpeg kde4 ldap mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ocamlopt ogg opengl openmp oss pam pcre pdf perl png policykit pppd pulseaudio python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 sse3 ssl ssse3 svg tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode vorbis xcomposite xml xorg xv zlib" ALSA_CARDS="hda-nvidia hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias cgid cgi" APACHE2_MPMS="worker" CAMERAS="ptp2" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech clientdebug earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar timing tnt tripmate tsip ubx" INPUT_DEVICES="keyboard mouse ps2mouse evdev" KERNEL="linux" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kamen Dokov 2011-03-04 14:21:48 UTC
Created attachment 264717 [details]
build.log
Comment 2 Michelangelo Scopelliti 2011-03-04 15:27:14 UTC
it's a bug in libzip, IMO.

equery b zipconf.h

reports

dev-libs/libzip-0.10_rc1 (/usr/lib64/libzip/include/zipconf.h)

which is a rather curious location for a .h file...

for a quick fix, waiting for a libzip fix, you can symlink /usr/lib/libzip/include/zipconf.h in /usr/include, compile and then remove the symlink.
Comment 3 Kamen Dokov 2011-03-04 16:01:58 UTC
(In reply to comment #2)
> it's a bug in libzip, IMO.
> 
> equery b zipconf.h
> 
> reports
> 
> dev-libs/libzip-0.10_rc1 (/usr/lib64/libzip/include/zipconf.h)
> 
> which is a rather curious location for a .h file...
> 
> for a quick fix, waiting for a libzip fix, you can symlink
> /usr/lib/libzip/include/zipconf.h in /usr/include, compile and then remove the
> symlink.
> 

Thank you!
That was quick, nice and it worked perfectly!
:D
Comment 4 Leonid Podolny 2011-03-04 18:49:49 UTC
Same here
Comment 5 Vasilis Lourdas 2011-03-04 19:16:10 UTC
Yeah, it breaks other builds, like mysql-workbench.
Comment 6 Michael Baer 2011-03-04 22:52:22 UTC
It seems to be a better solution to patch /usr/include/zip.h by changing the line 
#include <zipconf.h>
to
#include "/usr/lib64/libzip/include/zipconf.h"

This seems to be the better solution than symlinking as it will not leave orphaned symlinks if you're updating libzip one day.
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-05 00:13:42 UTC
Fixed in -r1,
Thanks for report.
Comment 8 Leonid Podolny 2011-03-05 08:42:34 UTC
Tomash,
libzip now doesn't include zipconf.h at all:

user@box ~ % equery files libzip | grep incl
/usr/include
/usr/include/zip.h
-----------------------------------
In file included from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epublib.h:9:0,
                 from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/ocf.c:1:
/usr/include/zip.h:51:21: fatal error: zipconf.h: No such file or directory

Comment 9 Michelangelo Scopelliti 2011-03-05 10:14:43 UTC
(In reply to comment #7)
> Fixed in -r1,
> Thanks for report.
> 

the patch is missing a backslash. as it is, zipinfo.h is not installed at all.
should another bug be opened?
Comment 10 Michelangelo Scopelliti 2011-03-05 10:22:23 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > Fixed in -r1,
> > Thanks for report.
> > 
> 
> the patch is missing a backslash. as it is, zipinfo.h is not installed at all.
> should another bug be opened?
> 
sorry, s/zipinfo/zipconf/
Comment 11 Robert Cabrera 2011-03-05 13:01:36 UTC
This bug is still not fixed and needs to be reopened!!!

I resynced and installed the latest version of libzip-0.10_rc1-r1 this morning on my ~x86 laptop. I attempted to re-emerge ebook-tools-0.1.1-r1 to clear the @preserved-rebuild issue from it failing to compile yesterday and it failed again at exactly the same spot that the above reports mention.

My emerge error msg:
-- Build files have been written to: /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1_build
>>> Working in BUILD_DIR: "/var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1_build"
make -j1 -s 
Scanning dependencies of target epub
[ 16%] Building C object src/libepub/CMakeFiles/epub.dir/epub.o                                                                                                             
In file included from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epublib.h:9:0,                                                      
                 from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epub.c:2:
/usr/include/zip.h:51:21: fatal error: zipconf.h: No such file or directory
compilation terminated.
make[2]: *** [src/libepub/CMakeFiles/epub.dir/epub.o] Error 1
make[1]: *** [src/libepub/CMakeFiles/epub.dir/all] Error 2
make: *** [all] Error 2
emake failed
 * ERROR: app-text/ebook-tools-0.1.1-r1 failed (compile phase):
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3004:  Called cmake-utils_src_compile
 *   environment, line  749:  Called _execute_optionaly 'src_compile'
 *   environment, line  215:  Called enable_cmake-utils_src_compile
 *   environment, line 1120:  Called cmake-utils_src_make
 *   environment, line  768:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =app-text/ebook-tools-0.1.1-r1',
 * the complete build log and the output of 'emerge -pqv =app-text/ebook-tools-0.1.1-r1'.
 * The complete build log is located at '/var/tmp/portage/app-text/ebook-tools-0.1.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ebook-tools-0.1.1-r1/temp/environment'.
 * S: '/var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1'

>>> Failed to emerge app-text/ebook-tools-0.1.1-r1, Log file:

>>>  '/var/tmp/portage/app-text/ebook-tools-0.1.1-r1/temp/build.log'

Please reopen and fix this. TIA
Comment 12 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-03-05 13:10:43 UTC
reopening by popular demand
Comment 13 Francesco Riosa 2011-03-05 15:04:36 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #7)
> > > Fixed in -r1,
> > > Thanks for report.
> > > 
> > 
> > the patch is missing a backslash. as it is, zipinfo.h is not installed at all.
> > should another bug be opened?
> > 
> sorry, s/zipinfo/zipconf/
> 
confirmed that adding the backslash it work and dependant packeges build again
Comment 14 Billy DeVincentis 2011-03-05 15:16:05 UTC
could you please explain with a bit more detail EXACTLY what you are changing? I have tried modifying zip.h without ANY success.
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-05 19:47:56 UTC
Typo fixed. ebook-tools compiled.
Comment 16 Navid Zamani 2011-03-05 20:33:30 UTC
Created attachment 264859 [details]
Portage log of failing emerge of app-text/ebook-tools-0.1.1-r1 today.

I just got the same problem again. The full log is attached. Here’s the key part:
> In file included from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epublib.h:9:0,
>                  from /var/tmp/portage/app-text/ebook-tools-0.1.1-r1/work/ebook-tools-0.1.1/src/libepub/epub.c:2:
> /usr/include/zip.h:51:21: fatal Error: zipconf.h: File or directory not found
(Last line manually translated from German.)

It seems to be the exact same problem. I just synced about 2-3 hours ago, before doing it. Should we re-open the bug? Or create a new one?

(Additional info: It happened during a @preserved-rebuild.)
Comment 17 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-05 20:38:37 UTC
Given the fact I fixed it like 50 minutes ago, what do you think, is it fixed in your "2 hours ago" sync? (just look on the comment times :P)

Just sync again, you want -r2 ebuild.
Comment 18 Navid Zamani 2011-03-05 20:51:00 UTC
(In reply to comment #17)
> Given the fact I fixed it like 50 minutes ago, what do you think, is it fixed
> in your "2 hours ago" sync? (just look on the comment times :P)

LOOOL! I’m sorry, man!
But somehow I could swear I only did re-sync *because* I read this here. Maybe it wasn’t 2 hours ago, but still early enough to not be on the servers.
Doesn’t matter. But thanks for the quick reaction!
And have a nice weekend! :)
Comment 19 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-05 20:53:49 UTC
You are welcome :) I should just read better next time so I don't introduce such typos :P
Comment 20 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-03-05 23:41:49 UTC
*** Bug 357527 has been marked as a duplicate of this bug. ***
Comment 21 Billy DeVincentis 2011-03-06 03:44:21 UTC
Okay, I don't know if this is fixed in the tree as of yet but here are the details of the fix. You must replace the broken patch in libzip with the one from this bug http://bugs.gentoo.org/show_bug.cgi?id=357565 and then re-emerge libzip. After that you re-emerge ebook-tools and it will emerge successfully. In fact I also put ebook-tools in an overlay and upped the version to app-text/ebook-tools-0.2.1 , thew newest version on their website and it emerged just fine. Lastly, I rebuilt okular which was using ebook-tools just to be on the safe side.
Voila!!