ext/gd/libgd/.libs/gdkanji.o: In function `do_convert’:

/root/php-5.2.12/ext/gd/libgd/gdkanji.c:350: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/gd/libgd/gdkanji.c:365: undefined reference to `libiconv’
/root/php-5.2.12/ext/gd/libgd/gdkanji.c:381: undefined reference to `libiconv_close’
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen’:
/root/php-5.2.12/ext/iconv/iconv.c:603: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:626: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:660: undefined reference to `libiconv_close’
ext/iconv/.libs/iconv.o: In function `php_iconv_string’:
/root/php-5.2.12/ext/iconv/iconv.c:441: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:453: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:467: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:478: undefined reference to `libiconv_close’
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos’:
/root/php-5.2.12/ext/iconv/iconv.c:851: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:879: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:993: undefined reference to `libiconv_close’
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl’:
/root/php-5.2.12/ext/iconv/iconv.c:348: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:385: undefined reference to `libiconv’
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr’:
/root/php-5.2.12/ext/iconv/iconv.c:723: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:747: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:802: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:806: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:755: undefined reference to `libiconv_open’
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode’:
/root/php-5.2.12/ext/iconv/iconv.c:1354: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:1465: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:1468: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:1823: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:1826: undefined reference to `libiconv_close’
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor’:
/root/php-5.2.12/ext/iconv/iconv.c:2465: undefined reference to `libiconv_close’
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode’:
/root/php-5.2.12/ext/iconv/iconv.c:1043: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:1057: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/iconv/iconv.c:1316: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:1176: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:1128: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:1160: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close’
/root/php-5.2.12/ext/iconv/iconv.c:1228: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:1259: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:1303: undefined reference to `libiconv’
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket’:
/root/php-5.2.12/ext/iconv/iconv.c:2615: undefined reference to `libiconv’
/root/php-5.2.12/ext/iconv/iconv.c:2615: undefined reference to `libiconv’
ext/iconv/.libs/iconv.o:/root/php-5.2.12/ext/iconv/iconv.c:2537: more undefined references to `libiconv’ follow
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor’:
/root/php-5.2.12/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open’
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert’:
/root/php-5.2.12/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open’
/root/php-5.2.12/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv’
/root/php-5.2.12/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close’
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] ?.. 1
 

处理方法:

./configure …………

vi Makefile

找到下面这行:

EXTRA_LIBS = -lcrypt ...

在最后添加-liconv

PHP7编译错误:php编译undefined reference to `libiconv 错误的更多相关文章

  1. nios ii 13 主程序的函数可以用Open Declaration 查看,但是编译的时候却说 undefined reference to 。。。这是为什么?

    在做12864 ip 核试验时,写了三个文件第一个是时序文件QC12864.v第二个是QC12864.H这个文件主要包括声明和宏定义,第三个文件是QC12864.c这个文件包含函数的定义.详细的请看  ...

  2. 由于link顺序错误导致的undefined reference

    其实我之前就遇到过这个问题,也强调过,GNU-G++在link阶段是依赖输入的.o或者.a文件的顺序的.如果顺序错误会导致undefined reference错误 见这篇随笔:http://www. ...

  3. ubuntu下调试ffmpeg程序出现undefined reference to pthread_once ,undefined reference to uncompress错误

    Ubuntu(版本16.04)下默认配置编译Ffmpeg(版本4.1.3configure 添加选项--enable-threads),将编译好的ffmpeg库添加到程序 中进行编译出现undefin ...

  4. Linux Ubuntu运行线程程序出现undefined reference to ‘pthread_create’和undefined reference to ‘pthread_join’错误。

    Linux Ubuntu运行线程程序出现undefined reference to ‘pthread_create’和undefined reference to ‘pthread_join’错误. ...

  5. 安装sphinx报错(undefined reference to `libiconv_open' 、undefined reference to `libiconv'、undefined reference to `libiconv_close'、make[1]: *** No rule to make target `all'. Stop. 、make: *** [all-recursive

    (为知笔记copy过来格式有变,希望对遇到此问题的童鞋有帮助) 具体错误: Thank you for choosing Sphinx! [root@vm-vagrant csft-4.1]# mak ...

  6. sphinx :undefined reference to `libiconv' 报错解决办法

    sphinx :undefined reference to `libiconv' 报错解决办法   2013-11-30 21:45:39 安装sphinx时不停报错...郁闷在make时报错,错误 ...

  7. Android APP使用NDK编译后的ffmpeg库出现undefined reference to 'posix_memalign'错误

    在android程序中使用NDK编译后的ffmpeg库的时候出现了如下错误: jni/libs/libavutil.a(mem.o): in function av_malloc:libavutil/ ...

  8. Windows编译OpenCV4Android解决undefined reference to std错误

    注意OpenCV 4.0.1 解决了这个问题请直接下载OpenCV 4.0.1 但是OpenCV 4.0.1作为模块导入Android Studio会有找不到R.styleable的问题 OpenCV ...

  9. Qt - 错误总结 - 在自定义类头文件中添加Q_OBJECT 编译时报错(undefined reference to ‘vtable for xxThread)

    错误提示:在添加的QThread子类头文件添加Q_OBJECT时,编译程序,出现"undefined reference to 'vtable for xxThread'"错误提示 ...

随机推荐

  1. redis简单总结

    一.redis的准备. 下载redis:路径:Linux:http://www.redis.io.comwindow:http://www.newasp.net/soft/67186.html 解压后 ...

  2. 【实验室笔记】C#以本地时间创建txt文件

    前段时间做的一个小项目,要求上位机在打开时候,以打开软件的系统时间的建立一个txt文件来存储下位机发送来的数据. 在第一版上位机上,取名的办法太弱了,先是读取系统时间,然后截取字符串,太笨拙.昨天,查 ...

  3. IIS 7如何实现http重定向https

    转自[http://blog.csdn.net/xuhuojun/article/details/6137154] 在不少的企业当中,网站设计出于安全的考虑使用了https协议,但同时公司也开放了80 ...

  4. MapReduce库类

    Hadoop除了可以让开发人员自行编写map函数和reduce函数,还提供一些常用函数(mapper.reducer和partitioner)的类库,这些类位于 org.apache.hadoop.m ...

  5. Socket 传送文件

    1.传送文本文件 1.1服务端 package com; import java.io.BufferedWriter; import java.io.DataInputStream; import j ...

  6. 整合改造百度编译器到thinkphp上传图片到OSS

    oss上传类库,放到public下,放到extend下,实例化是报错找不到上传类(我不知道为什么).

  7. 外部系统集成BIEE

    1.外部系统集成BIEE 隐藏工具栏和仪表盘右上角的菜单 2.BIEE 11g 嵌入Iframe InIFrameRenderingMode有三种取值,分别是prohibit.sameDomainOn ...

  8. 移动app的一些心得

    周末的时候闲着没事,看到了个开源的红旅动漫的APP,于是自己就拿下来写了下,整个网站作者也解析成了接口,所以就可以写成app了,作者写的是用mui开发的,可以通过hbuilder软件打开,进行查看源代 ...

  9. 使用PIE对IE进行CSS3兼容介绍和经验总结

    国外团队开发的兼容插件,去年做项目时才发现,非常强大 主角:PIE.js , PIE.htc 两种方法可以实现 官方网站:http://css3pie.com/ 演示地址:http://css3pie ...

  10. 九章lintcode作业题

    1 - 从strStr谈面试技巧与代码风格 必做题: 13.字符串查找 要求:如题 思路:(自写AC)双重循环,内循环读完则成功 还可以用Rabin,KMP算法等 public int strStr( ...