[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] Error in installing libiconv for linux
From: |
Bruno Haible |
Subject: |
Re: [bug-gnu-libiconv] Error in installing libiconv for linux |
Date: |
Sat, 01 Oct 2016 17:31:04 +0200 |
User-agent: |
KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) |
Nikita Shanker wrote on 2016-09-06:
> I am getting the following error when trying to install it. This error
> below is thrown during compilatin. On renaming 'gets' as 'fgets' it
> compiles successfully and installation is successful.I suppose this is a
> bug but let me know if its not and needs some other solution.
>
> In file included from progname.c:26:0:
> ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
> _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
Thanks for the report. It wasn't a typo; rather the issue is that the code
was assuming that 'gets' is a standard function. But now it has been withdrawn
from the standards and is therefore not declared in some <stdio.h> header files
by default.
This has been fixed in gnulib, meanwhile:
http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-gnu-libiconv] Error in installing libiconv for linux,
Bruno Haible <=