Re: [ROOT] Help! Unable to compile GUI program - on 3.05/04

From: cstrato (aon.912121399@aon.at)
Date: Sun May 04 2003 - 12:13:31 MEST


Dear Remi

Thank you for this info, I realized that I have already got this answer 
earlier.

Enclosed, you can find my test program once again.

To be on the safe side, I have just done the following:
1, Compile mygui with root 3.05/02 (CVS Feb 23) => everything OK!
2, Compile mygui with root 3.05/04 (CVS May 2) => break ** segmentation 
violation!
3, Compile mygui once again with root 3.05/02 (CVS Feb 23) => everything 
OK!!

My only explanation is that there has something changed in CVS from May 2?
My current system is MacOS X 10.2.4. Maybe, root 3.05/04 needs 10.2.5?
(At least, this should be mentioned, if this would be the case)

BTW, I am still able to compile my libraries, the problem is only with
the GUI, as was already earlier the case, see:
http://root.cern.ch/root/roottalk/roottalk03/0460.html
http://root.cern.ch/root/roottalk/roottalk03/0464.html

Maybe you, or some fellow MacRooters have an idea, how to solve this 
problem.

Best regards
Christian

Remi Mommsen wrote:

> Hi Christian,
>
> Concerning the MACOSX_DEPLOYMENT_TARGET you can find the long answer 
> here: http://developer.apple.com/qa/qa2001/qa1233.html . The short 
> answer is: don't worry about them.
>
> How do you compile your program?
>
> Cheers,
>         Remi
>
> On Saturday, May 3, 2003, at 01:04 PM, cstrato wrote:
>
>> 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
>> _._._._._._._._._._._._._._._._
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> "Sometimes I think the surest sign that intelligent life exists else-
> where in the universe is that none of it has tried to contact us."
>                                               Calvin (Bill Watterson)
>
> *********************************************************************
> Remigius K. Mommsen                 e-mail: mommsen@slac.stanford.edu
> University of California, Irvine       URL:    http://cern.ch/mommsen
> c/o SLAC                             voice:        ++1 (650) 926-3595
> 2575 Sand Hill Road #35             mobile:        ++1 (650) 387-1402
> Menlo Park, CA 94025, US               fax:        ++1 (650) 926-8522
> *********************************************************************
>
>
>






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