Re: i'm having a problem while compiling squid 3.2.0.12 (since 3.2.0.6) on ubuntu server

From: Andrew Beverley <andy_at_andybev.com>
Date: Sun, 25 Sep 2011 01:32:39 +0100

On Wed, 2011-09-21 at 07:54 -0600, Alex Rousskov wrote:
> On 09/20/2011 11:29 PM, Amos Jeffries wrote:
> >>>
> >>> In file included from ../src/ssl/support.h:38,
> >>> from ssl/ErrorDetailManager.h:4,
> >>> from errorpage.cc:42:
> >>> ../src/ssl/gadgets.h:39: error: variable or field ×’X509_free_cpp×’
> >>> declared void
> >>
> >> I believe I have seen this bug as well. Try installing OpenSSL
> >> libraries, including development headers (openssl-devel package or
> >> similar).
> >>
> >> Please consider filing this bug using Squid bugzilla. Please mention
> >> whether installing OpenSSL helped.
> >
> > And which version(s), down to the sub-lettering. There seem to be some
> > fun changes going on in the headers for the 1.0.0 releases.
>
> In my case, it was a Squid bug unrelated to OpenSSL versions. As far as
> I could tell, we were including some SSL-related files even when SSL was
> disabled, but I did not have a chance to fully investigate.
>
>
> > ok so i installed every possilbe openssl lib that i was thinking of using:
> > apt-get install libcurl4-openssl-dev libssl-dev libssl0.9.8 libssl0.9.8-dbg
> >
> > and then i get the following output (some lines where added).:
> >
> > make[3]: Entering directory `/opt/src/squid-3.2.0.12/src'
> > g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/opt/squid32012/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/opt/squid32012/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/opt/squid32012/etc\" -I.. -I../include -I../lib -I../src -I../include -I../libltdl -I../src -I../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -m64 -g -O2 -c -o errorpage.o errorpage.cc
> > In file included from ../src/ssl/support.h:38,
> > from ssl/ErrorDetailManager.h:4,
> > from errorpage.cc:42:
> > ../src/ssl/gadgets.h:39: error: variable or field ×’X509_free_cpp×’ declared void
>
> Did you reconfigure Squid from scratch after installing OpenSSL?
>
>
> Thank you,
>
> Alex.

I've just run into this bug. It's a problem when compiling Squid
*without* any SSL support (and without SSL development files installed),
because there is an attempt to include an SSL header file regardless.

Please find attached a patch to fix.

Andy

Received on Sun Sep 25 2011 - 00:32:50 MDT

This archive was generated by hypermail 2.2.0 : Sun Sep 25 2011 - 12:00:03 MDT