Jump to content

how to compile apache to 32 bit binaries to run on a 64 bit system


itortu

Recommended Posts

I am trying to compile Apache 2.2.11  on 32 bit binaries on a 64 bit machine (redhat)

 

These are the steps I am taking:

 

$ tar -xvzf httpd-2.2.11.tar.gz

$ cd ./httpd-2.2.11

$ export CFLAGS=-m32

$ export CPPFLAGS=-m32

$ ./configure --prefix=/opt/contrib-qa/apache2 --build=i686-unknown-linux-gnu --enable-mode-shared=all build_alias=i686-unknown-linux-gnu --enable-modules=all --enable-mods-shared=all --enable-so --enable-rewrite --enable-auth-digest=shared --enable-proxy-ajp

 

checking for chosen layout... Apache

checking for working mkdir -p... yes

checking build system type... i686-unknown-linux-gnu

checking host system type... i686-unknown-linux-gnu

checking target system type... i686-unknown-linux-gnu

 

Configuring Apache Portable Runtime library ...

 

checking for APR... reconfig

configuring package in srclib/apr now

checking build system type... i686-unknown-linux-gnu

checking host system type... i686-unknown-linux-gnu

checking target system type... i686-unknown-linux-gnu

Configuring APR library

Platform: i686-unknown-linux-gnu

checking for working mkdir -p... yes

APR Version: 1.3.3

checking for chosen layout... apr

checking for gcc... gcc

checking for C compiler default output file name...

configure: error: in `/opt/contrib-qa/httpd-2.2.11/srclib/apr':

configure: error: C compiler cannot create executables

See `config.log' for more details.

configure failed for srclib/apr

 

 

I am not confused and without any idea of what is going on. can someone please try to explain what this error means and if there is  work around to the issue?

 

Thank you so much.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.