Re: [squid-users] squid 3.2.0.19 compilation problem

From: nipun_mlist Assam <nipunmlist_at_gmail.com>
Date: Thu, 9 Aug 2012 16:39:51 +0530

Hi Amos,

OPENSSL_VERSION_NUMBER is 0x10000003L

I replaced (in certificate_db.cc)
#if OPENSSL_VERSION_NUMBER >= 0x1000004fL
with
#if OPENSSL_VERSION_NUMBER >= 0x10000003L
.

Now I get the below problem: (compiler used is g++ (GCC) 4.4.4
20100726 (Red Hat 4.4.4-13) )
certificate_db.cc: In member function ‘bool
Ssl::CertificateDb::deleteInvalidCertificate()’:
certificate_db.cc:523: error: invalid conversion from ‘void*’ to ‘const _STACK*’
certificate_db.cc:523: error: initializing argument 1 of ‘void*
sk_value(const _STACK*, int)’
certificate_db.cc: In member function ‘bool
Ssl::CertificateDb::deleteOldestCertificate()’:
certificate_db.cc:554: error: invalid conversion from ‘void*’ to ‘const _STACK*’
certificate_db.cc:554: error: initializing argument 1 of ‘void*
sk_value(const _STACK*, int)’
certificate_db.cc: In member function ‘bool
Ssl::CertificateDb::deleteByHostname(const std::string&)’:
certificate_db.cc:571: error: invalid conversion from ‘void*’ to ‘const _STACK*’
certificate_db.cc:571: error: initializing argument 1 of ‘void*
sk_value(const _STACK*, int)’

On Thu, Aug 9, 2012 at 4:22 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On 09.08.2012 20:04, nipun_mlist Assam wrote:
>>
>> Hi All,
>>
>> I am facing compilation problem with squid 3.2.0.19. This fails
>> because of some changes in openssl header lhash.h (generally installs
>> in /usr/icnlude/openssl/lhash.h).
>> I used openssl 1.0.0 (OpenSSL 1.0.0-fips) for building squid.
>> The lhash.h header has slightly different macros in openssl 1.0.0 and
>> openssl 0.9.8. That is failing the build. I believe if we fix these
>> macro calls, squid should compile without any problem. Most probably
>> there won't be any issue with any other openssl APIs used by squid and
>> squid hopefully works just fine with openssl 1.0.0 as well.
>>
>> My question here is, if anybody fixed the problem already and if squid
>> works works with openssl 1.0.0 also.
>
>
>
> Could you please search your openssl .h files for the *exact* ABI version
> number and report back please.
> It should look like "#define OPENSSL_VERSION_NUMBER ..."
>
> Amos

-- 
Regards,
Nipun
Received on Thu Aug 09 2012 - 11:09:57 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 09 2012 - 12:00:03 MDT