Ubuntu14.04_64编译libiconv出问题 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
来源:互联网 发布:淘宝站外计销量的网站 编辑:程序博客网 时间:2024/05/16 14:27
一、错误现象
环境 Ubuntu14.04 64位 编译 libiconv-1.14 出错
错误现象:
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");
^
make[2]: *** [progname.o] 错误 1
make[2]:正在离开目录 `/home/bupt/miao/box/soft/libiconv-1.14/srclib'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/home/bupt/miao/box/soft/libiconv-1.14/srclib'
make: *** [all] 错误 2
二、解决方法
在libiconv-1.14/srclib/stdio.in.h 中把
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
替换成
#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
重新编译libiconv就OK了.
阅读全文
0 0
- Ubuntu14.04_64编译libiconv出问题 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 解决编译libiconv时报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 源码编译安装 libiconv-1.14 报:./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) [
- 编译 libiconv-1.14 的时候出现 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
- ./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
- libiconv-1.14 error: ‘gets’ undeclared here (not in a function)
- 在ubuntu上编译toolchain时出错./stdio.h:477: error: 'gets' undeclared here (not in a function)
- 解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
- 解析linux patch(解决报错./stdio.h:456:1: error: 'gets' undeclared here (not in a function))
- `uint32_t' undeclared here (not in a function)
- PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .
- /phalcon.zep.c:130892: error: ‘ZEND_FE_END’ undeclared here (not in a function)
- /data/TestModule2/TestModule.c:26:25: error: ‘UTS_RELEASE’ undeclared here (not in a function) char
- 编译libiconv-1.14解决./stdio.h:1010:1: 错误: ‘gets’未声明(不在函数内)错误
- 【SystemTap】 2.6.36 内核下运行SystemTap出现 error:‘param_ops_int64_t’ undeclared here (not in a function) 错误
- Android之ndk-build出现c:28:51: error: 'get_string' undeclared here (not in a function)解决办法
- HTML5.1 新增的14项特性学习
- SSL握手过程实例分析
- json转map
- 安全框架--shiro
- Kotlin(三)
- Ubuntu14.04_64编译libiconv出问题 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- Spring与集合
- 模板实现冒泡排序
- yum命令后出现libldap-2.4.so.2: cannot open shared object file
- eclipse debug URLClassPath.getLoader(int) file
- 命令行使用wget下载百度云资源
- debian 程序开机自动启动设置
- 做微信扫码支付接口,二维码图片显示的是二进制文件的解决方案
- 关于负载均衡的三种传输模式(反向代理,透传,三角)