Mantis - Resin
Viewing Issue Advanced Details
1002 minor always 03-20-06 08:28 03-30-06 11:49
ferg  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.19  
0001002: mod_caucho compilation issues with solaris 64 bit
(rep by Michael O'Dea)

I wanted to let you know that this issue (resin configure not picking up
64bit java even though the machine has 64bit java) is again occuring in
3.0.18 Pro when built on Solaris 2.8.

Here is the output again of java -version -d64

14:56:32 (12) root@app3: [/var/tmp/resin-pro-3.0.18 12] java -version
-d64
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_04-b05, mixed mode)

I applied the work around you mentioned on 11/2/05:

------------------

This is both 64 & 32 bit java, as we are currently running 3.0.8 with
the -d64 flag.

Ahh, "64-bit" (small b) not "64-Bit" (capital B)

in configure, line 8695, change this:
grep "64-Bit" $tmpname 1> /dev/null

to this:
grep -i "64-Bit" $tmpname 1> /dev/null

and let me know if it works for you.

---------------------------

And it still does not work.

Notes
(0000973)
ferg   
03-30-06 11:49   
The 3.0.19 changes to the ./configure script asks apxs for the additional configuration. With 3.0.18, you will need to add --enable-64bit.

The issue is that JNI/Java might be compiled differently than Apache/mod_caucho (e.g. 32-bit Java and 64-bit Apache). Querying the 64-bits of the Java version is not useful to detect if mod_caucho should be compiled for 64 bits. So 3.0.18 was changed to separate the two queries.

Unfortunately 3.0.18 was not automatically detecting how Apache had been compiled (32 vs 64). That query has been added to the ./configure script.