httpd and ppc64 - Powerpc

This is a discussion on httpd and ppc64 - Powerpc ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: httpd and ppc64

  1. httpd and ppc64

    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.


  2. Re: httpd and ppc64

    On Wed, 17 Aug 2005 08:45:46 -0700, toto__ wrote:

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


    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


+ Reply to Thread