From owner-freebsd-ports@FreeBSD.ORG Mon Nov 11 12:46:24 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 21BC5DB2 for ; Mon, 11 Nov 2013 12:46:24 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A7E72487 for ; Mon, 11 Nov 2013 12:46:23 +0000 (UTC) Received: from [192.168.2.2] (unknown [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 004BE5C43; Mon, 11 Nov 2013 13:46:12 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_5D0C090F-03CA-4AD3-B8EA-CC07ED319E73"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: www/squid32 on 10-beta3 From: Dimitry Andric In-Reply-To: <52809901.1040900@gmail.com> Date: Mon, 11 Nov 2013 13:46:01 +0100 Message-Id: References: <52809901.1040900@gmail.com> To: Johan Hendriks X-Mailer: Apple Mail (2.1822) Cc: FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 12:46:24 -0000 --Apple-Mail=_5D0C090F-03CA-4AD3-B8EA-CC07ED319E73 Content-Type: multipart/mixed; boundary="Apple-Mail=_1B78168C-A5AB-4630-8283-C2D83AAC3E94" --Apple-Mail=_1B78168C-A5AB-4630-8283-C2D83AAC3E94 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 11 Nov 2013, at 09:44, Johan Hendriks wrote: > I try to install www/squid32 on my FreeBSD 10-BETA3 server, but it = fails with the following error. >=20 > Making all in base > /bin/sh ../../libtool --tag=3DCXX --mode=3Dcompile c++ = -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src = -I../../include -I/usr/include -I/usr/include -I../../libltdl = -I/usr/include -I/usr/include -O2 -pipe -march=3Dcore2 = -fno-strict-aliasing -Wno-unused-private-field -I/usr/local/include -MT = AsyncCall.lo -MD -MP -MF .deps/AsyncCall.Tpo -c -o AsyncCall.lo = AsyncCall.cc > libtool: compile: c++ -DHAVE_CONFIG_H -I../.. -I../../include = -I../../lib -I../../src -I../../include -I/usr/include -I/usr/include = -I../../libltdl -I/usr/include -I/usr/include -O2 -pipe -march=3Dcore2 = -fno-strict-aliasing -Wno-unused-private-field -I/usr/local/include -MT = AsyncCall.lo -MD -MP -MF .deps/AsyncCall.Tpo -c AsyncCall.cc -fPIC = -DPIC -o .libs/AsyncCall.o > In file included from AsyncCall.cc:5: > In file included from ../../src/squid-old.h:164: > In file included from ../../src/typedefs.h:118: > In file included from ../../src/anyp/ProtocolType.h:5: > In file included from /usr/include/c++/v1/ostream:130: > In file included from /usr/include/c++/v1/ios:216: > In file included from /usr/include/c++/v1/__locale:15: > In file included from /usr/include/c++/v1/string:432: > /usr/include/c++/v1/cstdio:139:9: error: no member named > 'ERROR_sprintf_UNSAFE_IN_SQUID' in the global namespace > using ::sprintf; > ~~^ > ../../compat/unsafe.h:10:17: note: expanded from macro 'sprintf' > #define sprintf ERROR_sprintf_UNSAFE_IN_SQUID > ^ > 1 error generated. Please try the attached patch. I already posted a similar patch for = squid33. -Dimitry --Apple-Mail=_1B78168C-A5AB-4630-8283-C2D83AAC3E94 Content-Disposition: attachment; filename=www__squid32-fix-cstdio-1.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="www__squid32-fix-cstdio-1.diff" Content-Transfer-Encoding: 7bit Index: www/squid32/files/patch-compat-stdio.h =================================================================== --- www/squid32/files/patch-compat-stdio.h (revision 0) +++ www/squid32/files/patch-compat-stdio.h (working copy) @@ -0,0 +1,11 @@ +--- compat/stdio.h.orig 2013-07-13 15:22:32.000000000 +0200 ++++ compat/stdio.h 2013-11-11 12:56:24.000000000 +0100 +@@ -46,7 +46,7 @@ + #endif /* __USE_FILE_OFFSET64 && !__REDIRECT */ + + // Finally import the stuff we actually use +-#if HAVE_CSTDIO ++#if defined(__cplusplus) && HAVE_CSTDIO + #include + #endif + Index: www/squid32/files/patch-configure =================================================================== --- www/squid32/files/patch-configure (revision 333486) +++ www/squid32/files/patch-configure (working copy) @@ -1,5 +1,14 @@ --- configure.orig 2012-10-21 18:10:03.000000000 +0200 +++ configure 2012-10-21 18:27:39.000000000 +0200 +@@ -18416,7 +18416,7 @@ + GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'` + case "$host" in + i386-*-freebsd*) +- if test $GCCVER2 -lt 300 ; then ++ if test "x$GCCVER" != x -a $GCCVER2 -lt 300 ; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error $? "GCC $GCCVER causes a coredump on $host. @@ -22154,7 +22154,7 @@ done @@ -45,3 +54,11 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lkrb5" >&5 $as_echo_n "checking for error_message in -lkrb5... " >&6; } if ${ac_cv_lib_krb5_error_message+:} false; then : +@@ -24033,6 +24033,7 @@ + cassert \ + crypt.h \ + cstdarg \ ++ cstdio \ + cstdlib \ + cstring \ + list \ Index: www/squid32/files/patch-include-Array.h =================================================================== --- www/squid32/files/patch-include-Array.h (revision 0) +++ www/squid32/files/patch-include-Array.h (working copy) @@ -0,0 +1,33 @@ +--- include/Array.h.orig 2013-07-13 15:22:32.000000000 +0200 ++++ include/Array.h 2013-11-11 13:32:43.000000000 +0100 +@@ -44,12 +44,19 @@ + #include "compat/assert.h" + + /* iterator support */ ++#include + + template + class VectorIteratorBase + { + + public: ++ typedef typename C::value_type value_type; ++ typedef std::forward_iterator_tag iterator_category; ++ typedef typename C::pointer pointer; ++ typedef typename C::reference reference; ++ typedef typename C::difference_type difference_type; ++ + VectorIteratorBase(); + VectorIteratorBase(C &); + VectorIteratorBase(size_t, C &); +@@ -81,8 +88,10 @@ + public: + typedef E value_type; + typedef E* pointer; ++ typedef E& reference; + typedef VectorIteratorBase > iterator; + typedef VectorIteratorBase const> const_iterator; ++ typedef ptrdiff_t difference_type; + + void *operator new (size_t); + void operator delete (void *); Index: www/squid32/files/patch-include-autoconf.h.in =================================================================== --- www/squid32/files/patch-include-autoconf.h.in (revision 0) +++ www/squid32/files/patch-include-autoconf.h.in (working copy) @@ -0,0 +1,12 @@ +--- include/autoconf.h.in.orig 2013-07-13 15:22:53.000000000 +0200 ++++ include/autoconf.h.in 2013-11-11 13:04:46.000000000 +0100 +@@ -151,6 +151,9 @@ + /* Define to 1 if you have the header file. */ + #undef HAVE_CSTDARG + ++/* Define to 1 if you have the header file. */ ++#undef HAVE_CSTDIO ++ + /* Define to 1 if you have the header file. */ + #undef HAVE_CSTDLIB + --Apple-Mail=_1B78168C-A5AB-4630-8283-C2D83AAC3E94 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_1B78168C-A5AB-4630-8283-C2D83AAC3E94-- --Apple-Mail=_5D0C090F-03CA-4AD3-B8EA-CC07ED319E73 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlKA0Y0ACgkQsF6jCi4glqOUCgCgtuQFStAgW7JeBWBPMhaqzVMj R5QAnjSdZg5i9qHbd1mWmwGnR9qVozYP =BNpZ -----END PGP SIGNATURE----- --Apple-Mail=_5D0C090F-03CA-4AD3-B8EA-CC07ED319E73--