Problem using ROOT within GEANT4

Hi,

I’m using ROOT within GEANT4 for long time. Yesterday I got this error message while trying to run my simulation:

response180: symbol lookup error: /home/moshe/geant4work/tmp/Linux-g++/response180/libresponse180.so: undefined symbol: _ZN8TRandom3C1Ej

The very same code is compiled and run smoothly on other mechines. I suspect that the reason might be my failure to install geant4.10.00 on this mechine few days earlier, but I got no errors when trying to run simulations that doesn’t involove ROOT, and got simillar errors with all other simulations that do involove ROOT, like:

donaCf: symbol lookup error: /home/moshe/geant4work/tmp/Linux-g++/donaCf/libdonaCf.so: undefined symbol: _ZN5TFileC1EPKcS1_S1_i

I’m adding my make file here:

name := response180
G4TARGET := $(name)
G4EXLIB := true

ifndef G4INSTALL
  G4INSTALL = ../../../..
endif

.PHONY: all
all: lib bin


include $(G4INSTALL)/config/binmake.gmk

# Root (exlude libNew and libpthread from library list)
ROOTINC       = -DTIARA_USEROOT -I$(ROOTSYS)/include

ROOTLIBS      = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
ROOTLIBS      := $(filter-out -lNew,$(ROOTLIBS))
ROOTLIBS      := $(filter-out -lpthread,$(ROOTLIBS))

# Extra flags for G4

CPPFLAGS += $(ROOTINC)

LDLIBS   += $(ROOTLIBS)
ROOTLIBS     := $(shell root-config --libs)
ROOTGLIBS    := $(shell root-config --glibs)
EXTRALIBS += $(ROOTLIBS) 
ROOTCFLAGS   := $(shell root-config --cflags)
CPPFLAGS  += $(ROOTCFLAGS) -g

And also these outputs:

root-config --libs
-L/usr/local/lib/root -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic

root-config --glibs
-L/usr/local/lib/root -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic

root-config --cflags
-pthread -m64 -I/usr/local/include/root

Thanks,
Moshe.

Hi,
Dou you have the same version of gcc on other “good” machines?