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

Bug#704598: libc0.1-dev: sys/mount.h requires C99



On 3 April 2013 21:39, Pino Toscano <pino@debian.org> wrote:
> Alle mercoledì 3 aprile 2013, Steven Chamberlain ha scritto:
>> > $ gcc -D_BSD_SOURCE -std=c90 -o mount mount.c
>>
>> Do any packages actually do this?  Compile with -std=c90 or -ansi or
>> -std and use this header?
>
> This breaks the sys/mount.h detection done by kdelibs, which forces c90
> to stay compatible with older/broken C compilers.
>
> In any case, whatever is the reason, a libc header should compile with
> any C version requested by the application/library.
>

While I understand why kdelibs is doing that, I see no point in Debian
to stay compatible with 23 year old compilers. We can totally claim we
don't support it, as there was no Debian in 1990 =))))
If anything kdelibs debian package will benefit from compiling with
higher / default standards versions.
C99 is a good target for now, while some features enabled in libc (in
experimental I believe) are already from C11 (e.g. TIME_UTC is
defined). I don't think we can claim to have all of debian compiled
with C11 yet, but we should be better at that during jessie cycle.

Regards,

Dmitrijs.


Reply to: