Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Compile apache 2.4 on solaris 10 sparc with 64 bit openssl |
|
Author |
|
apache_newbee_2015
Joined: 13 Mar 2015 Posts: 3 Location: US, Dallas
|
Posted: Fri 03 Apr '15 3:36 Post subject: Compile apache 2.4 on solaris 10 sparc with 64 bit openssl |
|
|
openssl libs are 32 bit which is failing apache -m64 installation with openssl. Details below
Code: | uname -a
SunOS XXXX 5.10 Generic_150400-14 sun4u sparc SUNW,Netra-T12
src distribution used - apache-httpd-2_4_12-src-openssl-m.tar
/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
#Set ENV variables
export CFLAGS="-m64"
export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X/lib -R/usr/X/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/ccs/lib -R/usr/ccs/lib"
export LD_LIBRARY_PATH=/usr/sfw/lib/sparcv9:/usr/lib
export LD_LIBRARY_PATH_64=/usr/lib/64:/usr/sfw/lib/64
export PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin:/usr/ccs/bin/sparcv9
# build pcre
cd ~/apache64-2-4-12/03-httpd/pcre-8.36
./configure --disable-cpp CFLAGS="-g" CC="gcc -m64" --prefix=~/apache64-2-4-12/03-httpd/pcre-8.36
make clean
make
make install
# build apr
cd ~/apache64-2-4-12/03-httpd/apr-util-1.5.4
./configure --prefix=~/apache64-2-4-12/03-httpd/apr-1.5.1
make clean
make
make install
# build apr-util
cd ~/apache64-2-4-12/03-httpd/apr-util-1.5.4
./configure --prefix=~/apache64-2-4-12/03-httpd/apr-util-1.5.4 --with-apr=~/apache64-2-4-12/03-httpd/apr-1.5.1
make clean
make
make install
# build openssl
cd ~/apache64-2-4-12/02-openssl/openssl-1.0.1m
./config --prefix=~/openssl64
make clean
changed CGLAGS from m32 to m64 in makefile
make
make install
# build apache2.4-12
./configure --prefix=~/apache-64-2-4-12/Apache64HTTP --enable-ssl --with-pcre=~/apache-64-2-4-12/03-httpd/pcre-8.36 --with-apr=~/apache-64-2-4-12/03-httpd/apr-1.5.1 --with-apr-util=~/apache-64-2-4-12/03-httpd/apr-util-1.5.4 --enable-ssl-staticlib-deps
make clean
make
Failing with below error...
ld: warning: file ~/openssl-64/lib/libssl.a(s2_clnt.o): wrong ELF class: ELFCLASS32
ld: warning: file ~/openssl-64/lib/libcrypto.a(mem.o): wrong ELF class: ELFCLASS32
these files are 32 bit on rechecking with file command inside openssl/lib, but openssl executable is 64 bits.
|
I have tried lots of options suggested online but could not yet find it working.. Experts please suggest to a newbee. |
|
Back to top |
|
apache_newbee_2015
Joined: 13 Mar 2015 Posts: 3 Location: US, Dallas
|
Posted: Fri 03 Apr '15 4:43 Post subject: Re: Compile apache 2.4 on solaris 10 sparc with 64 bit opens |
|
|
I have posted same question under Apache forum.( Admins can close this one if possible)
Thanks
Moderator Note: Why? This is the proper place for this post. This is mainly an Apache on Windows forum so it may take awhile for you to get an answer, please be patient. You should also try the support mailing list at Apache org where you surely should have a wider audience for Solaris.
http://httpd.apache.org/lists.html#http-users
I'm removing the other one. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 04 Apr '15 22:34 Post subject: |
|
|
Do you have a solution? |
|
Back to top |
|
apache_newbee_2015
Joined: 13 Mar 2015 Posts: 3 Location: US, Dallas
|
Posted: Sun 05 Apr '15 3:58 Post subject: issue got fixed after updating ar "archive" |
|
|
I am able to install successfully.
changed archive "ar" in my path from /usr/ccs/bin/ar to /usr/ccs/bin/sparcv9/ar.. |
|
Back to top |
|
|
|
|
|
|