Message: Re: shared library problem with QGSP_BIC Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

News Re: shared library problem with QGSP_BIC 

Forum: Installation and Configuration
Re: Question shared library problem with QGSP_BIC (Tom Roberts)
Re: Question Re: shared library problem with QGSP_BIC (Gabriele Cosmo)
Date: 30 Jul, 2009
From: Tom Roberts <Tom Roberts>

This is very strange. I did build CLHEP and Geant4.9.2.p01 from scratch.

This is Mac OS X 10.5.7. All updates have been installed. Xcode 3.1.2 is installed.

I created a brand new login "g4bl2a". In Terminal I did "sudo su - g4bl2a" and built CLHEP 2.0.4.2, Geant4.9.2.p01, and exampleN01 from scratch. I downloaded them today using login "tjrob", putting the date into the downloaded filenames to ensure I did not get old versions. There were no errors building either system, and the only warnings I saw were that CLHEP redefined M_PI a few times. The complete session is attached (7640 lines).

Modifying exampleN01 to use QGSP_BIC still fails, as before.

Note that this is as generic an environment as is possible in Mac OS X. I made NO changes to the environment, except doing ". env.sh" before building exampleN01. In particular, there are no references to Fink directories anywhere in this login or session.

Clearly there is some difference between your configuration and environment, and mine. At the end of the session I did:
    otool -L $HOME/geant4/bin/Darwin-g++/exampleN01
    g++ -v
    env | sort
    ls
    cat exampleN01.cc

Please compare to similar commands in your environment.

Note the prompt begins "tjrob:" (name of this host, which has 4 CPUs); this may help you navigate the log file. Here are the commands I typed (I had a minor glitch locating the exampleN01 executable):
tjrob:~ tjrob$ sudo su - g4bl2a
tjrob:~ g4bl2a$ ls -a
tjrob:~ g4bl2a$ mkdir clhep
tjrob:~ g4bl2a$ cd clhep
tjrob:clhep g4bl2a$ tar -xzf ~tjrob/Downloads/clhep-2.0.4.2-20090730.tgz
tjrob:clhep g4bl2a$ ls
tjrob:clhep g4bl2a$ cd 2.0.4.2
tjrob:2.0.4.2 g4bl2a$ ls
tjrob:2.0.4.2 g4bl2a$ mkdir build
tjrob:2.0.4.2 g4bl2a$ cd build
tjrob:build g4bl2a$ ../CLHEP/configure --prefix=$HOME/clhep
tjrob:build g4bl2a$ echo $?
tjrob:build g4bl2a$ export MAKEFLAGS='-j 4'
tjrob:build g4bl2a$ make
tjrob:build g4bl2a$ echo $?
tjrob:build g4bl2a$ make install
tjrob:build g4bl2a$ echo $?
tjrob:build g4bl2a$ ### CLHEP build and installed without errors
tjrob:build g4bl2a$ cd
tjrob:~ g4bl2a$ tar -xzf ~tjrob/Downloads/geant4.9.2.p01-20090730.tar.gz
tjrob:~ g4bl2a$ ls
tjrob:~ g4bl2a$ cd geant4.9.2.p01
tjrob:geant4.9.2.p01 g4bl2a$ echo $MAKEFLAGS
tjrob:geant4.9.2.p01 g4bl2a$ ./Configure -build
tjrob:geant4.9.2.p01 g4bl2a$ ./COnfigure -install
tjrob:geant4.9.2.p01 g4bl2a$ ./Configure
tjrob:geant4.9.2.p01 g4bl2a$ . env.sh
tjrob:geant4.9.2.p01 g4bl2a$ cd examples/novice/N01
tjrob:N01 g4bl2a$ make
tjrob:N01 g4bl2a$ pwd
tjrob:N01 g4bl2a$ $G4INSTALL/bin/Darwin-g++/exampleN01
tjrob:N01 g4bl2a$ ls $G4INSTALL/bin
tjrob:N01 g4bl2a$ ls $HOME
tjrob:N01 g4bl2a$ $HOME/geant4/bin/Darwin-g++/exampleN01
tjrob:N01 g4bl2a$ vi *.cc
tjrob:N01 g4bl2a$ make
tjrob:N01 g4bl2a$ $HOME/geant4/bin/Darwin-g++/exampleN01
tjrob:N01 g4bl2a$ otool -L $HOME/geant4/bin/Darwin-g++/exampleN01
tjrob:N01 g4bl2a$ g++ -v
tjrob:N01 g4bl2a$ env | sort
tjrob:N01 g4bl2a$ ls
tjrob:N01 g4bl2a$ cat exampleN01.cc
tjrob:N01 g4bl2a$



   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/07/30/08.06-51590-p01-SharedObjectBuild.txt

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: shared library problem with QGSP_BIC   (Tom Roberts - 30 Jul, 2009)
 Add Message Add Message
to: "Re: shared library problem with QGSP_BIC"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]