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

Reply via email to