OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Problems with 2.2.10 on HP-UX 11.23/IA

From: Albert Chin (postfix-usersmlists.thewrittenword.com)
Date: Tue May 16 2006 - 10:39:23 CDT


On Tue, May 16, 2006 at 09:52:51AM -0400, Wietse Venema wrote:
> Albert Chin:
> > If I change src/util/vstream.c from:
> > case VSTREAM_CTL_EXCEPT:
> > if (stream->jbuf == 0)
> > stream->jbuf = (jmp_buf *) mymalloc(sizeof(jmp_buf));
> > break;
> > to:
> > case VSTREAM_CTL_EXCEPT:
> > if (stream->jbuf == 0)
> > stream->jbuf = (jmp_buf *) malloc(sizeof(jmp_buf));
> > ^^^^^^
> > break;
> > then I can connect to the SMTP port on this machine.
>
> Then you need to update mymalloc.c or sys_defs.h so that it can
> figure out the right datatype for the ALIGN_TYPE.
>
> I won't accept changes replace mymalloc with malloc.

The patch below seems to work. I only tested by sending a mail message
and connecting to the SMTP port.

Credit to Victor Duchovni <Victor.DuchovniMorganStanley.com>!

--
albert chin (chinathewrittenword.com)

-- snip snip
Index: src/util/sys_defs.h
===================================================================
--- src/util/sys_defs.h.orig 2006-01-03 15:52:17.000000000 -0600
+++ src/util/sys_defs.h 2006-05-16 09:47:50.116348000 -0500
-1221,7 +1221,9
   * doubles.
   */
 #ifndef ALIGN_TYPE
-# ifdef __ia64__
+# if defined(__hpux) && defined(__ia64)
+# define ALIGN_TYPE __float80
+# elif defined(__ia64__)
 # define ALIGN_TYPE long double
 # else
 # define ALIGN_TYPE double