I installed CLHEP v1.6 and GEANT4.3.2 on Sun OS 5.7. I can almost do example N01, but it fails as follows: hepsun17> cd ../N01 hepsun17> gmake clean Cleaning up ... hepsun17> gmake Making dependency for file exampleN01.cc... Making dependency for file src/ExN01PrimaryGeneratorAction.cc ... Making dependency for file src/ExN01PhysicsList.cc ... Making dependency for file src/ExN01DetectorConstruction.cc ... Compiling ExN01DetectorConstruction.cc ... Compiling ExN01PhysicsList.cc ... Compiling ExN01PrimaryGeneratorAction.cc ... Creating/replacing object files in /usr/hep0/slater/cern01/3/geant4/tmp/SUN-CC5/exampleN01/libexampleN01.a Compiling exampleN01.cc ... Using granular libraries ... Linking exampleN01 ... Undefined first referenced symbol in file void __Crun::register_exit_code(void(*)()extern"C") /usr/hep0/slater/cern01/3/geant4/lib/SUN-CC5/libG4run.a(G4Run.o) std::bad_alloc::__vtbl /usr/hep0/slater/cern01/3/geant4/lib/SUN-CC5/libG4run.a(j7AMJ8jeAeuy-UFoa20o.o) [Hint: try checking whether the first non-inlined, non-pure virtual function of class std::bad_alloc is defined] void __Cimpl::cplus_init() (command line) ld: fatal: Symbol referencing errors. No output written to /usr/hep0/slater/cern01/3/geant4/bin/SUN-CC5/exampleN01 gmake: *** [/usr/hep0/slater/cern01/3/geant4/bin/SUN-CC5/exampleN01] Error 1
Gabriele, This looks like a problem of his installation. Please follow up.
Can you please try to rebuild geant4/source/run library and the example, by doing the following: cd $G4INSTALL/source/run gmake clean gmake cd $G4INSTALL/examples/novice/N01 gmake clean gmake We regularly build on Solaris 5.7 with CC 5.2 (Patch 109508-02) and we cannot reproduce the problem. What version of the compiler are you using ?
*** Bug 291 has been marked as a duplicate of this bug. *** *** 'Gabriele.Cosmo@cern.ch' will be responsible for bug 291. ***