[squid-users] squid 3.2.0.19 compilation problem

From: nipun_mlist Assam <nipunmlist_at_gmail.com>
Date: Thu, 9 Aug 2012 13:34:55 +0530

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.

Below is the compilation error:

certificate_db.cc: In member function ‘void Ssl::CertificateDb::load()’:
certificate_db.cc:460: error: ‘index_serial_hash_LHASH_HASH’ was not
declared in this scope
certificate_db.cc:460: error: ‘index_serial_cmp_LHASH_COMP’ was not
declared in this scope
certificate_db.cc:463: error: ‘index_name_hash_LHASH_HASH’ was not
declared in this scope
certificate_db.cc:463: error: ‘index_name_cmp_LHASH_COMP’ was not
declared in this scope
certificate_db.cc: In member function ‘void
Ssl::CertificateDb::deleteRow(const char**, int)’:
certificate_db.cc:495: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘_STACK*’ for argument ‘1’ to ‘void*
sk_delete(_STACK*, int)’
certificate_db.cc:504: error: ‘LHASH’ was not declared in this scope
certificate_db.cc:504: error: ‘fieldIndex’ was not declared in this scope
certificate_db.cc: In member function ‘bool
Ssl::CertificateDb::deleteInvalidCertificate()’:
certificate_db.cc:525: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘const _STACK*’ for argument ‘1’ to
‘int sk_num(const _STACK*)’
certificate_db.cc:526: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘const _STACK*’ for argument ‘1’ to
‘void* sk_value(const _STACK*, int)’
certificate_db.cc: In member function ‘bool
Ssl::CertificateDb::deleteOldestCertificate()’:
certificate_db.cc:549: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘const _STACK*’ for argument ‘1’ to
‘int sk_num(const _STACK*)’
certificate_db.cc:556: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘const _STACK*’ for argument ‘1’ to
‘void* sk_value(const _STACK*, int)’
certificate_db.cc: In member function ‘bool
Ssl::CertificateDb::deleteByHostname(const std::string&)’:
certificate_db.cc:573: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘const _STACK*’ for argument ‘1’ to
‘int sk_num(const _STACK*)’
certificate_db.cc:574: error: cannot convert
‘stack_st_OPENSSL_PSTRING*’ to ‘const _STACK*’ for argument ‘1’ to
‘void* sk_value(const _STACK*, int)’

Regards,
Nipun Talukdar
Bangalore
India
Received on Thu Aug 09 2012 - 08:05:02 MDT

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