[ROOT] Help! Unable to compile GUI program

From: cstrato (aon.912121399@aon.at)
Date: Sat May 03 2003 - 22:04:48 MEST


Dear Rooters

I have compiled my program using root 3.05/02 (and earlier) on
MacOS X, and could run it without any problems. Yesterday, I
have upgraded to 3.05/04, and now I get a segmentation break.
For this reason, I have recompiled my program, but this does
not help, either.

So, I have decided to compile my test program, which I have
already sent to roottalk some time ago, see:
http://root.cern.ch/root/roottalk/roottalk03/0464.html

When compiling this program, I get the identical compilation
messages, and the program gives a segmentation break:

[TiBookie:~/ROOT/rootcode/xgui] cs% make -f MakeFile4MyApp
c++ -O -pipe -Wall -I/Users/cs/ROOT/root/include -c MyGui.cxx
Generating dictionary MyGuiDict.cxx...
c++ -O -pipe -Wall -I/Users/cs/ROOT/root/include -c MyGuiDict.cxx
c++ -O -Xlinker -bind_at_load -flat_namespace -o MyGui MyGui.o 
MyGuiDict.o -L/Users/cs/ROOT/root/lib -lCore -lCint -lHist -lGraf 
-lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -lm 
-L/sw/lib -ldl
ld: warning dynamic shared library: 
/Users/cs/ROOT/root/lib/libHist.dylib not made a weak library in output 
with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
ld: warning dynamic shared library: 
/Users/cs/ROOT/root/lib/libGraf.dylib not made a weak library in output 
with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
ld: warning dynamic shared library: 
/Users/cs/ROOT/root/lib/libGpad.dylib not made a weak library in output 
with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
ld: warning dynamic shared library: 
/Users/cs/ROOT/root/lib/libMatrix.dylib not made a weak library in 
output with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
ld: warning dynamic shared library: /sw/lib/libdl.dylib not made a weak 
library in output with MACOSX_DEPLOYMENT_TARGET environment variable set 
to: 10.1
MyGui done
[TiBookie:~/ROOT/rootcode/xgui] cs% ./MyGui

 *** Break *** segmentation violation

Can you tell me what has changed between 3.05/02 and 3.05/04?
What do these messages mean?
What can I do to get my program running again?

Thank you in advance
Best regards
Christian
_._._._._._._._._._._._._._._._
C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
V.i.e.n.n.a       A.u.s.t.r.i.a
_._._._._._._._._._._._._._._._



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET