Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53C4A1782C for ; Fri, 3 Apr 2015 14:55:18 +0000 (UTC) Received: (qmail 70703 invoked by uid 500); 3 Apr 2015 14:55:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 70503 invoked by uid 500); 3 Apr 2015 14:55:14 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 70493 invoked by uid 99); 3 Apr 2015 14:55:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2015 14:55:14 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jatindersingh84@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2015 14:55:08 +0000 Received: by wgin8 with SMTP id n8so23457001wgi.0 for ; Fri, 03 Apr 2015 07:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=JWTsZSkDZzQOvN9rTfhHwD8zafWXU7oHOHM2vfze/P8=; b=lfeSbnOhD3IN1/9iBgEeacqoSxHmWlXjywc5dVqXPgJRr+Wk0kjiojhaX6y0Kq/97G hQpbAzIfOvI/fz5lVc9zrLnyIYz1XuPKmjSHeu3Besc7yDbNOrcgJkt2ciOSyJEOSPDG isrxigOFDF2g1ncqCp01DCrvL7pAbO6AF63BLZhSyqd2ATxcC4/46KSfh+wk8GROFhDx 1AoMik00aO3gJH2z6nEt6c5LSxRnBGJMnPlTY4SQfFTud5sDtGfZLOgXX9kmk9QcK/yb hov3mey83OY+aJNmtepFaFl8gZ76wcRpXfDgB8qkK8vBnJbApQM7hNbN3WLxAQLkDTiJ 6t0Q== MIME-Version: 1.0 X-Received: by 10.180.76.230 with SMTP id n6mr34566370wiw.15.1428072797820; Fri, 03 Apr 2015 07:53:17 -0700 (PDT) Received: by 10.27.179.33 with HTTP; Fri, 3 Apr 2015 07:53:17 -0700 (PDT) Date: Fri, 3 Apr 2015 09:53:17 -0500 Message-ID: From: =?UTF-8?B?4Kic4Kik4Ki/4Kmw4Kim4KiwIOCouOCov+CpsOComA==?= To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d043c7d46d3dd570512d31b8b X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Compile apache 2.4 on solaris 10 sparc with 64 bit openssl issue --f46d043c7d46d3dd570512d31b8b Content-Type: text/plain; charset=UTF-8 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. -- --f46d043c7d46d3dd570512d31b8b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

uname -a=C2=A0
SunOS XXXX 5.10 Gene= ric_150400-14 sun4u sparc SUNW,Netra-T12=C2=A0
src distribution used - apache-httpd-2_4_12-src-openssl-m.tar=C2= =A0

/usr/sfw/bin/gcc -v=C2=A0=
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/sp= ecs=C2=A0
Configured with: /sfw10/builds/build/sfw10-patch/u= sr/src/cmd/gcc/gcc-3.4.3/configure --prefix=3D/usr/sfw --with-as=3D/usr/ccs= /bin/as --without-gnu-as --with-ld=3D/usr/ccs/bin/ld --without-gnu-ld --ena= ble-languages=3Dc,c++ --enable-shared=C2=A0
<= span style=3D"color:rgb(0,0,0);font-family:Courier,'Courier New',sa= ns-serif;font-size:11px;background-color:rgb(250,250,250)">Thread model: po= six=C2=A0
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath= )=C2=A0

#Set ENV variables=C2=A0

export CFLAGS=3D"-m64"=C2= =A0
export LDFLAGS=3D"-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"=C2=A0
export LD_LIBRARY_PATH=3D/usr/sfw/lib/sp= arcv9:/usr/lib=C2=A0
export LD_LIBRARY_PATH_64=3D/usr/lib/64= :/usr/sfw/lib/64=C2=A0
export PATH=3D$PATH:/usr/sfw/bin:/usr= /ccs/bin:/usr/ccs/bin/sparcv9=C2=A0

= # build pcre=C2=A0
cd ~/apache64-2-4-12/03-httpd/pcre-8.36= =C2=A0
./configure --disable-cpp CFLAGS=3D"-g" CC= =3D"gcc -m64" --prefix=3D~/apache64-2-4-12/03-httpd/pcre-8.36=C2= =A0
make clean=C2=A0
make=C2=A0

= # build apr=C2= =A0
cd ~/apache64-2-4-12/03-httpd/apr-util-1.5.4=C2=A0

./configure --prefix=3D~/apache64-2-4-12/03-httpd/apr-1.5.1=C2=A0=
make clean=C2=A0
make=C2=A0
= make install=C2=A0

# build apr-util= =C2=A0
cd ~/apache64-2-4-12/03-httpd/apr-util-1.5.4=C2=A0

./configure --prefix=3D~/apache64-2-4-12/03-httpd/apr-util-1.5= .4=C2=A0 --with-apr=3D~/apache64-2-4-12/03-httpd/apr-1.5.1=C2=A0
make clean=C2=A0
make=C2=A0
make install= =C2=A0

# build openssl=C2=A0<= br style=3D"color:rgb(0,0,0);font-family:Courier,'Courier New',sans= -serif;font-size:11px">cd ~/apache64-2-4-12/02-openssl/openssl-1.0.1m=C2=A0
./config --prefix=3D~/openssl64=C2=A0
make clean=C2=A0
changed CGLAGS from m32 to m64 in makefile=C2=A0
= make=C2=A0
make install=C2=A0
=

# build apache2.4-12=C2=A0
= ./configure --prefix=3D~/apache-64-2-4-12/Apache64HTTP --enable-ssl --with-= pcre=3D~/apache-64-2-4-12/03-httpd/pcre-8.36 --with-apr=3D~/apache-64-2-4-1= 2/03-httpd/apr-1.5.1 --with-apr-util=3D~/apache-64-2-4-12/03-httpd/apr-util= -1.5.4=C2=A0 --enable-ssl-staticlib-deps=C2=A0
make clean=C2= =A0

make=C2=A0
Failing with below error...=C2= =A0
ld: warning: file ~/openssl-64/lib/libssl.a(s2_clnt.o): = wrong ELF class: ELFCLASS32=C2=A0
ld: warning: file ~/openss= l-64/lib/libcrypto.a(mem.o): wrong ELF class: ELFCLASS32=C2=A0

these files are 32 bit on rechecking with file c= ommand inside openssl/lib, but openssl executable is 64 bits.=C2=A0<= br>
<= br>
I have = tried lots of options suggested online but could not yet find it working.. = Experts please suggest to a newbee.
--

--f46d043c7d46d3dd570512d31b8b--