Problem 749 - compile error with libPackaging.so
Summary: compile error with libPackaging.so
Status: RESOLVED DUPLICATE of problem 656
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 7.0
Hardware: PC Linux
: P2 normal
Assignee: Gunter.Folger
URL:
Depends on:
Blocks:
 
Reported: 2005-05-22 03:00 CEST by ning.liang
Modified: 2007-04-08 17:48 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 ning.liang 2005-05-22 03:00:54 CEST
Hi,

I"m using Mandrake Linux 10.1, gcc 3.4.3, and clhep 1.9.2. Upon compiling
example 4 I get the following output:

The hadronic physics lists should be compiled before
compiling this example.
Using granular libraries ...
Linking exampleN04 ...
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined refe
rence to `G4FTFModel::G4FTFModel(double, double, double)'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined refe
rence to `G4Mars5GeV::G4Mars5GeV()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4CascadeInterface::G4CascadeInterface()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4FTFModel::~G4FTFModel()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPFissionData::G4NeutronHPFissionData()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPElasticData::G4NeutronHPElasticData()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPElastic::G4NeutronHPElastic()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPInelasticData::G4NeutronHPInelasticData()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPFission::G4NeutronHPFission()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPCaptureData::G4NeutronHPCaptureData()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPInelastic::G4NeutronHPInelastic()'
/home/nliang/geant4_7_0_p01/lib/plists/Linux-g++/libPackaging.so: undefined
reference to `G4NeutronHPCapture::G4NeutronHPCapture()'
collect2: ld returned 1 exit status
make: *** [/home/nliang/geant4/bin/Linux-g++/exampleN04] Error 1

I compiled geant4_7_0_p01 from source with the required data files and I
compiled the hadronic physics lists as well. Is there something else I'm missing?

Thanks,
Ning
Comment 1 Gabriele Cosmo 2005-05-23 04:02:59 CEST
Please, rebuild the hadronic physics-lists using -static- libraries
(i.e.- unset G4LIB_BUILD_SHARED). Shared libs do not work currently
for the physics-lists.
Comment 2 Gabriele Cosmo 2005-05-23 04:02:59 CEST
Please, rebuild the hadronic physics-lists using -static- libraries
(i.e.- unset G4LIB_BUILD_SHARED). Shared libs do not work currently
for the physics-lists.