Re: gcc more strict about prototypes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 09, 2009 at 12:44:48PM +0200, Dan Horák wrote:
> I have found that multiple package successfully rebuild during the
> mass-rebuild cannot be rebuild now because they contain a function
> called getline() and its prototype conflicts with getline() from
> stdio.h. getline() is only one example, other functions are also
> affected (fexecve in star). Please see build logs for details.

It is not related to gcc in any way, just the default when you don't
select any feature test macros (see
info libc 'Feature Test Macros'
) changed in F11 from F10, now you get by default _POSIX_C_SOURCE 200809L
stuff, before you got _POSIX_C_SOURCE 200112L.  POSIX 2008 newly contains
many GNU functions, like getline, fexecve, etc.

So, either fix up the packages to use different names of local functions
(preferrable), or use some Feature Test Macro to pick whatever the program
expects to be compiled with.

	Jakub

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux