<TUnixSystem::DynamicPathName> problem

Hi rooteers!
I patted my head too much, so I decide to ask help.
I downloaded the pre-compiled binaries (v5.22-gcc3.4) for SL4 and ROOT does work very well.The problem is about my own compiled programs. I wrote down many ROOT-based classes to do my own analyses.
Then I compiled them, each with the following command:
g++ root-config --cflags -I FileToCompile1.cpp -c -g
g++ root-config --cflags -I FileToCompile2.cpp -c -g

At the end I linked them in the following way:
g++ root-config --cflags --libs -I FileToCompile1.o FileToCompile2.o … main.cpp -o main.exe -g

Then execute:
./main.exe
And IT WORKS FINE!
Nevertheless, the following error messages appear at the end:

Error in <TUnixSystem::DynamicPathName>: libMatrix.so does not exist in /home/roberto/ROOT_CERN/root/lib/libCore.so /home/roberto/ROOT_CERN/root/lib/libMinuit.so -L$ROOTSYS/lib -lCore -lCint -lMathCore -lRint Error in <TCint::AutoLoad>: failure loading dependent library libMatrix.so for class TH1 Error in <TUnixSystem::DynamicPathName>: libHist.so does not exist in /home/roberto/ROOT_CERN/root/lib/libCore.so /home/roberto/ROOT_CERN/root/lib/libMinuit.so -L$ROOTSYS/lib -lCore -lCint -lMathCore -lRint Error in <TUnixSystem::DynamicPathName>: libMatrix.so does not exist in /home/roberto/ROOT_CERN/root/lib/libCore.so /home/roberto/ROOT_CERN/root/lib/libMinuit.so -L$ROOTSYS/lib -lCore -lCint -lMathCore -lRint Error in <TCint::AutoLoad>: failure loading library libHist.so for class TH1
When I invoke ldd, this is the answer:

[code]ldd $ROOTSYS/lib/libCore.so
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00b4b000)
libCint.so => /home/roberto/ROOT_CERN/root/lib/libCint.so (0x00b79000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00836000)
libm.so.6 => /lib/tls/libm.so.6 (0x00a90000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00760000)
libc.so.6 => /lib/tls/libc.so.6 (0x00942000)
/lib/ld-linux.so.2 (0x0092a000)

ldd $ROOTSYS/lib/libMinuit.so
libGraf.so => /home/roberto/ROOT_CERN/root/lib/libGraf.so (0x0053d000)
libHist.so => /home/roberto/ROOT_CERN/root/lib/libHist.so (0x00181000)
libMatrix.so => /home/roberto/ROOT_CERN/root/lib/libMatrix.so (0x006e2000)
libMathCore.so => /home/roberto/ROOT_CERN/root/lib/libMathCore.so (0x00942000)
libCore.so => /home/roberto/ROOT_CERN/root/lib/libCore.so (0x00fa2000)
libCint.so => /home/roberto/ROOT_CERN/root/lib/libCint.so (0x072ac000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00ac0000)
libm.so.6 => /lib/tls/libm.so.6 (0x00111000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00d11000)
libc.so.6 => /lib/tls/libc.so.6 (0x00b94000)
libRIO.so => /home/roberto/ROOT_CERN/root/lib/libRIO.so (0x00d1b000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00134000)
/lib/ld-linux.so.2 (0x0092a000)

ldd $ROOTSYS/lib/libMatrix.so
libMathCore.so => /home/roberto/ROOT_CERN/root/lib/libMathCore.so (0x00406000)
libCore.so => /home/roberto/ROOT_CERN/root/lib/libCore.so (0x00942000)
libCint.so => /home/roberto/ROOT_CERN/root/lib/libCint.so (0x00f91000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00111000)
libm.so.6 => /lib/tls/libm.so.6 (0x00861000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x001e5000)
libc.so.6 => /lib/tls/libc.so.6 (0x00584000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x006b0000)
/lib/ld-linux.so.2 (0x0092a000)[/code]
Let me conclude by adding that these messages occurr only when the TH1F::Fit(TF1*…) method is invoked.
Does anyone have any idea what is happening in my comp?
Thanks in advance,
Roberto

Hi,

A priori this problem has been fixed recently in the SVN trunk.
To work around the problem create a TApplication object in your main routine.

Cheers,
Philippe.

:smiley: Thanks! No longer error messages!:smiley:
I downloaded and compiled the SVN version 5.22.00.
Will this bug be fixed in the version 5.24.00?
Thanks
Roberto

Hi,

Yes it is fixed in v5.24.

Cheers,
Philippe