On Tue, Jun 13, 2000, Gek Low wrote:
> Hi all. I'm trying to port mod_ssl to a 64-bit Linux and I would like to
> know if this is currently in the works. One major problem I have is that
> ints are 32 bits wide while pointers are 64 bits wide (longs are 64 bits
> wide) and there are several sections of code that appears to use ints
> and pointers interchangeably. This is my first time at attempting a
> port.
>
> One example I can give is the AP_CTX_PTR2NUM and AP_CTX_NUM2PTR macros
> in pkg.eapi/ap_ctx.h, and their use in pkg.sslmod/ssl_engine_kernel.c in
> the vicinity of line 800 (looking at latest sources).
>
> I would like to know how much would I have to do to make the code 64-bit
> clean and what issues should I be prepared for, and if anybody is also
> working on a 64-bit port.
>
> I would also appreciate it if anybody can tell me about 64-bit issues in
> SSLC.
I do not expect lots of trouble for porting mod_ssl to 64-bit
environments. But keep in mind that _CORRECT_ 64-bit porting is more
complicated than one usually expects at the first look. Because
lots of people try to port to 64-bit just by adding a few casts.
This is not enough. For a few hints, look both in the archive of
Apache's new-httpd list (there were both posted patches which tried
to address 64-bit issues and discussions about it) and look at the
various 64-bit papers which fly around the net. A good start is
http://www.unix-systems.org/whitepapers/64bit.html.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]