Mantis - Resin
Viewing Issue Advanced Details
4675 minor always 07-21-11 01:29 07-21-11 14:11
nits4resin  
ferg  
normal  
closed 4.0.19  
fixed  
none    
none 4.0.21  
0004675: Build resin for 32 bit on 64 bit machine
Hi,

I am trying to build resin on 64bit Linux (RHEL 5.5) machine for 32bit libraries with ssl. My configuration is
 ./configure --prefix=/opt/resin3.0.26/install CC=cc CFLAG=-m32
This is the configuration summary:-

Resin Configuration summary:

  RESIN_HOME : /opt/resin4.0.17/install
      root : /opt/resin4.0.17/install
      conf : /opt/resin4.0.17/install/conf
      log : /opt/resin4.0.17/install/log
      plugins : common resin_os resin resinssl
      init : /opt/resin4.0.17/install
  JAVA_HOME: /opt/jdk1.6.0_05

    + 32-bit JNI in -I/opt/jdk1.6.0_05/include -I/opt/jdk1.6.0_05/include/linux
    + JNI CFLAGS: -g -O2 -DPOLL -DEPOLL -D_POSIX_PTHREAD_SEMANTICS -DHAS_SOCK_TIMEOUT -DHAS_JVMTI
    + epoll() for keepalives
    +
        OpenSSL include: /usr/include
        OpenSSL lib:
        OpenSSL libraries: -lssl -lcrypto

I am able to build and install resin successfully. But when i am seeing the library files in libexec folder, all files are 64 bit architecture.

=================================================
file /opt/resin4.0.17/install/libexec/libresin.so
/opt/resin4.0.17/install/libexec/libresin.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
=================================================

Could you please suggest me what is the configuration setting by which i can achieve 32bit resin library in 64 bit machine.

Regards,
Nits


 resin4_0_19build_log.txt [^] (19,770 bytes) 07-21-11 01:29

Notes
(0005384)
ferg   
07-21-11 14:11   
The configuration is ./configure --disable-64bit

There is a ./configure bug affecting that configuration that will be fixed in 4.0.21.