ports/174788: squid32 fails to build when heimdal 1.5.2 installed (deprecated warnings)

Dewayne dewayne at amdg.etowns.org
Fri Dec 28 22:20:01 UTC 2012


>Number:         174788
>Category:       ports
>Synopsis:       squid32 fails to build when heimdal 1.5.2 installed (deprecated warnings)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 28 22:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dewayne
>Release:        FreeBSD9.1R
>Organization:
>Environment:
FreeBSD b2 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Thu Dec 27 00:59:14 EST 2012     root at hs:/usr/obj/usr/src/sys/hqdev-amd64-padlock-smp  i386
>Description:
squid32 fails to compile due to deprecated warnings that are treated as errors.

cc1plus: warnings being treated as errors
peer_proxy_negotiate_auth.cc: In function 'int krb5_create_cache(char*, char*)':
peer_proxy_negotiate_auth.cc:256: warning: 'krb5_princ_realm' is deprecated (declared at /usr/local/include/krb5-protos.h:3254)
peer_proxy_negotiate_auth.cc:256: warning: 'krb5_princ_realm' is deprecated (declared at /usr/local/include/krb5-protos.h:3254)
peer_proxy_negotiate_auth.cc:401: warning: 'krb5_get_init_creds_opt_init' is deprecated (declared at /usr/local/include/krb5-protos.h:2285)
peer_proxy_negotiate_auth.cc:401: warning: 'krb5_get_init_creds_opt_init' is deprecated (declared at /usr/local/include/krb5-protos.h:2285)
*** [peer_proxy_negotiate_auth.o] Error code 1

Stop in /var/ports/usr/ports/www/squid32/work/squid-3.2.4/src.
*** [all-recursive] Error code 1
--------------------

An earlier version of heimdal, version 1.4 does not have the deprecated messages in the include file that heimdal 1.5.2 has. Such as:
KRB5_LIB_FUNCTION krb5_realm * KRB5_LIB_CALL
krb5_princ_realm (
        krb5_context /*context*/,
        krb5_principal /*principal*/)
     KRB5_DEPRECATED_FUNCTION("Use X instead");

KRB5_LIB_FUNCTION void KRB5_LIB_CALL
krb5_princ_set_realm (
        krb5_context /*context*/,
        krb5_principal /*principal*/,
        krb5_realm */*realm*/)
     KRB5_DEPRECATED_FUNCTION("Use X instead");
>How-To-Repeat:
cd /usr/ports/security/heimdal && make package
cd /usr/ports/www/squid32 && make 

using these variables in ports.conf 
www/squid32: PREFIX=/usr/local | squid32_UNSET=AUTH_NIS IDENT SNMP IPV6 HTCP WCCP WCCPV2 | squid32_SET=AUTH_KERB AUTH_LDAP AUTH_SASL AUTH_SMB KQUEUE


>Fix:
Unknown - either squid32 source needs to reflect current heimdal calls, or (and perhaps a little easier) the -Werror needs to be removed from the build.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list