Dlopen error

Hi,

I use root_v5.18.00.Linux.slc4.gcc3.4 on Red Hat 4.1.2-42 (gcc version 4.1.2).

When I draw a histogram, the dlopen error will occur like this:

[i]root [0] TH1F h=new TH1F(“h1”,“h1”,200,50,100)
root [1] h->Draw()
dlopen error: libungif.so.4: cannot open shared object file: No such file or dir
ectory
Load Error: Failed to load Dynamic link library /home/xhzhang/root/lib/libASImag
e.so
Error in TGHScrollBar::TGHScrollBar: arrow_
.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib/libthread_db.so.1”.
Attaching to program: /proc/5585/exe, process 5585
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread -1208056112 (LWP 5585)]
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.

(no debugging symbols found)
0x005a1402 in __kernel_vsyscall ()
#1 0x00632463 in __waitpid_nocancel () from /lib/libc.so.6
#2 0x005d7cdf in do_system () from /lib/libc.so.6
#3 0x005481dd in system () from /lib/libpthread.so.0
#4 0x00c1f9ef in TUnixSystem::Exec () from /home/xhzhang/root/lib/libCore.so
#5 0x00c253fd in TUnixSystem::StackTrace ()
from /home/xhzhang/root/lib/libCore.so
#6 0x00c220ba in TUnixSystem::DispatchSignals ()
from /home/xhzhang/root/lib/libCore.so
#7 0x00c22148 in SigHandler () from /home/xhzhang/root/lib/libCore.so
#8 0x00c21395 in sighandler () from /home/xhzhang/root/lib/libCore.so
#9
#10 0x01f348fb in TGHScrollBar::SetPosition ()
from /home/xhzhang/root/lib/libGui.so
#11 0x01e9f27d in TGCanvas::Layout () from /home/xhzhang/root/lib/libGui.so
#12 0x01e9eb5e in TGCanvas::MapSubwindows ()
from /home/xhzhang/root/lib/libGui.so
#13 0x01ed5d92 in TGCompositeFrame::MapSubwindows ()
from /home/xhzhang/root/lib/libGui.so
#14 0x01ed5d92 in TGCompositeFrame::MapSubwindows ()
from /home/xhzhang/root/lib/libGui.so
#15 0x01f885c7 in TRootCanvas::CreateCanvas ()
from /home/xhzhang/root/lib/libGui.so
#16 0x01f8c1e7 in TRootCanvas::TRootCanvas ()
from /home/xhzhang/root/lib/libGui.so
#17 0x01f933d0 in TRootGuiFactory::CreateCanvasImp ()
from /home/xhzhang/root/lib/libGui.so
#18 0x009a3c6a in TCanvas::Constructor ()
from /home/xhzhang/root/lib/libGpad.so
#19 0x009a3e96 in TCanvas::TCanvas () from /home/xhzhang/root/lib/libGpad.so
#20 0x009a66b4 in TCanvas::MakeDefCanvas ()
from /home/xhzhang/root/lib/libGpad.so
#21 0x009e0a90 in G__G__GPad_140_0_118 ()
from /home/xhzhang/root/lib/libGpad.so
#22 0x0014ba5f in Cint::G__ExceptionWrapper ()
from /home/xhzhang/root/lib/libCint.so
#23 0x00208327 in G__call_cppfunc () from /home/xhzhang/root/lib/libCint.so
#24 0x001ed8dd in G__interpret_func () from /home/xhzhang/root/lib/libCint.so
#25 0x001db9d4 in G__getfunction () from /home/xhzhang/root/lib/libCint.so
#26 0x001bfcb8 in G__getitem () from /home/xhzhang/root/lib/libCint.so
#27 0x001c28ff in G__getexpr () from /home/xhzhang/root/lib/libCint.so
#28 0x0022fff4 in G__exec_statement () from /home/xhzhang/root/lib/libCint.so
#29 0x001adb08 in G__exec_tempfile_core ()
from /home/xhzhang/root/lib/libCint.so
#30 0x001aee43 in G__exec_tempfile_fp () from /home/xhzhang/root/lib/libCint.so
#31 0x0023f7d4 in G__process_cmd () from /home/xhzhang/root/lib/libCint.so
#32 0x00bf2f5f in TCint::ProcessLine () from /home/xhzhang/root/lib/libCore.so
#33 0x00b60b66 in TApplication::ProcessLine ()
from /home/xhzhang/root/lib/libCore.so
#34 0x00b9f13e in TROOT::ProcessLine () from /home/xhzhang/root/lib/libCore.so
#35 0x00b9f211 in TROOT::MakeDefCanvas ()
from /home/xhzhang/root/lib/libCore.so
#36 0x00b854e8 in TObject::AppendPad () from /home/xhzhang/root/lib/libCore.so
#37 0x03850c0f in TH1::Draw () from /home/xhzhang/root/lib/libHist.so
#38 0x00d09966 in G__G__Base2_9_0_15 () from /home/xhzhang/root/lib/libCore.so
#39 0x0014ba5f in Cint::G__ExceptionWrapper ()
from /home/xhzhang/root/lib/libCint.so
#40 0x00208327 in G__call_cppfunc () from /home/xhzhang/root/lib/libCint.so
#41 0x001ed8dd in G__interpret_func () from /home/xhzhang/root/lib/libCint.so
#42 0x001db9d4 in G__getfunction () from /home/xhzhang/root/lib/libCint.so
#43 0x0029a5ed in G__getstructmem () from /home/xhzhang/root/lib/libCint.so
#44 0x002923b7 in G__getvariable () from /home/xhzhang/root/lib/libCint.so
#45 0x001bf96e in G__getitem () from /home/xhzhang/root/lib/libCint.so
#46 0x001c28ff in G__getexpr () from /home/xhzhang/root/lib/libCint.so
#47 0x0022fff4 in G__exec_statement () from /home/xhzhang/root/lib/libCint.so
#48 0x001adb08 in G__exec_tempfile_core ()
from /home/xhzhang/root/lib/libCint.so
#49 0x001aee43 in G__exec_tempfile_fp () from /home/xhzhang/root/lib/libCint.so
#50 0x0023f7d4 in G__process_cmd () from /home/xhzhang/root/lib/libCint.so
#51 0x00bf2f5f in TCint::ProcessLine () from /home/xhzhang/root/lib/libCore.so
#52 0x00b60b66 in TApplication::ProcessLine ()
from /home/xhzhang/root/lib/libCore.so
#53 0x004f51a8 in TRint::HandleTermInput ()
from /home/xhzhang/root/lib/libRint.so
#54 0x004f3840 in TTermInputHandler::Notify ()
from /home/xhzhang/root/lib/libRint.so
#55 0x004f5a56 in TTermInputHandler::ReadNotify ()
from /home/xhzhang/root/lib/libRint.so
#56 0x00c1e37a in TUnixSystem::CheckDescriptors ()
from /home/xhzhang/root/lib/libCore.so
#57 0x00c22598 in TUnixSystem::DispatchOneEvent ()
from /home/xhzhang/root/lib/libCore.so
#58 0x00bb60e8 in TSystem::InnerLoop () from /home/xhzhang/root/lib/libCore.so
#59 0x00bb5eae in TSystem::Run () from /home/xhzhang/root/lib/libCore.so
#60 0x00b60c52 in TApplication::Run () from /home/xhzhang/root/lib/libCore.so
#61 0x004f3fb2 in TRint::Run () from /home/xhzhang/root/lib/libRint.so
#62 0x08048d36 in main ()
Root >[/i]

Can anyone offer an explanation/solution? Thanks a lot!

Best regard,

foolfish

Dear foolfish,

You are probably mixing incompatible binaries: any chance to build you own ROOT on the system?
See root.cern.ch/drupal/content/inst … oot-source .

G. Ganis

Hi, Ganis

Thank you very much for your advise.

I will try do it.

Regard.

foolfish

This problem has been sloved though build my own ROOT.

Thank you.

foolfish