centos下安装libiconv
2016-05-15 19:59
507 查看
centos下安装libiconv
1.wget -c http://www.itkb.ro/userfiles/file/libiconv-glibc-2.16.patch.gz
2.cd libiconv-1.14/srclib
3.--- srclib/stdio.in.h.orig 2011-08-07 16:42:06.000000000 +0300
+++ srclib/stdio.in.h 2013-01-10 15:53:03.000000000 +0200
@@ -695,7 +695,9 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
-_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
#endif
4. ./configure --prefix=/usr/local/libiconv
5.make
6.make install
1.wget -c http://www.itkb.ro/userfiles/file/libiconv-glibc-2.16.patch.gz
2.cd libiconv-1.14/srclib
3.--- srclib/stdio.in.h.orig 2011-08-07 16:42:06.000000000 +0300
+++ srclib/stdio.in.h 2013-01-10 15:53:03.000000000 +0200
@@ -695,7 +695,9 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
-_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
#endif
4. ./configure --prefix=/usr/local/libiconv
5.make
6.make install
相关文章推荐
- CentOS 7&RHEL 7重置root密码
- linux安全---远程日志管理
- fork,你拿什么证明你的写时拷贝(COW)
- Red Hat Enterprise Linux 7.0的安装
- How to Install JAVA 8 (JDK 8u91) on Ubuntu & LinuxMint via PPA
- linux安全---10大linux必备运维工具
- linux安全---系统更新+弱口令检测工具+nmap扫描工具
- Linux链接脚本学习--lds
- linux安全---利用DenyHosts防止ssh暴力破解
- CentOS 7 java服务器搭建
- 2016-5-15 linux基础学习——case语句
- linux常用命令--管道命令
- linux安全---ssh配置与使用
- 2016-3-29 linux基础学习——find命令
- linux安全---selinux安全控制
- linux常用的命令--文件与目录管理
- linux文件属性与权限
- LinuxC编程一站式学习(C语言本质)
- Linux常用服务部署与优化之NFS篇
- 利用Python3在Windows同步文件到Linux服务器