How to compile 32bit Apache on Solaris 5.10 Sparc

Blog Post created by Osarobo_Idehen Employee on Apr 4, 2017

1) Download Apache version: httpd-2.2.17.tar.gz


2) Set below environment variables -m32 to compile Apache in 32bits

# export PATH=/usr/ccs/bin:/usr/sfw/bin:$PATH
# export CC=gcc
# export CFLAGS=-m32
# export CPP_FLAGS=-m32
# export LDFLAGS="-L/usr/sfw/lib/sparcv9 -R/usr/sfw/lib/sparcv9"

3) verify that the gcc package is installed:

# ls /usr/sfw/bin/gcc

If the package is not installed, then install it after having mounted the DVD. In this sample, DVD is
installed in /cdrom

4) Compile Apache:


#cd httpd-2.2.17
# export LIBS=-lpthread
# ./configure --prefix=/opt/apache2217 --enable-so --enable-auth-digest --enable-rewrite --enable-setenvif --enable-mime --enable-deflate --with-ssl=/usr --enable-headers --enable-ssl
# make && make install
# /opt/apache2217/bin/apachectl -V


Stop/Start Apache:


/opt/apache2217/bin/apachectl start

/opt/apache2217/bin/apachectl stop

Apache root URL test: