build 32 bit httpd on 64 bit RHEL

--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

<div>Hi,</div>
<div>=A0</div>
<div>I am compiling 32 bit httpd on 64 bit RHEL with following command:</di=
v>
<div>=A0</div>
<div># ./configure CFLAGS=3D-m32 CXXFLAGS=3D-m32 FFLAGS=3D-m32 FCFLAGS=3D-m=
32 --prefix=3D/root/j131/testhttpd/apache-32bit</div>
<div>=A0</div>
<div>But make=A0failed with following error message:</div>
<div>=A0</div>
<div># make<br>Making all in srclib<br>make[1]: Entering directory `/root/j=
131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib'<br>Making all in apr=
<br>...............</div>
<div><strong>/usr/bin/ld: warning: i386 architecture of input file `strings=
/apr_cpystrn.lo' is incompatible with i386:x86-64 output<br></strong>..=
.........<br>/usr/bin/ld: warning: i386 architecture of input file `dso/unix=
/dso.lo' is incompatible with i386:x86-64 output<br>
..........</div>
<div>collect2: ld returned 1 exit status<br>make[3]: *** [<a href=3D"http:/=
/libapr-0.la">libapr-0.la</a>] Error 1<br>make[3]: Leaving directory `/root=
/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib/apr'<br>make[2]: **=
* [all-recursive] Error 1<br>
make[2]: Leaving directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.=
52/srclib/apr'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leav=
ing directory `/root/j131/testhttpd/httpd-2.0.52-32/httpd-2.0.52/srclib 9=
;<br>
make: *** [all-recursive] Error 1</div>
<div>=A0</div>
<div>It seems ld configure is not OK, so I added LDFLAGS=3D-melf_i386=A0 fo=
r apache configure, but it doesnt work:</div>
<div>=A0</div>
<div># ./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<br>che=
cking for chosen layout... Apache<br>checking for working mkdir -p... yes<b=
r>checking build system type... x86_64-unknown-linux-gnu<br>
checking host system type... x86_64-unknown-linux-gnu<br>checking target sy=
stem type... x86_64-unknown-linux-gnu</div>
<div>Configuring Apache Portable Runtime library ...</div>
<div>checking for APR... reconfig<br>configuring package in srclib/apr now<=
br>checking build system type... x86_64-unknown-linux-gnu<br>checking host =
system type... x86_64-unknown-linux-gnu<br>checking target system type... x=
86_64-unknown-linux-gnu<br>
Configuring APR library<br>Platform: x86_64-unknown-linux-gnu<br>checking f=
or working mkdir -p... yes<br>APR Version: 0.9.5<br>checking for chosen lay=
out... apr<br>checking for gcc... gcc<br>checking for C compiler default ou=
tput... configure: error: C compiler cannot create executables<br>
See `config.log' for more details.<br>configure failed for srclib/apr<b=
r></div>
<div>Is there any standard method to make 32-bit apache in 64-bit linux?</d=
iv>
<div>=A0</div>
<div>Any help is welcomed, thanks!</div>
<div>=A0</div>
<div>Br, Jason Wang<br></div>

--00504502ad786ccab4047d0548e8--
galaft wang [ Mi, 13 Januar 2010 06:45 ] [ ID #2028641 ]

Re: build 32 bit httpd on 64 bit RHEL

On Wed, Jan 13, 2010 at 12:45 AM, galaft wang <galaft [at] gmail.com> 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 [at] gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Eric Covener [ Mi, 13 Januar 2010 12:14 ] [ ID #2028650 ]
Webserver » gmane.comp.apache.user » build 32 bit httpd on 64 bit RHEL

Vorheriges Thema: TAG <Location> and ldap_auth
Nächstes Thema: Newbie question:How to change chunk size?