Discussion:
httpd and ppc64
(too old to reply)
toto__
2005-08-17 15:45:46 UTC
Permalink
hi,
i try to compile httpd-2.0.54 on a 64 bits ibm power5 server with linux
RHEL3U3.

i run :
#> CFLAGS="-m64 -g -O2" ./configure --enable-so --prefix=/etc/httpd
#> make
and i get the error :

/usr/lib/libdb-4.1.so: could not read symbols: Invalid operation

i thought it was taking the 64 bits library so i add -L/usr/lib64 to
CFLAGS and then i get the error :
/usr/lib/libexpat.so: could not read symbols: Invalid operation

what am i doing wrong ?
why is it searching for libexpat in /usr/lib not in /usr/lib64 ?

libexpat.so exists in 32 and 64 bits versions (in /usr/lib and in
/usr/lib64)

can anyone explain me how to compile in 64 bits ?
thanks for any help.
l'indien
2005-08-17 21:13:41 UTC
Permalink
Post by toto__
hi,
i try to compile httpd-2.0.54 on a 64 bits ibm power5 server with linux
RHEL3U3.
#> CFLAGS="-m64 -g -O2" ./configure --enable-so --prefix=/etc/httpd
#> make
/usr/lib/libdb-4.1.so: could not read symbols: Invalid operation
i thought it was taking the 64 bits library so i add -L/usr/lib64 to
/usr/lib/libexpat.so: could not read symbols: Invalid operation
what am i doing wrong ?
why is it searching for libexpat in /usr/lib not in /usr/lib64 ?
libexpat.so exists in 32 and 64 bits versions (in /usr/lib and in
/usr/lib64)
can anyone explain me how to compile in 64 bits ?
I've had a similar problem trying to compile qemu on a POWER5 machine.
It was on a Debian based machine.
It seems to me that the default is to compile 32 bits executables.
I finally added those flags in the Makefile to fix the problem:
CFLAGS+=-mpowerpc64 -mcpu=power5 -Wa,-mppc64
LDFLAGS+=-m64

Loading...