From owner-freebsd-current@FreeBSD.ORG Tue Mar 24 01:26:16 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24026106564A for ; Tue, 24 Mar 2009 01:26:16 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 8D39D8FC17 for ; Tue, 24 Mar 2009 01:26:15 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n2NMXOsj015718 for ; Mon, 23 Mar 2009 23:33:24 +0100 Received: from [192.168.100.184] ([88.11.103.61]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009032323333163:169443 ; Mon, 23 Mar 2009 23:33:31 +0100 Message-ID: <49C80DBA.80407@entel.upc.edu> Date: Mon, 23 Mar 2009 23:31:22 +0100 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: freebsd-current@freebsd.org X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/03/2009 23:33:31, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/03/2009 23:33:32, Serialize complete at 23/03/2009 23:33:32 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Mon, 23 Mar 2009 23:33:24 +0100 (CET) Subject: Inline definition problem in current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 01:26:16 -0000 Hi to the list, a few time ago I switched to current, right now I've it updated to yesterday. While compiling some ports (in fact, building x11/gnome2) I found that some of them (written in C) are using some inline functions (I guess it is because the compiler will replace the call to the function with the function itself). The problem is that gcc fails with the following message : error: nested function 'XXX' declared but never defined checking the code, the function is declared and then implemented in a header file which is included in the offending .c file. The function is declared as 'inline'. The only solution I found is to change the definition to static. Checking pontyhat shows me that many ports are failing because of this problem. What I can understand is why is this happening, because the same ports compiles fine in STABLE and the compilers's version in base seems to be the same (gcc (GCC) 4.2.1 20070719 [FreeBSD], the same in current) Can anyone help with this problem ? Greets, Gus