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