unable to compile apache 2 64bit on solaris 10 sparc

Discussion in 'Apache' started by levic, Feb 9, 2010.

  1. #1
    Hi,

    i'm trying to compile apache 2.2.13 on solaris 10 sparc as 64bit and for some reason its always compiled as 32bit!

    i know it can be done cause i've already done it before, so i'm not sure what am i doint wrong:(

    i've edit /.profile on my machine to include the following lines:
    CC="gcc -m64"
    MAKE="gmake"
    CFLAGS="-O2"
    LDFLAGS="-s -L/usr/lib/sparcv9 -R/usr/sfw/lib/sparcv9 -R/usr/lib/sparcv9 -R/usr/sfw/lib/sparcv9

    i make sure i cann this values using echo $<parameter>
    i've extracted the httpd-2.2.13 tar and using the following command to compile it:
    ./configure --prefix=/usr/local/apache2-12.64 --libdir=/usr/lib/64 -enable-lib64 --with-mpm=worker --enable-ssl --enable-proxy --enable-proxy-http --with-included-apr --with-ssl=/usr/local/ssl

    the ssl library installed using a regular rpm of openssl-0.7.9.7-sol10-sparc.
    the configure, make and make install commands works.
    but when execute "file /usr/local/apache2-12.64/bin/httpd" i'm getting its an ELF32 bit!


    what am i doing wrong??
    thanks
    levi
     
    levic, Feb 9, 2010 IP