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
This patch stops an SSL header file being included when SSL support has not been requested. === modified file 'src/errorpage.cc' --- src/errorpage.cc 2011-09-12 00:31:13 +0000 +++ src/errorpage.cc 2011-09-25 00:28:44 +0000 @@ -39,7 +39,9 @@ #include "auth/UserRequest.h" #endif #include "SquidTime.h" +#if USE_SSL #include "ssl/ErrorDetailManager.h" +#endif #include "Store.h" #include "html_quote.h" #include "HttpReply.h"
