From owner-freebsd-stable@FreeBSD.ORG Sat Apr 13 21:06:43 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 82D52456 for ; Sat, 13 Apr 2013 21:06:43 +0000 (UTC) (envelope-from dparussalla@baysidegrp.com.au) Received: from baysidegrp.com.au (gateway.baysidegrp.com.au [61.88.141.194]) by mx1.freebsd.org (Postfix) with ESMTP id E405413A9 for ; Sat, 13 Apr 2013 21:06:42 +0000 (UTC) Received: (qmail 27389 invoked by uid 0); 14 Apr 2013 07:06:41 +1000 Received: by simscan 1.4.0 ppid: 27385, pid: 27386, t: 0.0084s scanners: attach: 1.4.0 clamav: 0.97.6/m: Received: from localhost (HELO mail.baysidegrp.com.au) (127.0.0.1) by baysidegrp.com.au with ESMTP; 14 Apr 2013 07:06:41 +1000 Received: from 150.101.163.50 (SquirrelMail authenticated user dparussalla@baysidegrp.com.au) by mail.baysidegrp.com.au with HTTP; Sun, 14 Apr 2013 07:06:41 +1000 (EST) Message-ID: <25242.150.101.163.50.1365887201.squirrel@mail.baysidegrp.com.au> In-Reply-To: <165AD359-E8E3-4201-B070-5A6B3C452BD8@FreeBSD.org> References: <49725.150.101.163.50.1365815718.squirrel@mail.baysidegrp.com.au> <165AD359-E8E3-4201-B070-5A6B3C452BD8@FreeBSD.org> Date: Sun, 14 Apr 2013 07:06:41 +1000 (EST) Subject: Re: gnutls compile issues From: dparussalla@baysidegrp.com.au To: "Dimitry Andric" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 21:06:43 -0000 Thanks Dimitry, I've tried with the ENV variable in the Makefile. But still getting the same error. Any other ideas? I need to get the gnutls working on this system. Cheers, On Sat, April 13, 2013 21:52, Dimitry Andric wrote: > 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. >> >> Any help much appropriated. >> >> >> checking whether uses 'inline' correctly... no configure: >> error: cannot be used with this compiler (cc >> -std=gnu99 -O2 -fno-strict-aliasing -pipe -I/usr/local/include/p11-kit-1 >> -I/usr/local/include -fPIC -D_THREAD_SAFE). >> This is a known interoperability problem of glibc <= 2.5 with gcc >= 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 >> > 0d706c2e18c929d0e69a621>, >> or - Use a gcc version older than 4.3, or >> - Don't use the flags -std=c99 or -std=gnu99. >> > > > 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=c99 or -std=gnu99 is > *not* used. > > > For example, if you are building this manually, try setting > ac_cv_prog_cc_c99=no in configure's environment, like so: > > ac_cv_prog_cc_c99=no ./configure > > If you are building this from the port, try adding a line: > > > CONFIGURE_ENV+= ac_cv_prog_cc_c99=no > > > in the port's Makefile. > >