Re: [Exim] 64bit solaris and kstat - problem?

Pàgina inicial
Delete this message
Reply to this message
Autor: Geraint A Edwards
Data:  
A: exim-users
Assumptes vells: [Exim] 64bit solaris and kstat - problem?
Assumpte: Re: [Exim] 64bit solaris and kstat - problem?
Paul <pkelly@???> said
        (on Thu, Jun 13, 2002 at 12:37:23PM +0100):

> the definition of LOAD_AVG_FIELD in OS/os.h-SunOS5.h (exim4.04) is:
>
> #define LOAD_AVG_FIELD          value.ul

>
> but this fails on a 64bit solaris machine im using, changing it to:
>
> #define LOAD_AVG_FIELD          value.ui32

>
> seems to fix the problem, ive successfully tested the change with solaris
> 2.6. (32bit ultra1) and 2.8. (64bit ultra80)



I had a similar problem upgrading a Solaris 2.5.1 installation
from exim-4.05 to exim-4.10 today.

'make' failed, complaining (along the lines of)
    no such field in struct as 'value.ui32'
in os.c, line 372, which reads:
    avg = (int)(((double)(kn->LOAD_AVG_FIELD)/FSCALE) * 1000.0);


Oddly, reverting (sic) src/os.h-SunOS5 (or, rather, build*/os.h) to
    #define LOAD_AVG_FIELD          value.ul
fixed it.


Looks like your report helped prompt a change to src/os.h-SunOS5 in
exim-4.10, and this appears to break on (at least my) Solaris 2.5.1.

Fair enough - 2.5.1 is pretty old. This is for info, really.
(Sorry the details are sketchy: this is from memory, because the
machine in question is on-site.)

G
--
Geraint A. Edwards  "Gedge"       Caerdydd(Cardiff), Cymru(Wales)
gedge@???      IRCNet:Gedge  http://serf.org/gedge/