Error while loading shared libraries

humm ā€¦ then the problem is likely to be that you did not regenerate the cintdlls (cd $ROOTSYS; gmake cintdlls).

Cheers,
Philippe.

Okay, I did this, and reran ldconfig. I now have

ldd /usr/local/root/bin/rootcint
libCint.so => /usr/local/root/lib/libCint.so (0x00002aaaaaaad000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003f68200000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003f6a400000)
libm.so.6 => /lib64/libm.so.6 (0x0000003f68000000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003f6a200000)
libc.so.6 => /lib64/libc.so.6 (0x0000003f67d00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f67b00000)

(root.exe also points to the same libCint.so)

and /usr/local/root/lib/libCint.so is the one just created, but unfortunately I still get the same errors trying to run rootcint :frowning:

[quote]Okay, I did this,[/quote]I assume you mean ā€˜gmake cintdllsā€™.
Next what happens if you try running rootcint in gdb? Aka once it fails, what is the result of

[code] > shared

where
[/code]
Also you mentioned that root.exe was core dumping when exiting. What are the same information (shared, where) when you run root.exe in gdb?

Cheers,
Philippe

yes, I remade cintdlls

gdb /usr/local/root/bin/root.exe
ā€¦
ā€¦
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912546025184 (LWP 16536)]
0x00002aaaaacbc7a3 in TROOT::RemoveClass () from /usr/local/root/lib/libCore.so
(gdb) shared
Symbols already loaded for /lib64/ld-linux-x86-64.so.2
Symbols already loaded for /usr/local/root/lib/libCore.so
Symbols already loaded for /usr/local/root/lib/libCint.so
Symbols already loaded for /usr/local/root/lib/libHist.so
Symbols already loaded for /usr/local/root/lib/libGraf.so
Symbols already loaded for /usr/local/root/lib/libGraf3d.so
Symbols already loaded for /usr/local/root/lib/libGpad.so
Symbols already loaded for /usr/local/root/lib/libTree.so
Symbols already loaded for /usr/local/root/lib/libMatrix.so
Symbols already loaded for /usr/local/root/lib/libRint.so
Symbols already loaded for /lib64/libdl.so.2
Symbols already loaded for /usr/lib64/libstdc++.so.6
Symbols already loaded for /lib64/libm.so.6
Symbols already loaded for /lib64/libgcc_s.so.1
Symbols already loaded for /lib64/libpthread.so.0
Symbols already loaded for /lib64/libc.so.6
Symbols already loaded for /lib64/libcrypt.so.1
Symbols already loaded for /usr/local/root/lib/libCore.so.5.06
Symbols already loaded for /usr/local/root/lib/libCint.so.5.06
Symbols already loaded for /lib64/libnss_files.so.2
Symbols already loaded for /usr/local/root/cint/stl/vector.dll
Symbols already loaded for /usr/local/root/lib/libvectorDict.so
Symbols already loaded for /usr/local/root/cint/include/stdfunc.dll
Symbols already loaded for /usr/local/root/lib/libMinuit.so
Symbols already loaded for /usr/local/root/lib/libPostscript.so
Symbols already loaded for /usr/local/root/lib/libHtml.so
(gdb) where
#0 0x00002aaaaacbc7a3 in TROOT::RemoveClass ()
from /usr/local/root/lib/libCore.so
#1 0x00002aaaaad1e308 in TClass::~TClass$base ()
from /usr/local/root/lib/libCore.so
#2 0x00002aaaaafadf26 in TQClass::~TQClass$delete ()
from /usr/local/root/lib/libCore.so
#3 0x00002aaaaacf8aea in TCollection::GarbageCollect ()
from /usr/local/root/lib/libCore.so
#4 0x00002aaaaad0d01d in TList::Delete () from /usr/local/root/lib/libCore.so
#5 0x00002aaaace69b16 in __tcf_0 () from /usr/local/root/lib/libCore.so.5.06
#6 0x0000003f67d31cbc in __cxa_finalize () from /lib64/libc.so.6
#7 0x00002aaaacde63a3 in __do_global_dtors_aux ()
from /usr/local/root/lib/libCore.so.5.06
#8 0x00007fffffbf2a60 in ?? ()
#9 0x00002aaaad312541 in _fini () from /usr/local/root/lib/libCore.so.5.06
#10 0x0000000000000001 in ?? ()
#11 0x0000003f67b0d0f3 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
Previous frame inner to this frame (corrupt stack?)

When running gdb on rootcint, I get:
/usr/local/root/bin/rootcint: error while loading shared libraries: libCint.so: cannot open shared object file: No such file or directory

Program exited with code 0177.

Doing a ā€œsharedā€ or ā€œwhereā€ gives no information.

[quote]Symbols already loaded for /usr/local/root/lib/libCore.so
Symbols already loaded for /usr/local/root/lib/libCint.so
ā€¦
Symbols already loaded for /usr/local/root/lib/libCore.so.5.06
Symbols already loaded for /usr/local/root/lib/libCint.so.5.06 [/quote]This is odd. And looking at the result of ldd more carefully. I saw:

[quote]libCore.so => /usr/local/root/lib/libCore.so (0x00002aaaaaaad000)
libCore.so.5.06 => /usr/local/root/lib/libCore.so.5.06 (0x00002aaaacc39000) [/quote]aka. libCore is loaded twice at 2 different addresseses.

Something somewhere is not properly installed/build. I would do:

  • rm -rf /usr/local/root
  • redownload root (and/or gmake distclean)
  • run configure
  • gmake
  • etc ā€¦

Cheers,
Philippe.

Okay, I removed the installation, removed my source directory and re-unpacked the tarball, recompiled and reinstalled. root.exe no longer seg faults when quitting, but Iā€™m still have the same problem with rootcint error loading the shared object file.

Sorry this is such a pain!

Now I have:

ldd /usr/local/root/bin/rootcint
libCint.so => /usr/local/root/lib/libCint.so (0x00002aaaaaaad000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003f68200000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003f6a400000)
libm.so.6 => /lib64/libm.so.6 (0x0000003f68000000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003f6a200000)
libc.so.6 => /lib64/libc.so.6 (0x0000003f67d00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f67b00000)

ldd /usr/local/root/bin/root.exe
libCore.so => /usr/local/root/lib/libCore.so (0x00002aaaaaaad000)
libCint.so => /usr/local/root/lib/libCint.so (0x00002aaaab4a8000)
libHist.so => /usr/local/root/lib/libHist.so (0x00002aaaab8b5000)
libGraf.so => /usr/local/root/lib/libGraf.so (0x00002aaaabcaf000)
libGraf3d.so => /usr/local/root/lib/libGraf3d.so (0x00002aaaac068000)
libGpad.so => /usr/local/root/lib/libGpad.so (0x00002aaaac27c000)
libTree.so => /usr/local/root/lib/libTree.so (0x00002aaaac4a0000)
libMatrix.so => /usr/local/root/lib/libMatrix.so (0x00002aaaac7a4000)
libRint.so => /usr/local/root/lib/libRint.so (0x00002aaaacad6000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003f68200000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003f6a400000)
libm.so.6 => /lib64/libm.so.6 (0x0000003f68000000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003f6a200000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003f68800000)
libc.so.6 => /lib64/libc.so.6 (0x0000003f67d00000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003f6f000000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f67b00000)

libCint.so and libCore.so are new.

[quote]but Iā€™m still have the same problem with rootcint error loading the shared object file[/quote]The previous error was:

Are you getting the same exact error message?

Philippe

Hi Philippe,

Problem solvedā€¦ it must have been a permissions problem as you initially suspected, although Iā€™m still unclear how I had permissions problems as suā€¦ perhaps I did not have as many privileges as su as I thoughtā€¦ the problem was solved when I compiled in a directory I control.

Thanks very much for your all your prompt replies yesterday, and sorry for the run-around.

Cheers,
David

I am having similar problems to the person who started this thread so I thought it best to post here. I am running Fedora Core 3. I just completed an install of root from the source using the following commands.

./configure --prefix=/usr/local --enable-soversion
gmake
gmake cintdlls
gmake install (for this i had to su to become root)

If I then type root, i recieve the following error and the freeze on the splash screen:

/usr/local/bin/root.exe: error while loading shared libraries: libCore.so.5.12: cannot open shared object file: No such file or directory

root.exe does not run, nor will cint which gives essentailly the same error:

/usr/local/bin/cint: error while loading shared libraries: libCint.so.5.12: cannot open shared object file: No such file or directory

I do have permission to read and execute that library. I have also tried downloading a fresh copy of the tarball and have reinstalled a couple times with the same results. Does anyone have any suggestions for me or is there any more information that might be helpfull? Thanks

Brian

Hi Brian,

please post the output of ldd root.exe, ls -l $ROOTSYS/lib/libCint.*, and the start of gdb root.exe (where it shows which libs it loads).

Cheers, Axel.

Axel, the outputs are below. Thanks for your help.

-Brian

ldd root.exe
linux-gate.so.1 => (0x003f3000)
libCore.so.5.12 => not found
libCint.so.5.12 => not found
libHist.so.5.12 => not found
libGraf.so.5.12 => not found
libGraf3d.so.5.12 => not found
libGpad.so.5.12 => not found
libTree.so.5.12 => not found
libMatrix.so.5.12 => not found
libRint.so.5.12 => not found
libdl.so.2 => /lib/libdl.so.2 (0x00b4e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00cf5000)
libm.so.6 => /lib/libm.so.6 (0x00b27000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00cc4000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00c87000)
libc.so.6 => /lib/libc.so.6 (0x009f2000)
/lib/ld-linux.so.2 (0x009d5000)

ls -l $ROOTSYS/lib/libCint.*

lrwxrwxrwx 1 stein stein 14 Oct 16 22:36 libCintex.so -> libCintex.so.5
lrwxrwxrwx 1 stein stein 17 Oct 16 22:36 libCintex.so.5 -> libCintex.so.5.12
-rwxrwxr-x 1 stein stein 215292 Oct 16 22:18 libCintex.so.5.12
lrwxrwxrwx 1 stein stein 12 Oct 16 22:36 libCint.so -> libCint.so.5
lrwxrwxrwx 1 stein stein 15 Oct 16 22:36 libCint.so.5 -> libCint.so.5.12
-rwxrwxr-x 1 stein stein 2330167 Oct 16 21:58 libCint.so.5.12

gdb root.exe

Breakpoint 1 at 0x8048ce4
Starting program: /usr/local/bin/root.exe
Reading symbols from shared object read from target memoryā€¦(no debugging symbols found)ā€¦done.
Loaded system supplied DSO at 0x2be000
(no debugging symbols found)
/usr/local/bin/root.exe: error while loading shared libraries: libCore.so.5.12: cannot open shared object file: No such file or directory

Program exited with code 0177.

I feel rather stupid, but I figured it out. The disk my /opt and /usr/local directories (among others) are on is full. Somehow there was just enough space to keep there from being an install error, but not for all the files to write. Weā€™ll see how things work after I reallocate some space. Thanks for your help Axel,

Brian

I got the a similar error to that described in this thread:

/contrib/root/bin/root.exe: error while loading shared libraries: libCore.so.5.18: cannot open shared object file: No such file or directory

All I needed to do to fix this was set LD_LIBRARY_PATH to include the root lib dir:

export LD_LIBRARY_PATH=/contrib/root/lib/root

This is in the root documentation.

  • Paul

Hi

I had the same errors in an installation which according to the administrator
he had followed the 2nd method of the
"Choosing the installation method" README file (i.e. according to the documentation
should not depend on the ROOTSYS and special PATH and LD_LIBRARY_PATH variable).

Setting the
export LD_LIBRARY_PATH=/usr/local/lib

solved eventually the problems. But do you have any ideas why this was needed
when root has been installed using the 2nd method?

Thanks!

Hi,

This is because on your system /usr/local/lib is not one of the default library directory.

Cheers,
Philippe

[quote=ā€œdsteeleā€]Iā€™m getting the following error trying to run rootcint:

/usr/local/root/bin/rootcint: error while loading shared libraries: libCint.so.5.06: cannot open shared object file: No such file or directory
make[1]: *** [out/root_dict.cpp] Error 127

The full command Iā€™m using is:
/usr/local/root/bin/rootcint -v -f out/root_dict.cpp -c -p -Iā€¦/common/include -Iinclude -I. -D_OAWG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__extension__="" -D__attribute__\(X\)="" -D__const=const -D__restrict="" -D__signed=signed -D__volatile=volatile -D__BEGIN_DECLS= -D__END_DECLS= -D__THROW= include/VAArrayInfo.h include/VAConfigurationData.h include/VACoordinateData.h include/VADataClasses.h include/VAParameterData.h include/VAPixelStatusData.h include/VAQStatsData.h include/VARelGainData.h include/VARootIO.h include/VARunHeader.h include/VAShowerData.h include/VASimulationDataClasses.h include/VATelescopeData.h include/VATime.h include/VATOffsetData.h include/LinkDef.h

YES, I have $ROOTSYS/lib exported to my LD_LIBRARY_PATH.

Any ideas what is wrong?[/quote]

[quote=ā€œpcanalā€]Did you check that there is a file named /usr/local/root/lib/libCint.so.5.06?
If there isnā€™t then you install is not properly done.

Philippe[/quote]

I am having the same error as above. But I do not have the file libCint.so.5.06
I reinstalled ROOT 3 times, but no luck. My ROOT version is 5.27/06 and I m using Fedora 14.

/home/yerbol/root/bin/rootcint -v -f out/root_dict.cpp -c -p -Iā€¦/common/include -Iinclude -I. -Iā€¦/cfitsio/include -D_OAWG -D_OAWG_DIR=""pwd"" -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__extension__="" -D__attribute__\(X\)="" -D__const=const -D__restrict="" -D__signed=signed -D__volatile=volatile -D__BEGIN_DECLS= -D__END_DECLS= -D__THROW= include/VAArrayInfo.h include/VAAzElRADecXY.h include/VAChiLASimulationData.h include/VAConfigFileText.h include/VAConfigurationData.h include/VACoordinateData.h include/VACoordinatePair.h include/VACutsFileText.h include/VADataClasses.h include/VAKascadeSimulationData.h include/VAMCShowerData.h include/VAParameterData.h include/VAPixelStatusData.h include/VAPlaneToPlane.h include/VAPlotCam.h include/VAQStatsData.h include/VARange.h include/VARatesData.h include/VARelGainData.h include/VARootIO.h include/VARunHeader.h include/VAShowerData.h include/VASimulationDataClasses.h include/VASlalib.h include/VASlamac.h include/VAStarCat.h include/VAStar.h include/VATelescopeData.h include/VATime.h include/VATOffsetData.h include/VAVDF.h include/LinkDef.h
/home/yerbol/root/bin/rootcint: error while loading shared libraries: libCint.so: cannot open shared object file: No such file or directory
make[1]: *** [out/root_dict.cpp] Error 127

Does anyone know what is wrong?
Here re some checks, if required.

ldd /usr/local/root/bin/rootcint
linux-gate.so.1 => (0x00ae9000)
libCint.so => /home/yerbol/root/lib/libCint.so (0x00211000)
libdl.so.2 => /lib/libdl.so.2 (0x00acf000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0738c000)
libm.so.6 => /lib/libm.so.6 (0x00110000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b25000)
libc.so.6 => /lib/libc.so.6 (0x0091b000)
/lib/ld-linux.so.2 (0x008f7000)

ldd /usr/local/root/bin/root.exe
linux-gate.so.1 => (0x00305000)
libCore.so => /home/yerbol/root/lib/libCore.so (0x00919000)
libCint.so => /home/yerbol/root/lib/libCint.so (0x00306000)
libMathCore.so => /home/yerbol/root/lib/libMathCore.so (0x00110000)
libRint.so => /home/yerbol/root/lib/libRint.so (0x029a4000)
libdl.so.2 => /lib/libdl.so.2 (0x002dc000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0738c000)
libm.so.6 => /lib/libm.so.6 (0x01a01000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x002e1000)
libpthread.so.0 => /lib/libpthread.so.0 (0x03be8000)
libc.so.6 => /lib/libc.so.6 (0x0601b000)
libz.so.1 => /lib/libz.so.1 (0x02863000)
libncurses.so.5 => /lib/libncurses.so.5 (0x07d98000)
libtinfo.so.5 => /lib/libtinfo.so.5 (0x07c1a000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x07501000)
/lib/ld-linux.so.2 (0x008f7000)
libfreebl3.so => /lib/libfreebl3.so (0x07533000)

ldd /usr/local/root/bin/root
linux-gate.so.1 => (0x002dd000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0x001f8000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00d8c000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x002de000)
libXft.so.2 => /usr/lib/libXft.so.2 (0x0756a000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0738c000)
libm.so.6 => /lib/libm.so.6 (0x00ae2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b25000)
libc.so.6 => /lib/libc.so.6 (0x0091b000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00d42000)
libdl.so.2 => /lib/libdl.so.2 (0x00acf000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00dc9000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00110000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x0045c000)
/lib/ld-linux.so.2 (0x008f7000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00d3d000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00d62000)

yerbol

/home/yerbol/root/bin/rootcint: error while loading shared libraries: libCint.so: cannot open shared object file: No such file or directory .... ldd /usr/local/root/bin/rootcint linux-gate.so.1 => (0x00ae9000) libCint.so => /home/yerbol/root/lib/libCint.so (0x00211000) this is very strange :frowning:. A priori the observation can be not happen at the same time (they should be consisten) so I have no clue what the problem might be (What is the content of $ROOTSYS/config.status)?

Philippe.

Hi,

but of course itā€™s also weird that he has rootcint in /usr/local and libCint in ~/ā€¦ I.e. I believe your PATH / LD_LIBRARY_PATH is not set up correctly: there are two ROOT installations in there, and the wrong one comes first.

As you can see, all these issues arrived from building with --prefix. Instead we recommend to not build with prefix and source bin/thisroot.sh, relying only on environment variables. This allows you to have multiple ROOT versions around.

Anyway, for an installation with prefix the web page root.cern.ch/drupal/content/inst ā€¦ oot-source says very explicitly that you should edit /etc/ld.so.conf or similar so the loader can find the libraries.

Cheers, Axel.

I had exactly the same problem when compiling GO4 application, which is using root libraries. I have root version 5.32.03. Somewhere during build process rootcint reported it cannot find libCint.so, although it was present in /usr/local/root/lib and this directory was in LD_LIBRARY_PATH.
The problem was solved running make command directly from root account, NOT just using sudo. Thank you David.

Thank you paul_hamil, it worked for me :slight_smile:

It is surprising that though I did location dependent installation where defining LD_LIBRARY_PATH is not needed, I had to define it in my .bashrc for making ROOT work.