Warning in <TEnvRec::ChangeValue>: duplicate entry

I have just installed root vesion 5.15.8 and when I run I get many warning similar to the following:
Warning in TEnvRec::ChangeValue: duplicate entry <Library.TGeoMatHandlerId=libGeom.so libRIO.so> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.TGeoMatHandlerX=libGeom.so libRIO.so> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.TGeoMatHandlerY=libGeom.so libRIO.so> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.TGeoMatHandlerZ=libGeom.so libRIO.soetc/system.rootmap> for level 0; ignored

Unlike the prevoius situation dealt with with here:
root.cern.ch/root/roottalk/roottalk07/0446.html
I don’t have a "etc/system.rootmap "file.

I am running on SLC 4 with gcc 3.4.6.

Pat

It looks like you updated from CVS and make did not run completly.
Could you

cd $ROOTSYS rm -f lib/*.rootmap make

I am actually installing the new version from the source tar file.

I removed the .rootmap files from the lib directory and recompiled as you suggested but the problem is still there. I tried a make clean before recompiling but that does not fix it either.

Do you have any other suggestions or is there any other info that I should provide you with?

Pat

could you send the output of
grep TGeoMatHandler $ROOTSYS/lib/*.rootmap

Could you also run with root -n
and send me the instructions (commands, script) thatI can use to reproduce this problem?

Rene

[pryan@holsten ~]$ grep TGeoMatHandler $ROOTSYS/lib/*.rootmap
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandler: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerId: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerX: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerY: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerZ: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerXY: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerXZ: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerYZ: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerXYZ: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerRot: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerRotTr: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerScl: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerTrScl: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerRotScl: libGeom.so libRIO.so
/usr/local/root/lib/libGeom.rootmap:Library.TGeoMatHandlerRotTrScl: libGeom.so libRIO.so

When I start with root -n I get the same warning messages.

Also, I get these messages simply by starting root at the command line. No scripts or macros run. If I try to start a TBrower, I get the following errors (which may or may not be useful)

root [0] new TBrowser
dlopen error: /usr/local/lib/root/libGui.so: undefined symbol: gFile
Load Error: Failed to load Dynamic link library /usr/local/lib/root/libGui.so
Error in TCint::AutoLoad: failure loading library libGui.so for class TRootGuiFactory
Error in TPluginHandler::SetupCallEnv: class TRootGuiFactory not found in plugin Gui
Error in TCint::AutoLoad: failure loading library libGX11TTF.so for class TGX11TTF

*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib/tls/libthread_db.so.1”.
Attaching to program: /proc/1694/exe, process 1694
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread -1208850752 (LWP 1694)]
(no debugging symbols found)…done.
(no debugging symbols found)…done.
0x00bae7a2 in _dl_sysinfo_int80 ()
from /lib/ld-linux.so.2
#1 0x0082f7d3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2 0x007d9649 in do_system () from /lib/tls/libc.so.6
#3 0x0079e8bd in system () from /lib/tls/libpthread.so.0
#4 0x002bf1b7 in TUnixSystem::Exec () from /usr/local/root/lib/libCore.so
#5 0x002c487d in TUnixSystem::StackTrace () from /usr/local/root/lib/libCore.so
#6 0x002c1591 in TUnixSystem::DispatchSignals () from /usr/local/root/lib/libCore.so
#7 0x002c1698 in SigHandler () from /usr/local/root/lib/libCore.so
#8 0x002c0889 in sighandler () from /usr/local/root/lib/libCore.so
#9
#10 0x0020d23f in TApplication::InitializeGraphics () from /usr/local/root/lib/libCore.so
#11 0x00217480 in TBrowser::TBrowser () from /usr/local/root/lib/libCore.so
#12 0x0030fde7 in G__G__Base1_64_0_3 () from /usr/local/root/lib/libCore.so
#13 0x00bfdc4b in Cint::G__ExceptionWrapper () from /usr/local/root/lib/libCint.so
#14 0x00cb2088 in G__call_cppfunc () from /usr/local/root/lib/libCint.so
#15 0x00c998ee in G__interpret_func () from /usr/local/root/lib/libCint.so
#16 0x00c8897e in G__getfunction () from /usr/local/root/lib/libCint.so
#17 0x00cb0ca2 in G__new_operator () from /usr/local/root/lib/libCint.so
#18 0x00cd70fb in G__exec_statement () from /usr/local/root/lib/libCint.so
#19 0x00c5bdcc in G__exec_tempfile_core () from /usr/local/root/lib/libCint.so
#20 0x00c5c010 in G__exec_tempfile_fp () from /usr/local/root/lib/libCint.so
#21 0x00cdf218 in G__process_cmd () from /usr/local/root/lib/libCint.so
#22 0x00294688 in TCint::ProcessLine () from /usr/local/root/lib/libCore.so
#23 0x0020f0fa in TApplication::ProcessLine () from /usr/local/root/lib/libCore.so
#24 0x00750f5d in TRint::HandleTermInput () from /usr/local/root/lib/libRint.so
#25 0x0074f6e4 in TTermInputHandler::Notify () from /usr/local/root/lib/libRint.so
#26 0x00751786 in TTermInputHandler::ReadNotify () from /usr/local/root/lib/libRint.so
#27 0x002bd936 in TUnixSystem::CheckDescriptors () from /usr/local/root/lib/libCore.so
#28 0x002c1ae8 in TUnixSystem::DispatchOneEvent () from /usr/local/root/lib/libCore.so
#29 0x0025e77c in TSystem::InnerLoop () from /usr/local/root/lib/libCore.so
#30 0x0025e71b in TSystem::Run () from /usr/local/root/lib/libCore.so
#31 0x0020f1e6 in TApplication::Run () from /usr/local/root/lib/libCore.so
#32 0x0074fe72 in TRint::Run () from /usr/local/root/lib/libRint.so
#33 0x08048d36 in main ()

Now I am lost !
In which conditions do you get the errors reported in your first post?
Did you set the LD_LIBRARY_PATH ?

Rene

I wanted to install the latest version of root. So I unpacked the tar file, compiled it, and tried to run.

My library path:
[pryan@holsten ~]$ echo $LD_LIBRARY_PATH
/usr/local/root/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/globus/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/externals/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/externals/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/globus/lib:
/usr/local/lib:/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/usr/local/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/usr/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/lcg/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/globus/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/edg/lib:
/usr/local/lib:/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/glite/externals/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/d-cache/dcap/lib:
/afs/.cern.ch/project/gd/LCG-share/3.0.21-0/glite/lib:
/afs/cern.ch/project/gd/LCG-share/3.0.21-0/edg/externals/lib

For info. This problem is now understood and will be fixed shortly by Fons.

Rene

The solution to the problem was that since Pat had installed ROOT using:

./configure --prefix=/usr/local

the ROOT etc directory in that case becomes /etc/root. However, this /etc/root contained still from a previous install a system.rootmap file, which is not needed anymore now. Just removing this old /etc/root/system.rootmap file solved the problem.

– Fons