bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] Error building libiconv-1.14 with gcc 6.2.1


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] Error building libiconv-1.14 with gcc 6.2.1
Date: Thu, 24 Nov 2016 20:57:56 +0100
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Benson Muite wrote:
> Am trying to build libiconv 1.14 on fedora 24 using gcc 6.2.1 and get 
> the following error (libiconv 1.13.1 builds successfully):
> 
> gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib  -I../intl 
> -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1   -g -O2 -c progname.c
> 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");
>   ^
> Makefile:914: recipe for target 'progname.o' failed
> make[2]: *** [progname.o] Error 1

Thanks for the report. This has been fixed in gnulib, meanwhile:
http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html

On a glibc system, just use the iconv API and program from the libc.
You don't need GNU libiconv on a glibc system.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]