On 29/11/2011 11:00 p.m., Jose-Marcio Martins da Cruz wrote:
>
> Hello,
>
> As I told yesterday, I was looking for a compile error of squid 3.1.16 
> under Solaris.
>
> The error appears when I configure it with --enable-auth=basic
>
> During compile phase, the process stops with an error saying that it 
> didn't find libsasl2, which is normal as Solaris doesn't have this 
> library, but libsasl (without 2).
>
> The compilation stops when compiling the helper basic_auth/SASL.
>
> It seems to me that the problem come from this piece of code in 
> configure.ac :
>
> ****************************************************
> dnl Check for Cyrus SASL
> if test "$require_sasl" = "yes"; then
>         AC_CHECK_HEADERS(sasl/sasl.h sasl.h)
>         if test "$ac_cv_header_sasl_sasl_h" = "yes"; then
>                 AC_MSG_NOTICE([using SASL2])
>                 LIBSASL="-lsasl2"
>         else
>                 if test "$ac_cv_header_sasl_h" = "yes"; then
>                         AC_MSG_NOTICE([using SASL])
>                         LIBSASL="-lsasl"
>                 else
>                         AC_MSG_ERROR(Neither SASL nor SASL2 found)
>                 fi
>         fi
>         AC_SUBST(LIBSASL)
> fi
>
> *****************************
>
> As the decision of linking against libsasl or libsasl2 results from 
> how to include sasl.h : sasl.h or sasl/sasl.h. This is true with Cyrus 
> SASL, but not with Solaris. I changed it, by hand, on the created 
> Makefile but not tested, as authentication is done here against LDAP, 
> not SASL.
>
> Hope this help
>
>
>
Thank you. I've ported the better Squid-3.2 configuration checks down to 
3.1 now. You should find it fixed in the next release.
Amos
Received on Tue Nov 29 2011 - 12:33:53 MST
This archive was generated by hypermail 2.2.0 : Tue Nov 29 2011 - 12:00:03 MST