Merging webalizer-2.01.10-r12 fails with error checking for main in -lz... no configure: error: z library not found... please install zlib. !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/webalizer-2.01.10-r12/work/webalizer-2.01-10/config.log !!! ERROR: app-admin/webalizer-2.01.10-r12 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile webalizer-2.01.10-r12.ebuild, line 95: Called econf '--enable-dns' '--with-db=/usr/include/db4.2/' '--with-dblib=db-4.2' '--enable-geoip' '--with-language=english' ebuild.sh, line 540: Called die !!! econf failed !!! If you need support, post the topmost build error, and the call stack if relevant. but looking at config.log (attached), I see that it is actually not finding libdb (which I do not have installed on my system). The package should have a dependency on db.
Created attachment 99991 [details] config.log from failing ebuild
# emerge --info Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 VIA Samuel 2 Gentoo Base System version 1.12.5 Last Sync: Thu, 19 Oct 2006 03:30:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=c3 -pipe -Os -ffast-math -fomit-frame-pointer -frename-registers -fweb" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=c3 -pipe -Os -ffast-math -fomit-frame-pointer -frename-registers -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://adelie.polymtl.ca/ ftp://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow acpi bitmap-fonts caps cli cracklib crypt cups dlloader dri elibc_glibc fortran input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog kernel_linux libg++ linguas_en_US mmap mmx ncurses nptl nptlonly pam pcre ppds pppd readline reflection spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_via xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
# emerge --info Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 VIA Samuel 2 Gentoo Base System version 1.12.5 Last Sync: Thu, 19 Oct 2006 03:30:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=c3 -pipe -Os -ffast-math -fomit-frame-pointer -frename-registers -fweb" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=c3 -pipe -Os -ffast-math -fomit-frame-pointer -frename-registers -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://adelie.polymtl.ca/ ftp://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow acpi bitmap-fonts caps cli cracklib crypt cups dlloader dri elibc_glibc fortran input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog kernel_linux libg++ linguas_en_US mmap mmx ncurses nptl nptlonly pam pcre ppds pppd readline reflection spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_via xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY # emerge -av webalizer These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-admin/webalizer-2.01.10-r12 USE="apache2 geoip search vhosts xtended -nls" 0 kB Total size of downloads: 0 kB
I don't think the ebuild is correct either. It depends on sys-libs/db only when geoip use flag is not set, but passes --with-db --with-dblib to configure unconditionally. Try this patch (against -r14, but should work for other versions as well). <snip> --- webalizer-2.01.10-r14.ebuild 2006-10-04 06:38:08.000000000 +0200 +++ webalizer-2.01.10-r14.ebuild 2006-10-19 08:45:37.000000000 +0200 @@ -69,9 +69,8 @@ } src_compile() { - local myconf=" --enable-dns \ - --with-db=$(db_includedir) \ - --with-dblib=$(db_libname)" + local myconf=" --enable-dns" + use geoip || myconf="${myconf} --with-db=$(db_includedir) --with-dblib=$(db_libname)" use geoip && myconf="${myconf} --enable-geoip" # really dirty hack; necessary due to a really gross ./configure </snip>
(In reply to comment #4) > I don't think the ebuild is correct either. It depends on sys-libs/db only when > geoip use flag is not set, but passes --with-db --with-dblib to configure > unconditionally. Pretty sure db is needed unconditionally (required by DNS). Fixed DEPEND.
(In reply to comment #5) > Pretty sure db is needed unconditionally (required by DNS). Fixed DEPEND. Yes, you are right. trying to run configure without db gives ... checking for dbopen... no checking for library containing dbopen... no configure: warning: You must have a V1.85 compatable DB library! configure: warning: DNS lookup code will be disabled... ...