<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>231314</bug_id>
          
          <creation_ts>2008-07-09 17:24 0000</creation_ts>
          <short_desc>sci-physics/geant-4.9.1_p02 doesn&apos;t install global libraries</short_desc>
          <delta_ts>2008-09-23 11:40:08 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>benni@netronaut.de</reporter>
          <assigned_to>sci-physics@gentoo.org</assigned_to>
          <cc>fmccor@gentoo.org</cc>
    
    <cc>sci-physics@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>benni@netronaut.de</who>
            <bug_when>2008-07-09 17:24:38 0000</bug_when>
            <thetext>Hi,

due to an incomplete sed of the Makefiles, the geant-4.9.1_p02 ebuild does build the &quot;global libraries&quot;, but they are never merged since the ebuild does not find them.

Also, with the current ebuild logic, it is impossible to build static global libraries.

Patch follows.


Cheers,

Benjamin

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>benni@netronaut.de</who>
            <bug_when>2008-07-09 17:27:21 0000</bug_when>
            <thetext>Created an attachment (id=159961)
Fix global libs issues

Changes are:
 * Call order for compile:
   Make sure env var for global is set before we try to build static objs, so
   get a chance to build static global libs.
 * sed to put global libraries in common TMP dir during compile</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-07-10 10:22:33 0000</bug_when>
            <thetext>In cvs. Thanks a lot!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>benni@netronaut.de</who>
            <bug_when>2008-07-16 20:11:07 0000</bug_when>
            <thetext>Created an attachment (id=160601)
patch against version in portage v1.5

&quot;make global&quot; removes all the granular libraries we built in the step
before.  I had a look at the build process in the ./Configure script
(install.sh): they build global first and then the rest. However,
trying this order in the ebuild does not build the granular libraries
(&quot;no rule for obj.last&quot; in &quot;make global&quot;).

This patch just makes sure that the granular libraries are rebuild
from the object files that are still around in case we build global
libraries, too.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>benni@netronaut.de</who>
            <bug_when>2008-07-16 20:12:39 0000</bug_when>
            <thetext>The current ebuild version for USE=global removes the needed granular libs.

Patch is in https://bugs.gentoo.org/attachment.cgi?id=160601 above.

Sorry,

b.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-07-17 14:03:55 0000</bug_when>
            <thetext>This probably explains that no matter what I do, I can&apos;t build any of the examples.  Closest I can get results in a huge number of things like:

/usr/lib/geant4/libG4modeling.so: undefined reference to `CLHEP::HepRotation::thetaY() const&apos;

and the GNUmakefiles for the examples essentially don&apos;t (make anything) without a lot of help.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-07-17 14:12:20 0000</bug_when>
            <thetext>OK, I applied the new patch in cvs.
Thanks Benjamin.
I&apos;m leaving this bug open for more testing period.


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-07-17 16:17:22 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; This probably explains that no matter what I do, I can&apos;t build any of the
&gt; examples.  Closest I can get results in a huge number of things like:
&gt; 
&gt; /usr/lib/geant4/libG4modeling.so: undefined reference to
&gt; `CLHEP::HepRotation::thetaY() const&apos;
&gt; 
&gt; and the GNUmakefiles for the examples essentially don&apos;t (make anything) without
&gt; a lot of help.
&gt; 

It&apos;s more than just that for me, I guess.  Several libraries for geant have this:
 U _ZN5CLHEP7HepZHatE

resulting in:
/usr/lib/geant4/libG4brep.so: undefined reference to `CLHEP::HepZHat&apos;

but nowhere in geant is defined any sort of symbol with &apos;Hat&apos; in it.  Although lots of _ZN5CLHEP symbols are defined, these aren&apos;t.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-07-17 16:30:01 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; (In reply to comment #5)
&gt; &gt; This probably explains that no matter what I do, I can&apos;t build any of the
&gt; &gt; examples.  Closest I can get results in a huge number of things like:
&gt; &gt; 
&gt; &gt; /usr/lib/geant4/libG4modeling.so: undefined reference to
&gt; &gt; `CLHEP::HepRotation::thetaY() const&apos;
&gt; &gt; 
&gt; &gt; and the GNUmakefiles for the examples essentially don&apos;t (make anything) without
&gt; &gt; a lot of help.
&gt; &gt; 
&gt; 
&gt; It&apos;s more than just that for me, I guess.  Several libraries for geant have
&gt; this:
&gt;  U _ZN5CLHEP7HepZHatE
&gt; 
&gt; resulting in:
&gt; /usr/lib/geant4/libG4brep.so: undefined reference to `CLHEP::HepZHat&apos;
&gt; 
&gt; but nowhere in geant is defined any sort of symbol with &apos;Hat&apos; in it.  Although
&gt; lots of _ZN5CLHEP symbols are defined, these aren&apos;t.
&gt; 

My mistake.  The&apos;re in libCLHEP, a separate package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>benni@netronaut.de</who>
            <bug_when>2008-07-17 16:43:02 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (In reply to comment #5)
&gt; &gt; It&apos;s more than just that for me, I guess.  Several libraries for geant have
&gt; &gt; this:
&gt; &gt;  U _ZN5CLHEP7HepZHatE
&gt; &gt; 
&gt; &gt; resulting in:
&gt; &gt; /usr/lib/geant4/libG4brep.so: undefined reference to `CLHEP::HepZHat&apos;
&gt; &gt; 
&gt; &gt; but nowhere in geant is defined any sort of symbol with &apos;Hat&apos; in it.  Although
&gt; &gt; lots of _ZN5CLHEP symbols are defined, these aren&apos;t.
&gt; &gt; 
&gt; 
&gt; My mistake.  The&apos;re in libCLHEP, a separate package.

The geant4 Makefiles assume these libraries from sci-physics/clhep are in /usr/lib. I have no idea about sparc layout, but could it be that you CLHEP libraries are somewhere else?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-07-17 17:40:05 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; It&apos;s more than just that for me, I guess.  Several libraries for geant have
&gt; &gt; &gt; this:
&gt; &gt; &gt;  U _ZN5CLHEP7HepZHatE
&gt; &gt; &gt; 
&gt; &gt; &gt; resulting in:
&gt; &gt; &gt; /usr/lib/geant4/libG4brep.so: undefined reference to `CLHEP::HepZHat&apos;
&gt; &gt; &gt; 
&gt; &gt; &gt; but nowhere in geant is defined any sort of symbol with &apos;Hat&apos; in it.  Although
&gt; &gt; &gt; lots of _ZN5CLHEP symbols are defined, these aren&apos;t.
&gt; &gt; &gt; 
&gt; &gt; 
&gt; &gt; My mistake.  The&apos;re in libCLHEP, a separate package.
&gt; 
&gt; The geant4 Makefiles assume these libraries from sci-physics/clhep are in
&gt; /usr/lib. I have no idea about sparc layout, but could it be that you CLHEP
&gt; libraries are somewhere else?
&gt; 

No, the problem was that I forgot about -lCLHEP.  For me, the make files fail because they can&apos;t find the /usr/lib/geant4/liblist program nor the /usr/lib/geant4/libname.map file.  Rather than chasing down which of many env variables would control this, I built a brute-force linker script and forgot about CLHEP.  Once I noticed that, things started building at least.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-08-22 15:58:50 0000</bug_when>
            <thetext>(In reply to comment #10)

&gt; about CLHEP.  Once I noticed that, things started building at least.

Are we done here?
Thanks
 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-09-23 11:40:08 0000</bug_when>
            <thetext>Need more tests. Re-open if it still fails.

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>159961</attachid>
            <date>2008-07-09 17:27 0000</date>
            <desc>Fix global libs issues</desc>
            <filename>globalism.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtLWdpdCBhL2dlYW50LTQuOS4xX3AwMi5lYnVpbGQgYi9nZWFudC00LjkuMV9wMDIuZWJ1
aWxkCmluZGV4IDU3NTRhYzAuLmZlOThjZDYgMTAwNjQ0Ci0tLSBhL2dlYW50LTQuOS4xX3AwMi5l
YnVpbGQKKysrIGIvZ2VhbnQtNC45LjFfcDAyLmVidWlsZApAQCAtNzYsNiArNzYsOSBAQCBzcmNf
dW5wYWNrKCkgewogCQktZSAnczokKEc0QklOKS8kKEc0U1lTVEVNKTokKEc0VE1QKTpnJyBcCiAJ
CS1lICdzOiQoRzRUTVApLyQoRzRTWVNURU0pOiQoRzRUTVApOmcnIFwKIAkJc291cmNlL0dOVW1h
a2VmaWxlIHx8IGRpZSAic2VkIEdOVW1ha2VmaWxlIGZhaWxlZCIKKwlzZWQgLWkgXAorCQktZSAn
czokKEc0TElCKS8kKEc0U1lTVEVNKTokKEc0VE1QKTpnJyBcCisJCWNvbmZpZy9nbG9ibGliLmdt
ayB8fCBkaWUgInNlZCBnbG9ibGliLmdtayBmYWlsZWQiCiB9CiAKIHNyY19jb21waWxlKCkgewpA
QCAtMTI0LDE2ICsxMjcsMTYgQEAgc3JjX2NvbXBpbGUoKSB7CiAJZXhwb3J0IEc0TElCX0JVSUxE
X1NIQVJFRD15CiAJZW1ha2UgfHwgZGllICJCdWlsZGluZyBzaGFyZWQgZ2VhbnQgZmFpbGVkIgog
CisJaWYgdXNlIGdsb2JhbDsgdGhlbgorCQlleHBvcnQgRzRMSUJfVVNFX0dSQU5VTEFSPXkKKwkJ
ZW1ha2UgZ2xvYmFsIHx8IGRpZSAiQnVpbGRpbmcgZ2xvYmFsIGxpYnJhcmllcyBmYWlsZWQiCisJ
ZmkKKwogCWlmIHVzZSBzdGF0aWM7IHRoZW4KIAkJcm0gLXJmIHRtcAogCQlleHBvcnQgRzRMSUJf
QlVJTERfU1RBVElDPXkgOyB1bnNldCBHNExJQl9CVUlMRF9TSEFSRUQKIAkJZW1ha2UgfHwgZGll
ICJCdWlsZGluZyBzdGF0aWMgZ2VhbnQgZmFpbGVkIgogCWZpCi0KLQlpZiB1c2UgZ2xvYmFsOyB0
aGVuCi0JCWV4cG9ydCBHNExJQl9VU0VfR1JBTlVMQVI9eQotCQllbWFrZSBnbG9iYWwgfHwgZGll
ICJCdWlsZGluZyBnbG9iYWwgbGlicmFyaWVzIGZhaWxlZCIKLQlmaQogfQogCiBnNF9jcmVhdGVf
ZW52X3NjcmlwdCgpIHsK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>160601</attachid>
            <date>2008-07-16 20:11 0000</date>
            <desc>patch against version in portage v1.5</desc>
            <filename>Rebuild-granular-libraries.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">RnJvbSAzYjFmN2FhMjUzMDQ0ZDU0MDE0NmI2OWRiY2U5NjZiZjEyNGNmZDg0IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW5qYW1pbiBCYW5uaWVyIDxiZW5uaUBuZXRyb25hdXQuZGU+
CkRhdGU6IFdlZCwgMTYgSnVsIDIwMDggMTU6NDk6MTkgLTA0MDAKU3ViamVjdDogW1BBVENIXSBS
ZWJ1aWxkIGdyYW51bGFyIGxpYnJhcmllcwoKIm1ha2UgZ2xvYmFsIiByZW1vdmVzIGFsbCB0aGUg
Z3JhbnVsYXIgb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