build 32 bit httpd on 64 bit RHEL

build 32 bit httpd on 64 bit RHEL

am 13.01.2010 06:45:50 von galaft wang

--00504502ad786ccab4047d0548e8
Content-Type: text/plain; charset=ISO-8859-1

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/ap r'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib/ap r'
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

--00504502ad786ccab4047d0548e8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

=A0

I am compiling 32 bit httpd on 64 bit RHEL with following command: v>
=A0

# ./configure CFLAGS=3D-m32 CXXFLAGS=3D-m32 FFLAGS=3D-m32 FCFLAGS=3D-m=
32 --prefix=3D/root/j131/testhttpd/apache-32bit

=A0

But make=A0failed with following error message:

=A0

# make
Making all in srclib
make[1]: Entering directory `/root/j=
131/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">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]: Leav=
ing directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib 9=
;

make: *** [all-recursive] Error 1

=A0

It seems ld configure is not OK, so I added LDFLAGS=3D-melf_i386=A0 fo=
r apache configure, but it doesnt work:

=A0

# ./configure CFLAGS=3D-m32 CXXFLAGS=3D-m32 FFLAGS=3D-m32 FCFLAGS=3D-m=
32 LDFLAGS=3D-melf_i386 --prefix=3D/root/j131/testhttpd/apache-32bit
che=
cking for chosen layout... Apache
checking for working mkdir -p... yes r>checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu
checking target sy=
stem type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now<=
br>checking build system type... x86_64-unknown-linux-gnu
checking host =
system type... x86_64-unknown-linux-gnu
checking target system type... x=
86_64-unknown-linux-gnu

Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking f=
or working mkdir -p... yes
APR Version: 0.9.5
checking for chosen lay=
out... apr
checking for gcc... gcc
checking for C compiler default ou=
tput... configure: error: C compiler cannot create executables

See `config.log' for more details.
configure failed for srclib/apr r>

Is there any standard method to make 32-bit apache in 64-bit linux? iv>
=A0

Any help is welcomed, thanks!

=A0

Br, Jason Wang


--00504502ad786ccab4047d0548e8--

Re: build 32 bit httpd on 64 bit RHEL

am 13.01.2010 12:14:57 von Eric Covener

On Wed, Jan 13, 2010 at 12:45 AM, galaft wang wrote:
> 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

Probably better luck with CC="gcc -m32"

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org