The missing symbol is defined in libG3toG4.
Could you check that this library is present in
$G4INSTALL/lib/$G4SYSTEM
If it is present, check that it is also loaded to Root by
modifying the macro g4libs.C,
which is in geant4_vmc/examples/macros,
by uncommenting the lines following the comment line
// Uncomment to debug
inside the method
void HandleLinkLine(…).
This will print all Geant4 libraries which are loaded.
You can also try to use the old version, g4libs_old.C,
by changing the macro name in run_g4.C macro:
gROOT->LoadMacro("…/macro/g4libs_old.C");
g4libs();
As you have suggested, due to some corrupted links, some libraries were not seen …
After some cleaning, now it works !, at least with the _old config file (modifying the granular/global call)
I have now to understand why, with the ‘uptodate’ one, I obtain:
sh: /myhome/geant4.9.2.p01/lib//libname.map: No such file or directory
Loading Geant4 libraries ...
Loading VGM libraries ...
dlopen error: /myhomeVMC/vgm.3.02/lib/Linux-g++/libGeant4GM.so: undefined symbol: _ZTI11G4PVReplica
even if libname.map exists at the quoted location… (maybe the the additionnal /…?)