Re: [squid-users] compile error on Squid 3.1.18

From: Jose-Marcio Martins da Cruz <Jose-Marcio.Martins_at_mines-paristech.fr>
Date: Wed, 07 Dec 2011 11:36:26 +0100

Víctor José Hernández Gómez wrote:
> Hi everybody,
>
> the problem related to ssl detection still stands in 3.1.18 branch.
>
> /usr/local/src/squid-3.1.18/src/ssl/gadgets.cc:110: undefined reference
> to `X509_set_issuer_name'
> /usr/local/src/squid-3.1.18/src/ssl/gadgets.cc:117: undefined reference
> to `X509_set_notAfter'
> /usr/local/src/squid-3.1.18/src/ssl/gadgets.cc:122: undefined reference
> to `X509_set_subject_name'
> /usr/local/src/squid-3.1.18/src/ssl/gadgets.cc:127: undefined reference
> to `X509_set_pubkey'
>
> This time I have tried gcc 4.4.6 and OpenSSL 0.9.8r (on a RedHat 6.2
> machine)..
>
> Let me know if I can help you somehow to bypass this compilation error.

Try the following :

My problem (a link problem) was solved when I inverted the order of SSLLIB and SSL_LIBS inside
src/Makefile

squid/squid-3.1.18 > diff src/Makefile.org src/Makefile
1893c1893
< $(SSLLIB) $(SSL_LIBS) -lmiscutil $(EPOLL_LIBS) $(MINGW_LIBS) \

---
 >       $(SSL_LIBS) $(SSLLIB) -lmiscutil $(EPOLL_LIBS) $(MINGW_LIBS) \
squid/squid-3.1.18 >
That's how I solved it.
>
> Best regards,
> --
> Víctor J. Hernández Gómez
>
>
>
>>
>> My problem (a link problem) was solved when I inverted the order of
>> SSLLIB and SSL_LIBS inside src/Makefile
>>
>> squid/squid-3.1.18 > diff src/Makefile.org src/Makefile
>> 1893c1893
>> < $(SSLLIB) $(SSL_LIBS) -lmiscutil $(EPOLL_LIBS) $(MINGW_LIBS) \
>> ---
>> > $(SSL_LIBS) $(SSLLIB) -lmiscutil $(EPOLL_LIBS) $(MINGW_LIBS) \
>> squid/squid-3.1.18 >
>>
>> I'm using gcc-3.4.6.
-- 
  ---------------------------------------------------------------
  Jose Marcio MARTINS DA CRUZ           http://j-chkmail.ensmp.fr
  Ecole des Mines de Paris
  60, bd Saint Michel                      75272 - PARIS CEDEX 06
  mailto:Jose-Marcio.Martins_at_mines-paristech.fr
Received on Wed Dec 07 2011 - 10:36:50 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 07 2011 - 12:00:02 MST