[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-idutils] Error while compiling idutils-4.6
From: |
Ludovic Courtès |
Subject: |
Re: [bug-idutils] Error while compiling idutils-4.6 |
Date: |
Sun, 30 Dec 2012 17:47:34 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Hi,
Anders Thøgersen <address@hidden>
skribis:
> I thought I would report an error I get while compilng idutils-4.6 on
> a Samsung Chromebook:
>
> ./stdio.h:1030:1: error: 'gets' undeclared here (not in a function)
That’s because a Gnulib bug that triggers when building against GNU libc
2.16+, fixed by:
commit 66712c23388e93e5c518ebc8515140fa0c807348
Author: Eric Blake <address@hidden>
Date: Thu Mar 29 13:30:41 2012 -0600
stdio: don't assume gets any more
Gnulib intentionally does not have a gets module, and now that C11
and glibc have dropped it, we should be more proactive about warning
any user on a platform that still has a declaration of this dangerous
interface.
* m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
support.
* modules/stdio (Makefile.am): Likewise.
* lib/stdio-read.c (gets): Likewise.
* tests/test-stdio-c++.cc: Likewise.
* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
* lib/stdio.in.h (gets): Make warning occur in more places.
* doc/posix-functions/gets.texi (gets): Update documentation.
Reported by Christer Solskogen.
Signed-off-by: Eric Blake <address@hidden>
Thanks,
Ludo’.