Re: Trouble compiling apache with mod_ssl, having two versions of OpenSSL on openSUSE 10.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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<icicimov@xxxxxxxxx> wrote:
> Did you read the README and INSTALL files in the OpenSSL folder (I assume
> you have openssl tarball downloaded)? They usually explain what and how to
> use in the ./configure and make commands. Read the help pages for configure
> and make too.
>
> On Sat, Aug 8, 2009 at 11:17 AM, Dan Stromberg <dstromberglists@xxxxxxxxx>
> 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=/usr/local/svn/bin:$PATH
>>   CC="gcc -I/usr/local/svn/include -L/usr/local/svn/lib -Wl,-rpath
>> -Wl,/usr/local/svn/lib" ./configure --prefix=/usr/local/svn
>> --enable-modules=all --enable-ssl --with-ssl=/usr/local/svn && make -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=compile gcc
>> -I/usr/local/svn/include -L/usr/local/svn/lib -Wl,-rpath
>> -Wl,/usr/local/svn/lib -g -O2 -pthread    -DLINUX=2 -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 ‘)’ before ‘*’ token
>>   ssl_util_ssl.h:79: error: expected ‘)’ before ‘*’ 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 Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux