[squid-users] squid3/4 compilation error with Centos8/RH8

Eliezer Croitoru ngtech1ltd at gmail.com
Mon May 2 18:57:54 UTC 2022


Try to use the next SRPM:

https://www.ngtech.co.il/repo/centos/8/SRPMS/squid-4.17-8.el8.src.rpm

 

Good Luck,

 

----

Eliezer Croitoru

NgTech, Tech Support

Mobile: +972-5-28704261

Email:  <mailto:ngtech1ltd at gmail.com> ngtech1ltd at gmail.com

 

From: squid-users <squid-users-bounces at lists.squid-cache.org> On Behalf Of
Ahmad Alzaeem
Sent: Monday, May 2, 2022 21:25
To: squid-users at lists.squid-cache.org
Subject: [squid-users] squid3/4 compilation error with Centos8/RH8

 

 

 

 

Hello Team ,

I found I only was able to build squid 5.x on Centos8/RH8 -  (Not able to
build 3.x or 4.x )

I was able to build  squid 3.x and 4.x on RH7/Centos7 .

 

It seems Its libssl error or so based on compilation error below (not sure
if need to upgrade or downgrade GCC) 

 

////// 

cache_cf.o: In function `parseOneConfigFile(char const*, unsigned int)':

cache_cf.cc:(.text+0x805): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.cc:(.text+0xc2b): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.cc:(.text+0xd78): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.cc:(.text+0x10a4): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.o: In function `parseConfigFileOrThrow(char const*)':

cache_cf.cc:(.text+0x1295): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.o:cache_cf.cc:(.text+0x142e): more undefined references to
`Debug::Start[abi:cxx11](int, int)' follow

cache_cf.o: In function `dump_acl(StoreEntry*, char const*, ACL*)':

cache_cf.cc:(.text+0x3bc5): undefined reference to
`ACL::dumpOptions[abi:cxx11]()'

cache_cf.o: In function `parse_address(Ip::Address*)':

cache_cf.cc:(.text+0x3f7a): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.o: In function `parse_acl_tos(acl_tos**)':

cache_cf.cc:(.text+0x432e): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.o: In function `parse_http_header_access(HeaderManglers**)':

cache_cf.cc:(.text+0x49d7): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.cc:(.text+0x4a6d): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.o: In function `parse_http_header_replace(HeaderManglers**)':

cache_cf.cc:(.text+0x4cc5): undefined reference to
`Debug::Start[abi:cxx11](int, int)'

cache_cf.o:cache_cf.cc:(.text+0x4d5b): more undefined references to
`Debug::Start[abi:cxx11](int, int)' follow

client_side.o: In function `EVP_PKEY_up_ref':

client_side.cc:(.text.EVP_PKEY_up_ref[EVP_PKEY_up_ref]+0x34): undefined
reference to `CRYPTO_add_lock'

client_side.o: In function `X509_up_ref':

client_side.cc:(.text.X509_up_ref[X509_up_ref]+0x34): undefined reference to
`CRYPTO_add_lock'

anyp/.libs/libanyp.a(PortCfg.o): In function
`Security::ServerOptions::sk_X509_NAME_free_wrapper::operator()(stack_st_X50
9_NAME*)':

PortCfg.cc:(.text._ZN8Security13ServerOptions25sk_X509_NAME_free_wrapperclEP
18stack_st_X509_NAME[_ZN8Security13ServerOptions25sk_X509_NAME_free_wrapperc
lEP18stack_st_X509_NAME]+0x22): undefined reference to `sk_pop_free'

security/.libs/libsecurity.a(PeerOptions.o): In function
`Security::PeerOptions::createBlankContext() const':

PeerOptions.cc:(.text+0x1896): undefined reference to `SSLv23_client_method'

security/.libs/libsecurity.a(ServerOptions.o): In function
`Security::ServerOptions::createBlankContext() const':

ServerOptions.cc:(.text+0xb4a): undefined reference to
`SSLv23_server_method'

security/.libs/libsecurity.a(ServerOptions.o): In function
`X509_CRL_up_ref':

ServerOptions.cc:(.text.X509_CRL_up_ref[X509_CRL_up_ref]+0x36): undefined
reference to `CRYPTO_add_lock'

security/.libs/libsecurity.a(Session.o): In function `tls_write_method(int,
char const*, int)':

Session.cc:(.text+0x677): undefined reference to `SSL_state'

ssl/.libs/libsslsquid.a(support.o): In function
`Ssl::MaybeSetupRsaCallback(std::shared_ptr<ssl_ctx_st>&)':

support.cc:(.text+0x6c9): undefined reference to
`SSL_CTX_set_tmp_rsa_callback'

ssl/.libs/libsslsquid.a(support.o): In function
`Ssl::matchX509CommonNames(x509_st*, void*, int (*)(void*,
asn1_string_st*))':

support.cc:(.text+0x855): undefined reference to `sk_num'

support.cc:(.text+0x872): undefined reference to `sk_value'

support.cc:(.text+0x8c2): undefined reference to `sk_pop_free'

support.cc:(.text+0x8eb): undefined reference to `sk_pop_free'

ssl/.libs/libsslsquid.a(support.o): In function `ssl_verify_cb(int,
x509_store_ctx_st*)':

support.cc:(.text+0x19be): undefined reference to `sk_pop_free'

ssl/.libs/libsslsquid.a(support.o): In function `ssl_free_CertChain(void*,
void*, crypto_ex_data_st*, int, long, void*)':

support.cc:(.text+0x1ead): undefined reference to `sk_pop_free'

ssl/.libs/libsslsquid.a(support.o): In function `Ssl::Initialize()':

support.cc:(.text+0x2084): undefined reference to `SSL_get_ex_new_index'

support.cc:(.text+0x20b0): undefined reference to `SSL_CTX_get_ex_new_index'

support.cc:(.text+0x20df): undefined reference to `SSL_get_ex_new_index'

support.cc:(.text+0x210c): undefined reference to `SSL_get_ex_new_index'

support.cc:(.text+0x2139): undefined reference to `SSL_get_ex_new_index'

support.cc:(.text+0x2166): undefined reference to `SSL_get_ex_new_index'

support.cc:(.text+0x2193): undefined reference to `SSL_get_ex_new_index'

ssl/.libs/libsslsquid.a(support.o):support.cc:(.text+0x21c0): more undefined
references to `SSL_get_ex_new_index' follow

ssl/.libs/libsslsquid.a(support.o): In function
`sslGetUserCertificateChainPEM(ssl_st*)':

support.cc:(.text+0x2e23): undefined reference to `sk_value'

support.cc:(.text+0x2e4a): undefined reference to `sk_num'

ssl/.libs/libsslsquid.a(support.o): In function
`hasAuthorityInfoAccessCaIssuers(x509_st*)':

support.cc:(.text+0x3aed): undefined reference to `sk_value'

support.cc:(.text+0x3b55): undefined reference to `sk_num'

ssl/.libs/libsslsquid.a(support.o): In function
`Ssl::SSL_add_untrusted_cert(ssl_st*, x509_st*)':

support.cc:(.text+0x43cc): undefined reference to `sk_new_null'

support.cc:(.text+0x440a): undefined reference to `sk_pop_free'

support.cc:(.text+0x447b): undefined reference to `sk_push'

ssl/.libs/libsslsquid.a(support.o): In function
`sk_x509_findIssuer(stack_st_X509*, x509_st*)':

support.cc:(.text+0x44c6): undefined reference to `sk_num'

support.cc:(.text+0x44e3): undefined reference to `sk_value'

ssl/.libs/libsslsquid.a(support.o): In function
`completeIssuers(x509_store_ctx_st*, stack_st_X509*)':

support.cc:(.text+0x4604): undefined reference to `sk_num'

support.cc:(.text+0x4713): undefined reference to `sk_push'

ssl/.libs/libsslsquid.a(support.o): In function
`untrustedToStoreCtx_cb(x509_store_ctx_st*, void*)':

support.cc:(.text+0x4949): undefined reference to `sk_dup'

support.cc:(.text+0x4967): undefined reference to `sk_value'

support.cc:(.text+0x497e): undefined reference to `sk_push'

support.cc:(.text+0x498e): undefined reference to `sk_num'

support.cc:(.text+0x49d4): undefined reference to `X509_STORE_CTX_set_chain'

support.cc:(.text+0x49f6): undefined reference to `X509_STORE_CTX_set_chain'

support.cc:(.text+0x4a02): undefined reference to `sk_free'

ssl/.libs/libsslsquid.a(support.o): In function `squid_OPENSSL_init_ssl()':

support.cc:(.text._Z24squid_OPENSSL_init_sslv[_Z24squid_OPENSSL_init_sslv]+0
x5): undefined reference to `SSL_load_error_strings'

support.cc:(.text._Z24squid_OPENSSL_init_sslv[_Z24squid_OPENSSL_init_sslv]+0
xa): undefined reference to `SSL_library_init'

ssl/.libs/libsslsquid.a(cert_validate_message.o): In function
`Ssl::CertValidationMsg::composeRequest(Ssl::CertValidationRequest const&)':

cert_validate_message.cc:(.text+0x36a): undefined reference to `sk_value'

cert_validate_message.cc:(.text+0x51d): undefined reference to `sk_num'

cert_validate_message.cc:(.text+0x6e8): undefined reference to `sk_find'

ssl/.libs/libsslsquid.a(cert_validate_message.o): In function
`Ssl::CertValidationMsg::parseResponse(Ssl::CertValidationResponse&,
std::string&)':

cert_validate_message.cc:(.text+0x1440): undefined reference to `sk_value'

ssl/.libs/libsslutil.a(gadgets.o): In function
`mimicAuthorityKeyId(Security::LockingPointer<x509_st,
&Security::X509_free_cpp, HardFun<int, x509_st*, &X509_up_ref> >&,
Security::LockingPointer<x509_st, &Security::X509_free_cpp, HardFun<int,
x509_st*, &X509_up_ref> > const&, Security::LockingPointer<x509_st,
&Security::X509_free_cpp, HardFun<int, x509_st*, &X509_up_ref> > const&)':

gadgets.cc:(.text+0x1276): undefined reference to `sk_new_null'

gadgets.cc:(.text+0x12da): undefined reference to `sk_push'

ssl/.libs/libsslutil.a(gadgets.o): In function
`buildCertificate(Security::LockingPointer<x509_st,
&Security::X509_free_cpp, HardFun<int, x509_st*, &X509_up_ref> >&,
Ssl::CertificateProperties const&)':

gadgets.cc:(.text+0x1b24): undefined reference to `X509_set_notBefore'

gadgets.cc:(.text+0x1c30): undefined reference to `X509_set_notAfter'

ssl/.libs/libsslutil.a(gadgets.o): In function
`Ssl::certificateMatchesProperties(x509_st*, Ssl::CertificateProperties
const&)':

gadgets.cc:(.text+0x2db5): undefined reference to `sk_num'

gadgets.cc:(.text+0x2dd2): undefined reference to `sk_value'

gadgets.cc:(.text+0x2de9): undefined reference to `sk_find'

gadgets.cc:(.text+0x2e26): undefined reference to `sk_pop_free'

gadgets.cc:(.text+0x2e3c): undefined reference to `sk_pop_free'

ssl/.libs/libsslutil.a(gadgets.o): In function
`Ssl::sk_GENERAL_NAME_free_wrapper::operator()(stack_st_GENERAL_NAME*)':

gadgets.cc:(.text._ZN3Ssl28sk_GENERAL_NAME_free_wrapperclEP21stack_st_GENERA
L_NAME[_ZN3Ssl28sk_GENERAL_NAME_free_wrapperclEP21stack_st_GENERAL_NAME]+0x2
2): undefined reference to `sk_pop_free'

collect2: error: ld returned 1 exit status

libtool: link: rm -f ".libs/squidS.o"

make[3]: *** [Makefile:6356: squid] Error 1

make[3]: Leaving directory '/root/KrazyNetworks.com/squid-4.8/src'

make[2]: *** [Makefile:7126: all-recursive] Error 1

make[2]: Leaving directory '/root/KrazyNetworks.com/squid-4.8/src'

make[1]: *** [Makefile:6136: all] Error 2

make[1]: Leaving directory '/root/KrazyNetworks.com

 

 

 

 

 

gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper

OFFLOAD_TARGET_NAMES=nvptx-none

OFFLOAD_TARGET_DEFAULT=1

Target: x86_64-redhat-linux

Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-shared --enable-threads=posix --enable-checking=release
--enable-multilib --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-gcc-major-version-only
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array
--with-isl --disable-libmpx --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux

Thread model: posix

gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)

 

 

 

 

 

 

 

 

Is there any flag I need to pass for RH8/Centos8 so it compile older version
of squid like 3.x and 4.5 ?

 

 

Thanks 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220502/5fc508da/attachment-0001.htm>


More information about the squid-users mailing list