Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2009 10:42:52 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Ben Kelly <ben@wanderview.com>
Cc:        Gustau Perez <gperez@entel.upc.edu>, freebsd-current@freebsd.org
Subject:   Re: Inline definition problem in current
Message-ID:  <790a9fff0903240842k6ab28ab5k1d1a46714fdfe804@mail.gmail.com>
In-Reply-To: <D7A9B95D-AD8D-4F2A-B077-E48E9296EAEB@wanderview.com>
References:  <49C80DBA.80407@entel.upc.edu> <D7A9B95D-AD8D-4F2A-B077-E48E9296EAEB@wanderview.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 23, 2009 at 10:05 PM, Ben Kelly <ben@wanderview.com> wrote:
> On Mar 23, 2009, at 6:31 PM, Gustau Perez wrote:
>>
>> a few time ago I switched to current, right now I've it updated to
>> yesterday. =A0While compiling some ports (in fact, building x11/gnome2) =
I
>> found that some of them (written in C) are using =A0some inline function=
s (I
>> guess it is because the compiler will replace the call to the function w=
ith
>> the function itself). The problem is that gcc fails with the following
>> message :
>> =A0 =A0 =A0 =A0 =A0 =A0 error: nested function 'XXX' declared but never =
defined
>>
>> =A0checking 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 definit=
ion
>> to static.
>>
>> =A0Checking pontyhat shows me that many ports are failing because of thi=
s
>> problem. What I can understand is why is this happening, because the sam=
e
>> ports compiles fine in STABLE and the compilers's version in base seems =
to
>> be the same (gcc (GCC) 4.2.1 20070719 =A0[FreeBSD], the same in current)
>> =A0Can anyone help with this problem ?
>
> Check out the arch@ discussion about "C99 Inlines" and this commit:
>
> =A0http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D189824
>
> It seems like they might be related.
>
> Hope that helps.
>
I can confirm that reverting this change allows the audio/faad port to buil=
d.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0903240842k6ab28ab5k1d1a46714fdfe804>