httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giuliano Gavazzi <>
Subject httpd 2.2.x on MacOS 10.5.1 Intel (and PPC?) + 64bit
Date Fri, 08 Feb 2008 22:09:46 GMT

posted some time ago under "Re: [VOTE]  Apache HTTP Server 1.3.41,  
2.0.63 and 2.2.8" but as it received no comment I post it again a bit  
more organised and with a solution too (tested on 2.2.8).

There are two main problems with Mac OSX, one longstanding but easily  
fixed at build time, the other seems new to Mac OSX 10.5.

1) mod_deflate requires including -lz by hand (in a couple of places)  
if one runs configure as:

./configure --with-module=filters:deflate [...]

The solution in this case is to use:

./configure --enable-deflate [...]

(that seems the correct option).

2) mod_ssl

I tried compiling 2.2.8 under MacOSX 10.5.1 and the compilation works*.

When starting the server httpd fails when loading the mod_ssl module  
because of some missing symbols (the first is  

The problem come from the linker line -export-symbols-regex  
ssl_module, as ssl_module will never match the missing symbols. I  
changed this to: -export-symbols-regex ".*[Ss][Ss][Ll].*"

Finally, the simple ./configure generates (on Intel) a 32bit i386 mach- 
o executable. On Leopard a 64 bit would be presumably better. This can  
be done setting CFLAGS and LDFLAGS as in this example:

   $ CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" ./configure --enable- 
deflate --enable-file-cache=shared --enable-cache=shared --enable-disk- 
cache=shared --enable-mem-cache=shared --enable-so --enable- 
rewrite=shared --enable-mods-shared=most --enable-ssl --with-included- 

Mind, I haven't tested anything more than apachectl configtest for the  


View raw message