Re: making ROOT on SunOS 5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-4

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Feb 10 1999 - 09:15:07 MET


Hi Paul,
I have included your suggested change in the development version.
You mention that you had to apply the mods reported by Jonathan Hays,
but as far as I know, his changes were already included in the latest
versions. Could you clarify this point?

Rene Brun

Paul M. Eugenio wrote:
> 
> Dear Rooter's
> 
> I just sucessfully made root for sun 5.6 with egcs1.1.1. I used Makesolarisegcs.mk found in the $ROOTSYS/src dir and I followed  Jonathan Hays' outline (roottalk 16 Dec 1998) which describes the code modifications.  This worked well until the make of root.exe which failed due to missing sincos in the linking. Adding -lsunmath also failed because the linker could not find it( and I could not either).
> 
> I found a fix by modifying  BASE_Math.cxx(line 46)
> from:
> #if (defined(sun) && !defined(R__I386) && !defined(__SunOS_5_6)) || \
>     (defined(__OPTIMIZE__) && \
>      (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7)))
>    extern "C" void sincos(Double_t, Double_t*, Double_t*);
> #else
> to:
> #if (!defined(sun) && !defined(R__I386) && !defined(__SunOS_5_6)) || \
>     (defined(__OPTIMIZE__) && \
>      (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7)))
>    extern "C" void sincos(Double_t, Double_t*, Double_t*);
> #else
> 
> I know this just a kludge, but it works.
> 
> Thanks to everyone who helped...
> 
> --
> Paul M. Eugenio
> Dept. of Physics
> Carnegie Mellon University
> (412) 268 6949
> eugenio@ernest.phys.cmu.edu



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET