Re: [ROOT] Problem with tree4.C

From: cstrato (cstrato@aon.at)
Date: Sat Feb 28 2004 - 19:35:51 MET


Dear Remi

Thank you for the patch, now it works fine.

Best regards
Christian

Remi Mommsen wrote:
> Hi,
> 
> I hesitate to call it a 'solution' to this problem as I suspect that we 
> hit (another) problem with the linker on Mac OS X. Anyway here it goes:
> 
> The culprit is the option passed to the linker '-Wl,-x' used 
> (exclusively) in the $ROOTSYS/test/Makefile. If you remove it, tree4.C 
> works as expected. The linker option '-x' causes to strip non-global 
> symbols from the library, thus changing the relative location of the 
> symbols. If for some obscure reason the relative addresses are not 
> modified accordingly, you can end up in a different code segment. This 
> would explain the nonsense sequence seen in the traceback. Thought this 
> is pure speculation.
> 
> I put the patch file at 
> http://www.slac.stanford.edu/~mommsen/test_makefile.patch or you can 
> just change it by hand (it occurs 5 times!).
> 
> Have a nice weekend.
> 
> Cheers,
>         Remi
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET