Mantis - Resin
Viewing Issue Advanced Details
5108 minor always 06-09-12 08:37 07-30-12 18:39
cowan  
ferg  
normal  
closed 4.0.28  
fixed  
none    
none 4.0.30  
0005108: Compile flags for 32 vs 64 bit Apache
On Solaris 10, --with-apxs where Apache is 64-bit, make failed with:

ld: fatal: file .libs/mod_caucho.o: wrong ELF class: ELFCLASS32
ld: fatal: file processing errors. No output written to .libs/mod_caucho.so
collect2: ld returned 1 exit status
make[2]: *** [mod_caucho.la] Error 1

This is fixed when --enable-64-bit is included.

If possible, configure should default to 64-bit so the extra parameter is not required.

Notes
(0005808)
cowan   
06-09-12 08:41   
Well actually now that I tried to start Apache after successful compile with --enable-64-bit, I get this:

-bash-3.2# ./bin/apachectl start
httpd: Syntax error on line 482 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_caucho.so into server: ld.so.1: httpd: fatal: /usr/local/apache2/modules/mod_caucho.so: wrong ELF class: ELFCLASS64
(0005809)
cowan   
06-09-12 08:46   
After recompile with --disable-64bit Apache started up. So the issue is that we are attempting to use 64-bit for mod_caucho when Apache is 32-bit.