From owner-freebsd-stable@FreeBSD.ORG Sat Apr 13 11:52:41 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D89B961E for ; Sat, 13 Apr 2013 11:52:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id A2CD1F7D for ; Sat, 13 Apr 2013 11:52:41 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::3031:e968:43b2:9c42] (unknown [IPv6:2001:7b8:3a7:0:3031:e968:43b2:9c42]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 814505C44; Sat, 13 Apr 2013 13:52:38 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: gnutls compile issues From: Dimitry Andric In-Reply-To: <49725.150.101.163.50.1365815718.squirrel@mail.baysidegrp.com.au> Date: Sat, 13 Apr 2013 13:52:33 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <165AD359-E8E3-4201-B070-5A6B3C452BD8@FreeBSD.org> References: <49725.150.101.163.50.1365815718.squirrel@mail.baysidegrp.com.au> To: dparussalla@baysidegrp.com.au X-Mailer: Apple Mail (2.1503) Cc: stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Apr 2013 11:52:41 -0000 On Apr 13, 2013, at 03:15, dparussalla@baysidegrp.com.au wrote: > I am having issues compiling gnutls-2.12.23 on Freebsd 6.4 stable > platform. Please find the following errors. >=20 > Any help much appropriated. >=20 > checking whether uses 'inline' correctly... no > configure: error: cannot be used with this compiler (cc > -std=3Dgnu99 -O2 -fno-strict-aliasing -pipe = -I/usr/local/include/p11-kit-1 =20 > -I/usr/local/include -fPIC -D_THREAD_SAFE). > This is a known interoperability problem of glibc <=3D 2.5 with gcc >=3D= 4.3 in > C99 mode. You have four options: > - Add the flag -fgnu89-inline to CC and reconfigure, or > - Fix your include files, using parts of > = , > or > - Use a gcc version older than 4.3, or > - Don't use the flags -std=3Dc99 or -std=3Dgnu99. Let me start by saying 6.4 is totally unsupported, but you are most likely aware of that. :-) That said, I don't think 6.4 already had complete C99 support, so this is probably why the configure script fails. You can see the script itself gives you a few hints for a workaround. Since 6.4 is already using a gcc version older than 4.3, and the "fix your include files" hint is only valid for glibc, the best option is to make sure -std=3Dc99 or -std=3Dgnu99 is *not* used. For example, if you are building this manually, try setting ac_cv_prog_cc_c99=3Dno in configure's environment, like so: ac_cv_prog_cc_c99=3Dno ./configure If you are building this from the port, try adding a line: CONFIGURE_ENV+=3D ac_cv_prog_cc_c99=3Dno in the port's Makefile.