From owner-freebsd-current@FreeBSD.ORG Wed Mar 25 03:32:32 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 1D7CC1065670 for ; Wed, 25 Mar 2009 03:32:32 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id D40288FC15 for ; Wed, 25 Mar 2009 03:32:31 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id n2P3Yqjv017553; Tue, 24 Mar 2009 23:34:52 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id n2P3YpdK017552; Tue, 24 Mar 2009 23:34:51 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 24 Mar 2009 23:34:51 -0400 From: David Schultz To: Gustau Perez Message-ID: <20090325033451.GA17442@zim.MIT.EDU> Mail-Followup-To: Gustau Perez , freebsd-current@FreeBSD.ORG References: <49C80DBA.80407@entel.upc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49C80DBA.80407@entel.upc.edu> Cc: freebsd-current@FreeBSD.ORG Subject: Re: 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: Wed, 25 Mar 2009 03:32:32 -0000 On Mon, Mar 23, 2009, Gustau Perez wrote: > 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) Which other ports were broken for this reason?