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

From: Jonathan Hays (Jonathan.Hays@cern.ch)
Date: Wed Feb 10 1999 - 12:06:52 MET


On Tue, 9 Feb 1999, 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. 

Hi,

I believe the code modifications I described were for SunOS 5.5
I think for SunOS 5.6 it is sufficient to add a define to the
makefile -D__SunOS_5_6. (At least for root_v.2.20) This solves the
sunmath problem as well. Strangely my linker could find the sunmath
library but when I looked in all the places the linker *should* have
been looking for this file... it was not there... nor could I
find the include file.

Cheers,

Jon.

> 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
> 

=====================================================
Jonathan Hays                         

Studio 103                            CERN - HC/EP
36 Rue De L'Athenee                   E27900
1206 Geneve                           1211 Geneve 23
Suisse                                Suisse
                                      +41 22 7671546
=====================================================



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