The endless loop problem seems to be solved (in at least one case) by
linking to cernlib 97a instead of 95a. I tracked down the endless loop
to the gheisha routine twoclu.F. Changing either just that routine (dangerous)
or the entire cernlib to the 97a version solves the problem. So check where
your CERN_ROOT variables point - you may be surprised....
-David