Problem with Shared Libraries after ROOT 5.16 installation

Hi all,

I would like to switch to ROOT 5.16 on my Laptop (Kubuntu feisty fawn). It appears that after installing ROOT 5.16 from source and recompiling my own shared libraries, the latter cannot be loaded anymore and I am getting this error messages:

dlopen error: /opt/root/lib/libGX11TTF.so: undefined symbol: _ZN3TTF8fgGlyphsE
Load Error: Failed to load Dynamic link library /opt/root/lib/libGX11TTF.so
Error in <TCint::AutoLoad>: failure loading library libGX11TTF.so for class TGX11TTF

 *** Break *** segmentation violation
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Attaching to program: /proc/31428/exe, process 31428
[Thread debugging using libthread_db enabled]
[New Thread -1225090272 (LWP 31428)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/31428/exe, process 31428

loading them with ROOT 5.12 worked fine and the same procedure also works with the afs versions of ROOT 5.14 and also 5.16. I assume something is missing on my laptop but I dont know exactly what, must be some TrueType Fonts things.

ROOTSYS, LD_LIBRARY_PATH and PATH should be set correctly:

export ROOTSYS=/opt/root
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:$ROOTSYS/lib
export PATH=PATH:$ROOTSYS/bin

Executing ./configure in $ROOTSYS gives:

Configuring for linux
Checking for libX11 ... /usr/lib
Checking for X11/Xlib.h ... /usr/include
Checking for X11/Xft/Xft.h ... /usr/include
Checking for libXpm ... /usr/lib
Checking for libXft ... /usr/lib
Checking whether to build included libfreetype6 ... yes
Checking whether to build included libpcre ... yes
Checking whether to build included zlib ... yes
Checking for GL/gl.h ... /usr/include
Checking for libGL, or libMesaGL ... /usr/lib
Checking for libGLU, or libMesaGLU ... /usr/lib
Checking for mysql_config ... not found
Checking for mysql.h ... no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient ... no
Checking for occi.h ... no
Checking for libclntsh, or oci ... no
Checking for libocci, or oraocci10 ... no
Checking for libpq-fe.h ... no
Checking for libpq ... no
Checking for sql.h ... no
Checking for libsqlod ... no
Checking for sqlext.h ... no
Checking for libiodbc, libodbc, or odbc32 ... no
Checking for rfio_api.h ... no
Checking for librfio, libshift, shiftmd, or shift ... no
Checking for rfio_api.h ... no
Checking for stager_api.h ... no
Checking for libshift, shiftmd, or shift ... no
Checking for gfal_api.h ... no
Checking for libgfal ... no
Checking for G4Navigator.hh ... no
Checking for libG4navigation ... no
Checking for CLHEP/Vector/Rotation.h ... no
Checking for ApMon.h ... no
Checking for libapmoncpp ... no
Checking for monalisawsclient.h ... no
Checking for libmonalisawsclient ... no
Checking for fftw3.h ... no
Checking for libfftw3, or libfftw3-3 ... no
Checking for libpacklib_noshift, libpacklib, packmd, or packlib ... /usr/lib
Checking for libkernlib_noshift, libkernlib, kernmd, or kernlib ... /usr/lib
Checking for rfio in /usr/lib/libpacklib.so ... no
Checking for libPythia6 ... no
Checking for dcap.h ... no
Checking for libdcap ... no
Checking for chirp_client.h ... no
Checking for libchirp_client ... no
Checking for gapiUI.h ... no
Checking for libgapiUI ... no
Checking for jpeglib.h ... /usr/local/include
Checking for png.h ... no
Checking for tiffio.h ... no
Checking for gif_lib.h ... no
Checking for libjpeg ... /usr/local/lib
Checking for libtiff ... no
Checking for libungif ... no
Checking for libz ... /usr/lib
Checking for libpng ... no
Checking whether to build included libAfterImage ... yes
Checking for ldap.h ... no
Checking for libldap ... no
Checking for python/Python.h, python2.5/Python.h, python2.4/Python.h, python2.3/Python.h, python2.2/Python.h, or Python.h ... /usr/include
Checking for libpython, libpython2.5, libpython2.4, libpython2.3, libpython2.2, python25, python24, python23, or Python ... /usr/lib
Checking for xml2-config ... not found
Checking for libxml/tree.h ... no
Checking for libxml2_a, or libxml2 ... no
Checking whether to build xrootd ... yes
Checking for libssl ... no
Checking for t_server.h ... no
Checking for libsrp ... no
Checking for libgmp ... no
Checking for libmisc ... no
Checking for pwauth.h ... no
Checking for krb5.h ... no
Checking for libk5crypto ... no
Checking whether we're using MIT Kerberos ... no
Checking for shadow passwords ... yes
Checking for gsl/gsl_version.h ... no
Checking for gsl-config ... not found
Checking whether to build libMathMore ... no
Checking whether to build libMathCore ... yes
Checking whether to build CINT7 ... no
Checking whether to build libCintex ... yes
Checking whether to build libReflex ... yes
Checking whether to build libRooFit ... no
Checking whether to build libMinuit2 ... no
Checking whether to build libUnuran ... no
Checking whether to build libGdml ... no
Checking whether to build libTable ... no
Checking for Clarens support ... no
Checking for PEAC support ... no
Generating cint dictionaries.
Checking whether setresuid declared in /usr/include/unistd.h ... yes
Writing config/Makefile.config ... done
Writing include/RConfigure.h ... done
Writing bin/root-config ... done
Writing etc/system.rootrc ... done
Writing etc/system.rootauthrc ... done
Writing etc/system.rootdaemonrc ... done
Writing etc/root.mimes ... done
Writing etc/daemons/rootd.rc.d ... done
Writing etc/daemons/rootd.xinetd ... done
Writing etc/daemons/proofd.rc.d ... done
Writing etc/daemons/proofd.xinetd ... done
Writing etc/daemons/xrootd.rc.d ... done
Writing etc/daemons/olbd.rc.d ... done
Writing bin/memprobe ... done
Writing build/misc/root-help.el ... done
Writing macros/html.C ... done
Writing bin/thisroot.sh ... done
Writing bin/thisroot.csh ... done
Writing config.status ... done

Enabled support for asimage, astiff, builtin_afterimage, builtin_freetype, builtin_pcre, builtin_zlib, cern, cintex, exceptions, mathcore, opengl, pch, python, reflex, shadowpw, shared, xft, xrootd.

To build ROOT type:

   make

Thanks a lot in advance!

Cheers, Daniel

I have a similar problem. I am running root 5.16 compiled from source on Ubuntu 7.10. If i just run root and then try to open a TBrowser I get:

root [0] TBrowser b
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Attaching to program: /proc/20820/exe, process 20820
[Thread debugging using libthread_db enabled]
[New Thread -1224615136 (LWP 20820)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/20820/exe, process 20820

If you can resolve this, please contact me: reece@cern.ch

I do not know if it is the same problem, probably not, but this worked for me:

load the library libGraf.so in your logon script:

gSystem->Load("libGraf.so");

Cheers Daniel

Hi… i have the same problem, but gSystem->Load(“libGraf.so”); didn’t help me. I dont know how/where to edit the logon-script, so i executed the command in cint. When I start TBrowser afterwards, it crashes with:

root [0] gSystem->Load("libGraf.so");
root [1] TBrowser b;
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Attaching to program: /proc/6560/exe, process 6560
[Thread debugging using libthread_db enabled]
[New Thread -1225069792 (LWP 6560)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/6560/exe, process 6560

Greetings,
Thomas

Could you move to version 5.17/04 instead of 5.16.
Version 5.16 had several problems with the GUI and browser.

Rene

Hi… i’d like to keep 5.16 in order to have the same root versions on my laptop and my workstation and the workstation of my colleagues.

But I tried 5.17/04 and the problem occours later in the new version. I can start a TBrowser, and browse some histograms, until it crashes after a while, with exactly the same error message.

Ilka or Bertrand will follow your problem.

Rene

Hi,

I will investigate, but I have a few questions:

  • which architecture (amd64, ia32)?
  • how did you install (source from CVS, from tarball)?
  • build in debug or optimized mode?
  • does it crash only with TBrowser (can you try gui tutorials)?

Bertrand.

Hi,

Because the reported problems are on Kubuntu feisty fawn and Ubuntu 7.10 I sent an e-mail to Christian Holm Christensen (our expert for ROOT Debian GNU/Linux and Ubuntu packages) pointing this topic yesterday.

Cheers, Ilka

Hi all,

First off, I have no idea why it fails for you. Check that you don’t have old libraries lying around. Check that your compiles are clean.

Another option is to use the precompiled binary Ubuntu packages at

They are available for gutsy on i386 and amd64. If you cannot use these, then rebuild the packages yourself by

[ul]Add

to your /etc/apt/sources.list.d/root.list [/ul]
[ul] Do

to install build requirements.[/ul]
[ul] Then rebuild the packages with

[/ul]
[ul] You should then have some 30 packages you can install. Either run dpkg -i directly on the packages, or set up a local repository using f. ex. reprepro.
[/ul]

If you build the packages on feisty or the like, please make them publicly available, and I’ll put them in the repository.

Please also refer to my recent post on the roottalk mailing-list concerning ROOT Debian/Ubuntu packages.

Yours,

Hi All,

I compiled ROOT from tarball un Ubuntu 7.10.
Everything worked fine, but when I tried building with ./configure --enable-roofit, it gives me some problems.
When I try to load many library, such as

gSystem->Load(“libTreePlayer.so”);
gSystem->Load(“libTree.so”);
gSystem->Load(“libTreeViewer.so”);
gSystem->Load(“libTMVA.so”);
gSystem->Load(“libRooFitCore.so”);
gSystem->Load(“libRooFit.so”);

It gives me

Using host libthread_db library “/lib/tls/i686/cmov/libthread_db.so.1”.
Attaching to program: /proc/2902/exe, process 2902
[Thread debugging using libthread_db enabled]
[New Thread -1225598176 (LWP 2902)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/2902/exe, process 2902

can anybody help me? I’d need to stay on ROOT 5.16 because of having the same version on my laptop and the pc in my office
Thx

Pietro Biassoni

Pietro,

Before loading libRooFit, add
gSystem->Load(“libThread”);
gSystem->Load(“libHtml”);

Rene

Dear Rene,
thank for your reply, unfortunately, this doesn’t work

If i build root with roofit disabled, everything works, but if i do
./configure --enable-roofit, everything stops working, in particular

#include "tmva/TMVAGui.C"
and

gSystem->Load(“libTreePlayer.so”);
gSystem->Load(“libTreeViewer.so”);
gSystem->Load(“libTMVA.so”);
gSystem->Load(" libRooFitCore.so");
gSystem->Load(“libRooFit.so”);

doesn’t works even if I do only

gSystem->Load(“libTreePlayer.so”);

without loading roofit libs, this happen also if I load first of all libabries you told me…

The error is always the same
Using host libthread_db library “/lib/tls/i686/cmov/libthread_db.so.1”.
Attaching to program: /proc/2902/exe, process 2902
[Thread debugging using libthread_db enabled]
[New Thread -1225598176 (LWP 2902)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/2902/exe, process 2902

Is there any way I can manage it?

Thx

Pietro Biassoni

Could you send the shortest possible RUNNING script reproducing your problem and including the instructions in my previous message?

Rene

Dear Rene,
the problem appears when I run rootlogon, I give you the script

{

cout << endl
<< " *********************************" << endl
<< " * *" << endl
<< " * ROOT Version " << gROOT->GetVersion() << " *" << endl
<< " * *" << endl
<< " *********************************" << endl;

// use the ‘plain’ style for plots (white backgrounds, etc)
cout << endl << “…using style ‘Plain’” << endl;
gROOT->SetStyle(“Plain”);

// load shared libraries from the current release
// (see comments for loadSrtLib in RooAlias.C)
// for example:
cout << "Loading libraries… ";
gSystem->Load(“libProof.so”);
gSystem->Load(“libTreePlayer.so”);
gSystem->Load(“libTree.so”);
gSystem->Load(“libTreeViewer.so”);
gSystem->Load(“libTMVA.so”);
gSystem->Load(“libRooFitCore.so”);
gSystem->Load(“libRooFit.so”);
gSystem->Load(“libPhysics.so”);

// CoreSelector library
gSystem->Load(“libCoreSelector.so”);
// pointer to global CoreSelector
CoreSelector *gCoreSelector = CoreSelectorImpl::Impl();
cout << “Use global pointer gCoreSelector.” << endl;

// Inizialize MiMacros
MiMacros::DrawVars();

cout << “Done!” << endl;

}

here CoreSelector and MiMacros are user-defined lib and macros, if you build root and launch it you’ll have that he can’t find libRootFit etc.
If you compile with roofit enable you get


  •                           *
    
  • ROOT Version 5.16/00      *
    
  •                           *
    

…using style 'Plain’
Using host libthread_db library “/lib/tls/i686/cmov/libthread_db.so.1”.
Attaching to program: /proc/6429/exe, process 6429
[Thread debugging using libthread_db enabled]
[New Thread -1225589984 (LWP 6429)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/6429/exe, process 6429

Thank you for your help

Could you execute the following commands one by one (without the semi colon at the end) and tell me the result of each instruction.

root -n gSystem->Load("libProof.so") gSystem->Load("libTreePlayer.so") gSystem->Load("libTree.so") gSystem->Load("libTreeViewer.so") gSystem->Load("libTMVA.so") gSystem->Load("libRooFitCore.so") gSystem->Load("libRooFit.so") gSystem->Load("libPhysics.so")

Rene

Dear Rene,
I thank you again for your help,
I tried what you told me in your last post but I got the same error when typing

gSystem->Load(“libTreePlayer.so”)

then I tried to copy libroofit from my office pc to my desktop, but it didn’t work
Finally, after copying these libabries, i recompiled root and now, magically, works…

I can’t explain it, but for now, for me is ok… I hope someone find a bug fixing to this problem!

Thx

Pietro Biassoni

It is difficult to fix a problem if we do not know what the problem is.
It looks like you had a corrupted installation before.

Rene

deleted