I notice another difference by using ldd on the standard root and myroot, mentioned in the previous email (below). ldd root : libXpm.so.4.11 => /usr/local/ren/prod/lib//libXpm.so.4.11 libX11.so.4 => /usr/lib/libX11.so.4 libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libXext.so.0 => /usr/openwin/lib/libXext.so.0 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libdga.so.1 => /usr/openwin/lib/libdga.so.1 libmp.so.2 => /usr/lib/libmp.so.2 /usr/platform/SUNW,Sun-Fire/lib/libc_psr.so.1 ldd myroot: libCore.so => /home/hp/ROOT/lib/libCore.so libCint.so => /home/hp/ROOT/lib/libCint.so libHist.so => /home/hp/ROOT/lib/libHist.so libGraf.so => /home/hp/ROOT/lib/libGraf.so libGraf3d.so => /home/hp/ROOT/lib/libGraf3d.so libGpad.so => /home/hp/ROOT/lib/libGpad.so libTree.so => /home/hp/ROOT/lib/libTree.so libRint.so => /home/hp/ROOT/lib/libRint.so libPostscript.so => /home/hp/ROOT/lib/libPostscript.so libMatrix.so => /home/hp/ROOT/lib/libMatrix.so libPhysics.so => /home/hp/ROOT/lib/libPhysics.so libsocket.so.1 => /usr/lib/libsocket.so.1 libgen.so.1 => /usr/lib/libgen.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libbox_O.so => /DB/chains/4008/bin/libbox_O.so libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 /usr/platform/SUNW,Sun-Fire/lib/libc_psr.so.1 ESPECIALLY, X-related libraries are missing in myroot. Will this explain that different behavior ?? hp ------------- Begin Forwarded Message ------------- Date: Tue, 4 Mar 2003 16:35:49 -0500 (EST) From: HP Wei <hp@rentec.com> Subject: [ROOT] problem in compiling custom root ?? I have a script that defines a class B in which there is a member function fx() that draws a plot using TGraph. In the standard root-cint, I can interactively and repetitively call fx() many times to draw different plots. (Oh! This is after I close my netscape and mozilla.) Things look ok. Immediately after this, I do the following. In a custom made root-cint (myroot), the first time I call fx() the plot is ok. The second time I call fx(), it gives me those two messages again, and the canvas frame just freezes. Error in <RootX11ErrorHandler>: BadAccess (attempt to access private resource denied) (XID: 0, XREQ: 88) Error in <RootX11ErrorHandler>: BadAlloc (insufficient resources for operation) (XID: 0, XREQ: 84) ------------------------------------------------------ I checked my Makefile used to make myroot. The libraries that are linked contain: ROOTLIBS := $(shell root-config --libs) which is: -L/home/hp/ROOT/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -L/usr/ccs/lib -lm -lsocket -lgen -ldl (In addition to these libs, myroot also links in our class libs.) Can anyone shed some light on what goes wrong in the custom myroot described above ??? [Sun Solaris, standard root-cint: 3.05/2 5.15.76] thanks, HP ------------- End Forwarded Message -------------
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET