From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 11 09:01:47 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C3774C2 for ; Wed, 11 Mar 2015 09:01:47 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A91309C0 for ; Wed, 11 Mar 2015 09:01:47 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t2B91lMk031846 for ; Wed, 11 Mar 2015 09:01:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198089] New port: www/squid35 Date: Wed, 11 Mar 2015 09:01:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: timp87@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 09:01:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198089 --- Comment #2 from timp87@gmail.com --- Created attachment 154185 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154185&action=edit squid35-11.03.15.shar Difference between previous shar version: - fix install on FreeBSD 9 and 8, I hope; - disable gnutls. It affects only squidclient. The root of build problem is NIS auth helper. I'm not a smart person here, so, please, don't hit me hard =) The squid's configure script has code in 31845-31865 lines which decides if we can build NIS helper: ... BUILD_HELPER="NIS" for ac_header in sys/types.h rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h crypt.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #if HAVE_RPC_RPC_H #include #endif " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else BUILD_HELPER="" fi ... There is a list of headers which must be tried to compile. What's wrong here? 1. rpcsvc/yp_prot.h can't be compiled on FreeBSD 8, 9 and 10 because of this active PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188247. Configure script tells us in config.log: usr/include/rpcsvc/yp_prot.h:71:15: error: redeclaration of C++ built-in type 'bool' typedef u_int bool; ^ 2. crypt.h can't be compiled on FreeBSD < 10. Yes, I pointed it to right place, to rpcsvc/crypt.h, see the files/patch-configure_crypt.h. Configure script tells us in config.log: /usr/include/rpcsvc/crypt.h:30: error: declaration of 'des_dir desargs::des_dir' /usr/include/rpcsvc/crypt.h:20: error: changes meaning of 'des_dir' from 'typedef enum des_dir des_dir' /usr/include/rpcsvc/crypt.h:31: error: declaration of 'des_mode desargs::des_mode' /usr/include/rpcsvc/crypt.h:26: error: changes meaning of 'des_mode' from 'typedef enum des_mode des_mode' Why it worked in squid 3.4 branch? The result of these header checks wasn't handled properly. That's all. So I just made the same - returned that broken behaviour, see the files/patch-configure-NIS. TODO: - rewrite rc script to support running multiple instances (http://wiki.squid-cache.org/MultipleInstances); - provide single_option to build squid with different kerberos implementations (base, security/heimdal, security/krb5). Active problems, i.e. why we can't add it to ports tree right now: 1. In some difficult reproducible cases negotiate_kerberos_auth crashes and squid starts and stops in loop. 2. Sometimes squid crashes - "kernel: pid 44436 (squid), uid 100: exited on signal 6 (core dumped)". I'm testing squid-3.5 on FreeBSD 10.1-RELEASE amd64. P.S. I'd highly appreciate any help and ideas! I don't have much time and skills to investigate the problems, but I'm doing my best. -- You are receiving this mail because: You are the assignee for the bug.