Problem 287 - Undefined symbol ?
Summary: Undefined symbol ?
Status: RESOLVED WORKSFORME
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N01 (show other problems)
Version: 3.2
Hardware: Sun Solaris
: P2 normal
Assignee: Gabriele Cosmo
URL:
: 291 (view as problem list)
Depends on:
Blocks:
 
Reported: 2001-08-15 17:16 CEST by slater
Modified: 2007-04-08 18:39 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description slater 2001-08-15 17:16:56 CEST
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
Comment 1 Makoto.Asai 2001-08-15 17:56:59 CEST
Gabriele,
This looks like a problem of his installation.
Please follow up.
Comment 2 Gabriele Cosmo 2001-08-27 02:22:59 CEST
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 ?
Comment 3 Gabriele Cosmo 2001-08-27 02:27:59 CEST
*** Bug 291 has been marked as a duplicate of this bug. ***
*** 'Gabriele.Cosmo@cern.ch' will be responsible for bug 291. ***