根据找到的资料来看,如果glibc版本在2.16以上,make时很可能出如下错误

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");
^

解决办法有2种,第一种是打补丁

下载patch文件,解压后打上patch,在libiconv-1.14目录下执行

wget -O - http://www.itkb.ro/userfiles/file/libiconv-glibc-2.16.patch.gz  | gzip -d - | patch -p0
或者
wget -O - http://blog.atime.me/static/resource/libiconv-glibc-2.16.patch.gz | gzip -d - | patch -p0

第二种是修改源代码,注释掉srclib/stdio.in.h文件的第698行,修改后如下:

// _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

参考信息:
Sphinx/Coreseek搭建全文搜索引擎二三事
15662-解决编译libiconv时的gets-undeclared-here错误