[ROOT 5.26 (5.27)] C++ application does not work

Hello.
After updating from ROOT 5.22 to 5.26 (5.27) my C++ application does not work any more.
When I try to run it I get the following error message:

dlopen error: /usr/local/lib/root/libGX11.so: undefined symbol: _ZNK9TVirtualX13GetFontAscentEv
Load Error: Failed to load Dynamic link library /usr/local/lib/root/libGX11.so
Error in TCint::AutoLoad: failure loading library libGX11.so for class TGX11
Error in TPluginHandler::SetupCallEnv: class TGX11 not found in plugin GX11
*** Interpreter error recovered ***

*** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00007fc49b684f3e in waitpid () from /lib/libc.so.6
#1 0x00007fc49b61c7e9 in ?? () from /lib/libc.so.6
#2 0x00007fc4a135fd21 in TUnixSystem::StackTrace() ()
from /usr/local/lib/root/libCore.so.5.22
#3 0x00007fc4a1360955 in TUnixSystem::DispatchSignals(ESignals) ()
from /usr/local/lib/root/libCore.so.5.22
#4
#5 0x00007fc4a1283a80 in TApplication::InitializeGraphics() ()
from /usr/local/lib/root/libCore.so.5.22
#6 0x00007fc4a1284789 in TApplication::TApplication(char const*, int*, char**, void*, int) () from /usr/local/lib/root/libCore.so.5.22
#7 0x0000000000412f18 in main (argc=1, argv=0x7fff361a8108)
at …/src/Driver.cpp:915

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007fc4a1283a80 in TApplication::InitializeGraphics() ()
from /usr/local/lib/root/libCore.so.5.22
#6 0x00007fc4a1284789 in TApplication::TApplication(char const*, int*, char**, void*, int) () from /usr/local/lib/root/libCore.so.5.22
#7 0x0000000000412f18 in main (argc=1, argv=0x7fff361a8108)
at …/src/Driver.cpp:915

Everything worked fine with ROOT 5.22

Thanks for help. :slight_smile:

Hi,

Something must have gone wrong in your installation (and/or setup of LDLIBRARY_PATH), the missing symbol (dlopen error: /usr/local/lib/root/libGX11.so: undefined symbol: _ZNK9TVirtualX13GetFontAscentEv ) is defined in libCore.so which is the essential part of ROOT.

Philippe.

My installation goes like this:

  1. ./configure linuxx8664gcc --prefix=/usr/local --enable-fftw3 --enable-gsl-shared --enable-mathmore --enable-minuit2 --enable-opengl --enable-roofit --enable-soversion --enable-rpath --enable-unuran

  2. make

  3. sudo make install

GSL 1.14 installed, compiled with: ./configure --with-pic

Hi,

Maybe you forgot to recompile your application:[quote]#2 0x00007fc4a135fd21 in TUnixSystem::StackTrace() ()
from /usr/local/lib/root/libCore.so.5.22 [/quote]shows that you are still using 5.22 in part of the loading.

Cheers,
Philippe.

Recompiled, but with no effect…

Hi,

What was your link line for you executable?
What is the result of ls -lart /usr/local/lib/root/libCore*

Philippe.

petmal@A4BOOK-Ubuntu:~$ ls -lart /usr/local/lib/root/libCore*
-rwxr-xr-x 1 petmal petmal 9689553 2009-08-09 08:11 /usr/local/lib/root/libCore.so.5.24
-rwxr-xr-x 1 root root 9355220 2009-08-09 13:26 /usr/local/lib/root/libCore.so.5.22
-rwxr-xr-x 1 petmal petmal 9624484 2010-05-07 08:52 /usr/local/lib/root/libCore.so.5.26
-rwxr-xr-x 1 petmal petmal 9765694 2010-05-07 10:07 /usr/local/lib/root/libCore.so.5.27
-rw-r–r-- 1 petmal petmal 12212 2010-05-07 10:59 /usr/local/lib/root/libCore.rootmap
lrwxrwxrwx 1 petmal petmal 15 2010-05-07 11:15 /usr/local/lib/root/libCore.so.5 -> libCore.so.5.27
lrwxrwxrwx 1 petmal petmal 12 2010-05-07 11:15 /usr/local/lib/root/libCore.so -> libCore.so.5

Hi,

What was your link line for you executable?

Philippe.

Compiler parameters:

-I/usr/local/include/root -O3 -g3 -Wall -c -fmessage-length=0 -m64

root-config --cflags --glibs` -lMinuit -lgsl -lgslcblas -lm

Everything works now. I just had to recompile the application.

Thanks for help.