root 2 on DEC unix 4 shared libs

stefan kluth (skluth@mh1.lbl.gov)
Wed, 1 Apr 1998 17:58:49 -0800 (PST)


Hi,

I just installed root 2 (root_v2.00.OSF1.V4.0.cxx) on a DEC unix 4 system.
I tried to import some CLHEP classes into root, with mixed success:

o) importing ThreeVector and LorentzVector as interpreted code worked,
after fixing an operator in CLHEPs String.h

o) AList and AIterator as interpreted code did not work. Trying to create
an empty HepAList object caused the following error(s):
root [0] .L /home/online1/skluth/scratch/CLHEP/Alist/AList.h
root [1] HepAList<float> fList()
Limitation: Can not define body of function in tempfile
FILE:/tmp/aaaaaAaAa LINE:1
root [2] .class HepAList
Error: class,struct,union or type HepAList not defined FILE: LINE:0
root [3] .file
0 fp=0x3ffc00803b8 lines=184
file="/home/online1/skluth/scratch/CLHEP/Alist/AList.h"
.
.
.

o) Then I tried to compile the CLHEP code pieces into shared libraries,
hoping to overcome the "limitation" shown above. Unfortunately, for my
DEC unix 4 and cxx 6 making shared libs doesn't work. I tried this:
[online04] ~/root/test > make Event
Generating dictionary ...
26916:/home/online1/skluth/root/bin/rootcint: /sbin/loader: Fatal Error:
cannot map libCint.so
*** Exit 1
Stop.

The same happens with root_v2.00.OSF1.V4.0, the g++ version. Is it
possible that with DECs new cxx 6 came a new loader which can't cope
with older dynamic programs? I noticed that root was made with cxx 5.5.

Do you have any general advice on how to use CLHEP in root? I would like
to test a CLHEP based application (a jet finder class) interactively in
root. Or should I replace the CLHEP lists and iterators by STL
equivalents?

Stefan

---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
- LBNL, MS 50A 2160 - phone: +1 510 495 2376 - |/ |/ -
- 1 Cyclotron Rd. - fax: +1 510 495 2957 - |\/\|\/\|' -
---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----