Problem 68 - Global objects in shared libraries
Summary: Global objects in shared libraries
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 1.0
Hardware: HP HP-UX
: P1 major
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2000-03-16 09:55 CET by Isidro.Gonzalez
Modified: 2000-03-21 02:13 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Isidro.Gonzalez 2000-03-16 09:55:37 CET
The shared libraries for HP are made using CC instead of aCC. This has the
effect that global objects (for example G4cout) are not initialized and the
program linked against these libraries crashes.

Change in makeshlib.sh

  CC -b -o $libso $objs

with

  aCC -b -o $libso $objs
Comment 1 Gabriele Cosmo 2000-03-21 02:13:59 CET
Problem fixed and committed to HEAD of the CVS repository:
  Checking in makeshlib.sh;
  /afs/cern.ch/sw/geant4/cvs/geant4/config/makeshlib.sh,v  <--  makeshlib.sh
  new revision: 1.3; previous revision: 1.2
  done
Will be included in future releases and reference tags. Thanks.