Re: [squid-users] Compiling squid-3.1.15 + openssl 1.0.0c

From: V�ctor Jos� Hern�ndez G�mez <vjhergom_at_cic.upo.es>
Date: Tue, 06 Sep 2011 14:43:12 +0200

>>>> I am trying to compile squid from source, using 3.1.15 and openssl
>>>> 1.0.0c...
>>>>
>>>> Server: RedHat 5.5 x86_64
>>>> GCC version is 4.1.2

>>> Small mistake on the fixes for OpenSSL 1.0.0d problems.
>>> Please try this patch:
>>>
>>>
http://www.squid-cache.org/Versions/v3/3.HEAD/changesets/squid-3-11702.patch

>> I am getting the same error.
>>
>> Can I help you any other way?

> Doh. I should have checked the filename. (you will need that patch when
> you get to certificates_db.cc anyway).

> Yes, if you can find out whether those functions are actually defined in
> your openssl headers and if so why they are not being included from
> openssl/ssl.h it would help a lot.
>
> Amos

The error:

/usr/local/src/squid-3.1.15/src/ssl/gadgets.cc:108: undefined reference
to `X509_set_issuer_name'
/usr/local/src/squid-3.1.15/src/ssl/gadgets.cc:115: undefined reference
to `X509_set_notAfter'
/usr/local/src/squid-3.1.15/src/ssl/gadgets.cc:120: undefined reference
to `X509_set_subject_name'
/usr/local/src/squid-3.1.15/src/ssl/gadgets.cc:125: undefined reference
to `X509_set_pubkey'

Functions are defined in x509.h, located in /usr/local/ssl/include/openssl:

x509.h:int X509_set_issuer_name(X509 *x, X509_NAME *name);
x509.h:int X509_set_notAfter(X509 *x, const ASN1_TIME *tm);
x509.h:int X509_set_subject_name(X509 *x, X509_NAME *name);
x509.h:int X509_set_pubkey(X509 *x, EVP_PKEY *pkey);

The ssl.h file include openssl/x509.h, but I am not able to interpret
correctly when the inclusion works. Let me know the way to do it,
please. May I send you ssl.h?

Thanks,

--
V�ctor
Received on Tue Sep 06 2011 - 12:43:12 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 06 2011 - 12:00:02 MDT