Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 16604 invoked from network); 10 Aug 2009 17:39:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 17:39:05 -0000 Received: (qmail 9453 invoked by uid 500); 10 Aug 2009 17:39:11 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 9371 invoked by uid 500); 10 Aug 2009 17:39:11 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 9362 invoked by uid 99); 10 Aug 2009 17:39:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 17:39:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dstromberglists@gmail.com designates 209.85.200.175 as permitted sender) Received: from [209.85.200.175] (HELO wf-out-1314.google.com) (209.85.200.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 17:39:01 +0000 Received: by wf-out-1314.google.com with SMTP id 24so1137586wfg.15 for ; Mon, 10 Aug 2009 10:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=I371iWcUEaGNpQAUBLjewAMv60Vsur/1UjpqZYLBsSs=; b=dd3QEL0TJ0gDuvhs8fgCIPRj8tIijWWpdhRyjQg/wOJCdNSPlYaXbbkXUzjIXwq7Js AnavktVCWivBIIkWN96OdxgFjN2RywqcHGno+35MlxUgRbLLkA4uXu8iBjnsc2uUW7ol L4Sh4HY7BOoqNsSkS237TMWwkJvSttK4//sJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jUdwEe391Go8fjJDt1HttpVoAi/eRME+IImLfsOVh3qVrBE6azTQFft9UlNWG3EpQz dcJJggrdpX2MMGUAf7e+Rqr44jT3Wfrv7SUVSu5IHUBuyNhW9S1Ze8FKeGscScMPpS1A 0w1RXn3xislmfud1l+EJEQRj6z9pGJv6tFzUg= MIME-Version: 1.0 Received: by 10.142.49.4 with SMTP id w4mr851301wfw.126.1249925920042; Mon, 10 Aug 2009 10:38:40 -0700 (PDT) In-Reply-To: <33c5a6c30908101008r7b25ccf9ifa4e2ed6af09ffa@mail.gmail.com> References: <33c5a6c30908071817q33c4e42ek84b0dca0bec7d82a@mail.gmail.com> <33c5a6c30908100927r5464b3dcr9a7cd470f902761f@mail.gmail.com> <33c5a6c30908101008r7b25ccf9ifa4e2ed6af09ffa@mail.gmail.com> Date: Mon, 10 Aug 2009 10:38:39 -0700 Message-ID: <33c5a6c30908101038m5ac0638br194bde518419c666@mail.gmail.com> Subject: Re: [users@httpd] Trouble compiling apache with mod_ssl, having two versions of OpenSSL on openSUSE 10.3 From: Dan Stromberg To: dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Someone replied off-list that 2.2.13 should help. I'm finding that while 2.2.13 probably is a better version, I still get: In file included from ssl_private.h:60, from mod_ssl.c:27: ssl_toolkit_compat.h:254:2: error: #error "Unrecognized SSL Toolkit!" In file included from ssl_private.h:62, from mod_ssl.c:27: ssl_util_ssl.h:78: error: expected =E2 )=E2 before =E2 *=E2 token ssl_util_ssl.h:79: error: expected =E2 )=E2 before =E2 *=E2 token ssl_util_ssl.h:80: error: expected =E2 =3D=E2 , =E2 ,=E2 , =E2 ;=E2 , =E2 asm=E2 or =E2 __attribute__=E2 before =E2 *=E2 token ssl_util_ssl.h:81: error: expected =E2 =3D=E2 , =E2 ,=E2 , =E2 ;=E2 , =E2 asm=E2 or =E2 __attribute__=E2 before =E2 *=E2 token ssl_util_ssl.h:82: error: expected =E2 )=E2 before =E2 *=E2 token ssl_util_ssl.h:83: error: expected =E2 =3D=E2 , =E2 ,=E2 , =E2 ;=E2 , =E2 asm=E2 or =E2 __attribute__=E2 before =E2 *=E2 token ssl_util_ssl.h:84: error: expected =E2 )=E2 before =E2 *=E2 token Any other suggestions? On Mon, Aug 10, 2009 at 10:08 AM, Dan Stromberg wrote: > It seems that building Apache 2.2.12 from source against OpenSSL 1.0.0 > beta 3 (also built from source) on an openSUSE 10.3 system that has > rpm's of older Apache and OpenSSL, yields a build failure - maybe > because of the dual OpenSSL, maybe not. > > Is this a known issue? > > Is there a fix? > > I've googled and googled, and found nothing but questions. OK, there > were answers, but they were of the "Are you sure you installed > OpenSSL?" or "Why not use rpm's?" variety, while I have 2 OpenSSL's > not 0, and I can't use rpm's due to the oldness of the OS I must build > on and for. > > It seems like mod_ssl.c isn't #include'ing ap_config_auto.h directly > or indirectly, so naturally HAVE_OPENSSL isn't #define'd. > > Thanks! > > On Mon, Aug 10, 2009 at 9:27 AM, Dan Stromberg= wrote: >> I'm puzzled now. >> >> OpenSSL is either building fine, or building with a problem that has >> no corresponding error message. Yes, I have the OpenSSL 1.0.0 beta 3 >> tarball - that's what allowed me to build it without an error message. >> >> It's not until I try to build apache against that OpenSSL that I get an = error. >> >> I have no OpenSSL (build) folder, though I do have an >> openssl-1.0.0-beta3 folder (actually, I automatically renamed it to >> src, but that's what it's called in the tarball) - is that what you >> mean? >> >> I have quite a bit of experience doing the usual GNU autoconf stuff. >> However, OpenSSL doesn't appear to be the usual autoconf stuff, and >> apache appears to be the most complex autoconf'd package I've seen. >> >> I've read through apache's ./configure --help a few times recently, >> though nothing obvious is jumping out at me about this error. It >> kinda feels like a build bug - it shouldn't be telling me I have no >> OpenSSL when I have 1.5 or 2 versions on my system. >> >> I think I neglected to mention: When doing web searches on this topic, >> I get a decent number of hits - but they're all unanswered questions. >> >> On Sun, Aug 9, 2009 at 12:33 AM, Igor Cicimov wrote: >>> Did you read the README and INSTALL files in the OpenSSL folder (I assu= me >>> you have openssl tarball downloaded)? They usually explain what and how= to >>> use in the ./configure and make commands. Read the help pages for confi= gure >>> and make too. >>> >>> On Sat, Aug 8, 2009 at 11:17 AM, Dan Stromberg >>> wrote: >>>> >>>> The subject line summarizes the issue pretty well. Following are the >>>> details: >>>> >>>> The problem stems, of course, from the new packages I'm building on an >>>> old OS. I don't have much choice in the matter though - these are the >>>> constraints I must operate within. >>>> >>>> I want to have two versions of OpenSSL on the system in question - one >>>> that comes with OS, and one for a new apache and subversion. >>>> >>>> I've tried both with OpenSSL 0.9.8k and OpenSSL 1.0.0 beta 3. This >>>> message will cover the specifics of the situation with 1.0.0 beta 3. >>>> >>>> I'm using the following small script to configure and build against >>>> OpenSSL 1.0.0 beta 3: >>>> >>>> export PATH=3D/usr/local/svn/bin:$PATH >>>> CC=3D"gcc -I/usr/local/svn/include -L/usr/local/svn/lib -Wl,-rpath >>>> -Wl,/usr/local/svn/lib" ./configure --prefix=3D/usr/local/svn >>>> --enable-modules=3Dall --enable-ssl --with-ssl=3D/usr/local/svn && mak= e -j >>>> 1 >>>> >>>> With this script in place, the apache build chugs along for a while, >>>> and then gives copious errors starting with: >>>> >>>> make[3]: Entering directory >>>> `/data/swbuild/da_build/src/apache2/src/modules/ssl' >>>> /usr/local/svn/build-1/libtool --silent --mode=3Dcompile gcc >>>> -I/usr/local/svn/include -L/usr/local/svn/lib -Wl,-rpath >>>> -Wl,/usr/local/svn/lib -g -O2 -pthread -DLINUX=3D2 -D_REENTRANT >>>> -D_GNU_SOURCE >>>> -I/data/swbuild/da_build/src/apache2/src/srclib/pcre -I. >>>> -I/data/swbuild/da_build/src/apache2/src/os/unix >>>> -I/data/swbuild/da_build/src/apache2/src/server/mpm/prefork >>>> -I/data/swbuild/da_build/src/apache2/src/modules/http >>>> -I/data/swbuild/da_build/src/apache2/src/modules/filters >>>> -I/data/swbuild/da_build/src/apache2/src/modules/proxy >>>> -I/data/swbuild/da_build/src/apache2/src/include >>>> -I/data/swbuild/da_build/src/apache2/src/modules/generators >>>> -I/data/swbuild/da_build/src/apache2/src/modules/mappers >>>> -I/data/swbuild/da_build/src/apache2/src/modules/database >>>> -I/usr/local/svn/include/apr-1 >>>> -I/data/swbuild/da_build/src/apache2/src/server >>>> -I/data/swbuild/da_build/src/apache2/src/modules/proxy/../generators >>>> -I/usr/local/svn/include >>>> -I/data/swbuild/da_build/src/apache2/src/modules/ssl >>>> -I/data/swbuild/da_build/src/apache2/src/modules/dav/main >>>> -prefer-non-pic -static -c mod_ssl.c && touch mod_ssl.lo >>>> In file included from ssl_private.h:60, >>>> from mod_ssl.c:27: >>>> ssl_toolkit_compat.h:254:2: error: #error "Unrecognized SSL Toolkit!= " >>>> In file included from ssl_private.h:62, >>>> from mod_ssl.c:27: >>>> ssl_util_ssl.h:78: error: expected =E2 EURO ~)=E2 EURO (tm) before = =E2 EURO ~*=E2 EURO (tm) token >>>> ssl_util_ssl.h:79: error: expected =E2 EURO ~)=E2 EURO (tm) before = =E2 EURO ~*=E2 EURO (tm) token >>>> >>>> The key part seeming to #error "Unrecognized SSL Toolkit". >>>> >>>> Line 254 of ssl_toolkit_compat.h is (and is surrounded by): >>>> >>>> #else /** ! HAVE_OPENSSL && ! HAVE_SSLC */ >>>> >>>> #error "Unrecognized SSL Toolkit!" >>>> >>>> #endif /* ! HAVE_OPENSSL && ! HAVE_SSLC */ >>>> >>>> IOW, it appears thtat HAVE_OPENSSL isn't defined, even though I have >>>> 1.5 versions (I mv'd /usr/include/openssl to >>>> /usr/include/openssl.nopers) on the system. Also, >>>> include/ap_config_auto.h have HAVE_OPENSSL #define'd to 1. >>>> >>>> But if I cut and paste the libtool command for compiling mod_ssl.c, >>>> addnig a -E to it to get just the cpp output, it appears that >>>> ap_config_auto.h isn't getting #include'd. >>>> >>>> Something's clearly going wrong with the build. Maybe it's because >>>> I'm doing something a little bit hackish setting that weird $CC, >>>> though that's worked well for me in the past. >>>> >>>> What do I need to do to build the latest apache aganist the latest >>>> OpenSSL on openSUSE 10.3? >>>> >>>> Thanks! >>>> >>>> --------------------------------------------------------------------- >>>> The official User-To-User support forum of the Apache HTTP Server Proj= ect. >>>> See for more info. >>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >>>> " from the digest: users-digest-unsubscribe@httpd.apache.org >>>> For additional commands, e-mail: users-help@httpd.apache.org >>>> >>> >>> >> >