build 32 bit httpd on 64 bit RHEL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I am compiling 32 bit httpd on 64 bit RHEL with following command:
 
# ./configure CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32 --prefix=/root/j131/testhttpd/apache-32bit
 
But make failed with following error message:
 
# make
Making all in srclib
make[1]: Entering directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib'
Making all in apr
...............
/usr/bin/ld: warning: i386 architecture of input file `strings/apr_cpystrn.lo' is incompatible with i386:x86-64 output
..........
/usr/bin/ld: warning: i386 architecture of input file `dso/unix/dso.lo' is incompatible with i386:x86-64 output
.........
collect2: ld returned 1 exit status
make[3]: *** [libapr-0.la] Error 1
make[3]: Leaving directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib'
make: *** [all-recursive] Error 1
 
It seems ld configure is not OK, so I added LDFLAGS=-melf_i386  for apache configure, but it doesnt work:
 
# ./configure CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32 LDFLAGS=-melf_i386 --prefix=/root/j131/testhttpd/apache-32bit
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
Is there any standard method to make 32-bit apache in 64-bit linux?
 
Any help is welcomed, thanks!
 
Br, Jason Wang

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux