Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359673 - sci-physics/geant-4.9.4_p01 USE=zlib - ld: cannot find -lG4zlib
Summary: sci-physics/geant-4.9.4_p01 USE=zlib - ld: cannot find -lG4zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
: 394163 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-20 22:22 UTC by Matthias Nagl
Modified: 2012-03-09 13:22 UTC (History)
2 users (show)

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


Attachments
build log (build.log,13.01 KB, text/plain)
2011-03-20 22:24 UTC, Matthias Nagl
Details
build.log using MAKEOPTS="-j1" (build.log,320.40 KB, text/plain)
2011-03-24 18:40 UTC, Matthias Nagl
Details
build.log (build.log,15.04 KB, text/x-log)
2011-05-15 18:56 UTC, Andrew Savchenko
Details
environment (environment,122.50 KB, text/plain)
2011-05-15 18:57 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,7.80 KB, text/plain)
2011-05-15 18:58 UTC, Andrew Savchenko
Details
Allow libG4gl2ps to use external zlib (gl2ps-zlib.patch,442 bytes, patch)
2012-03-09 13:16 UTC, Marek Szuba (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Nagl 2011-03-20 22:22:32 UTC
Installing Geant with activated zlib use-flag fails due to missing libG4zlib.so:

ld: cannot find -lG4zlib 

Reproducible: Always

Steps to Reproduce:
1. USE=zlib emerge geant
Actual Results:  
see attachment

Expected Results:  
should just install geant
Comment 1 Matthias Nagl 2011-03-20 22:24:04 UTC
Created attachment 266657 [details]
build log
Comment 2 Rafał Mużyło 2011-03-20 22:26:40 UTC
On the off chance: does it work with '-j1' ?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-22 02:54:58 UTC
Please post your `emerge --info' too.
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2011-03-22 04:19:13 UTC
Should be fixed now from fixing bug #359437. Re-open if it persists after re-sync and re-install in a few hours.
Thanks.

*** This bug has been marked as a duplicate of bug 359437 ***
Comment 5 Matthias Nagl 2011-03-24 16:48:49 UTC
It is not a duplicate of bug 359437 as I applied the changes mentioned there before stumbling on the bug reported here.

MAKEOPTS="-j1" emerge -av geant
seems to work (still compiling)


emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 24 Mar 2011 13:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://de-mirror.org/distro/gentoo/ rsync://mirror.opteamax.de/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en ja"
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.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi akonadi alsa amd64 anthy asf autoipd avahi berkdb bluetooth bzip2 cairo captury chm cjk cli clucene consolekit corefonts cracklib crypt css cups cvs cxx dbus detex digitalradio djvu doc dri dts dv dvd dvdr dvdread ebook emovix encode exif fam fame fbcondecor ffmpeg firefox flac fontconfig fortran fuse gcj gdbm gi gif git glitz gnokii gphoto2 gpm gs gstreamer handbook hdri htmlhandbook iconv id3tag ieee1394 imlib inotify ipod ipv6 jack jadetex java java5 java6 jbig jpeg jpeg2k kde kipi kpathsea ladspa latex latex3 lcms ldap lensfun libsamplerate luatex lzma lzo mad mdnsresponder-compat mjpeg mmx mng modules motif mp3 mpeg mplayer mudflap multilib musepack musicbrainz mysql ncurses networkmanager nls npp nptl nptlonly nsplugin ogg openexr opengl openmp pam pcre pdf perl phonon plasma png policykit postscript ppds pppd ps python qt3support qt4 quicktime rdesktop rdp readline recode redland rtsp samba sasl scanner sdl semantic-desktop session smp sndfile soundtouch speex spell sse sse2 ssl subversion svg sysfs taglib tcpd theora threads thumbnail tiff truetype twolame udev unicode usb vamp vcd vnc vorbis wavpack webkit wmf xcb xcomposite xetex xine xml xorg xv xvid 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="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" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en ja" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys net" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Matthias Nagl 2011-03-24 18:39:56 UTC
Using MAKEOPTS="-j1" it stopped compiling at another position later on. See build.log for details.

In fact it does not yet work. For my previous post I did not wait until the end.
Comment 7 Matthias Nagl 2011-03-24 18:40:49 UTC
Created attachment 267119 [details]
build.log using MAKEOPTS="-j1"
Comment 8 Andrew Savchenko gentoo-dev 2011-05-15 18:54:14 UTC
Same here, build dies with "ld: cannot find -lG4zlib" even with -j1.
Comment 9 Andrew Savchenko gentoo-dev 2011-05-15 18:56:18 UTC
Created attachment 273309 [details]
build.log
Comment 10 Andrew Savchenko gentoo-dev 2011-05-15 18:57:35 UTC
Created attachment 273311 [details]
environment
Comment 11 Andrew Savchenko gentoo-dev 2011-05-15 18:58:46 UTC
Created attachment 273313 [details]
emerge --info
Comment 12 Marek Szuba (RETIRED) archtester gentoo-dev 2011-09-27 21:45:15 UTC
Having had a look at all the Geant build files, it seems they still do not handle GEANT4_USE_SYSTEM_ZLIB correctly and although having it set does disable building libG4zlib, it does not replace the latter among dependencies of at least some relevant components. To be fair, the top-level CMakeLists.txt does contain a warning that support for system zlib needs more work... I reckon we should either fix this for them (which unfortunately is not a five-minute job, still I'll try again later if I have time) or refrain from enabling this feature for the time being.

BTW. The bug persists in version 4.9.4_p02 (for which I've just submitted an ebuild - see bug #384721).
Comment 13 Sébastien Fabbro (RETIRED) gentoo-dev 2011-12-18 07:14:07 UTC
fixed in versions 4.9.4_p03 and above.
Comment 14 Sébastien Fabbro (RETIRED) gentoo-dev 2011-12-18 07:19:19 UTC
*** Bug 394163 has been marked as a duplicate of this bug. ***
Comment 15 Andrew Savchenko gentoo-dev 2011-12-18 12:15:32 UTC
(In reply to comment #13)
> fixed in versions 4.9.4_p03 and above.

Looks like your forgot to update manifest:

-rw-r--r-- 1 portage portage 10430 Dec 18 11:31 ChangeLog
-rw-r--r-- 1 portage portage  7099 Aug  2 10:01 Manifest
drwxr-xr-x 2 portage portage  4096 Dec 18 11:31 files
-rw-r--r-- 1 portage portage  1885 Jun 28 18:01 geant-3.21.14-r2.ebuild
-rw-r--r-- 1 portage portage  1719 Jul 21 20:50 geant-3.21.14-r3.ebuild
-rw-r--r-- 1 portage portage  8145 Aug  2 10:01 geant-4.9.2_p02.ebuild
-rw-r--r-- 1 portage portage  2398 Dec 18 11:13 geant-4.9.4_p03.ebuild
-rw-r--r-- 1 portage portage  2901 Dec 18 11:13 geant-4.9.5.ebuild
-rw-r--r-- 1 portage portage  1569 Jun 28 18:01 metadata.xml
Comment 16 Marek Szuba (RETIRED) archtester gentoo-dev 2012-03-09 13:16:23 UTC
Created attachment 304723 [details, diff]
Allow libG4gl2ps to use external zlib
Comment 17 Marek Szuba (RETIRED) archtester gentoo-dev 2012-03-09 13:22:03 UTC
I am afraid this bug has NOT been fixed yet - the HepRep driver is now fine but in both 4.9.4_p03 and 4.9.5 there is one more component, visualization/externals/gl2ps, which has got G4zlib hard-coded in sources.cmake. I have just posted a patch which allows that one to use external zlib in there as well.