免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2503 | 回复: 0
打印 上一主题 下一主题

cmake 编译 hiphop-php 失败, 找不到参数: EXTRA_LIBS [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-10 12:47 |只看该作者 |倒序浏览
hiphop-php 需要  cmake 来编译  ,  但是在编译过程中:


  1. [root@sys-test-02 hiphop-php]# make
  2. [  1%] Built target timelib
  3. [  2%] Built target xhp
  4. [ 14%] Built target mbfl
  5. [ 14%] Built target sqlite3
  6. [ 14%] Built target afdt
  7. [ 75%] Built target hphp_runtime_static
  8. [ 87%] Built target hphp_analysis
  9. Linking CXX executable hphp
  10. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  11. `HPHP::_php_iconv_strlen(unsigned int*, char const*, unsigned long,
  12. char const*)':
  13. ext_iconv.cpp:(.text+0x1dc): undefined reference to `libiconv_open'
  14. ext_iconv.cpp:(.text+0x272): undefined reference to `libiconv'
  15. ext_iconv.cpp:(.text+0x2ca): undefined reference to `libiconv_close'
  16. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  17. `HPHP::php_iconv_string(char const*, unsigned long, char**, unsigned
  18. long*, char const*, char const*)':
  19. ext_iconv.cpp:(.text+0x336): undefined reference to `libiconv_open'
  20. ext_iconv.cpp:(.text+0x423): undefined reference to `libiconv'
  21. ext_iconv.cpp:(.text+0x482): undefined reference to `libiconv'
  22. ext_iconv.cpp:(.text+0x495): undefined reference to `libiconv_close'
  23. ext_iconv.cpp:(.text+0x4a5): undefined reference to `libiconv_close'
  24. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  25. `HPHP::_php_iconv_strpos(unsigned int*, char const*, unsigned long,
  26. char const*, unsigned long, int, char const*)':
  27. ext_iconv.cpp:(.text+0x5cf): undefined reference to `libiconv_open'
  28. ext_iconv.cpp:(.text+0x67b): undefined reference to `libiconv'
  29. ext_iconv.cpp:(.text+0x73b): undefined reference to `libiconv_close'
  30. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  31. `HPHP::_php_iconv_appendl(HPHP::StringBuffer&, char const*, unsigned
  32. long, void*)':
  33. ext_iconv.cpp:(.text+0xa00): undefined reference to `libiconv'
  34. ext_iconv.cpp:(.text+0xadb): undefined reference to `libiconv'
  35. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  36. `HPHP::_php_iconv_mime_decode(HPHP::StringBuffer&, char const*,
  37. unsigned long, char const*, char const**, int)':
  38. ext_iconv.cpp:(.text+0xced): undefined reference to `libiconv_open'
  39. ext_iconv.cpp:(.text+0x11e2): undefined reference to `libiconv_close'
  40. ext_iconv.cpp:(.text+0x11ee): undefined reference to `libiconv_close'
  41. ext_iconv.cpp:(.text+0x153f): undefined reference to `libiconv_close'
  42. ext_iconv.cpp:(.text+0x1552): undefined reference to `libiconv_open'
  43. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  44. `HPHP::f_iconv_substr(HPHP::String const&, int, int, HPHP::String
  45. const&)':
  46. ext_iconv.cpp:(.text+0x2981): undefined reference to `libiconv_open'
  47. ext_iconv.cpp:(.text+0x2a51): undefined reference to `libiconv'
  48. ext_iconv.cpp:(.text+0x2aef): undefined reference to `libiconv_close'
  49. ext_iconv.cpp:(.text+0x2b09): undefined reference to `libiconv_close'
  50. ext_iconv.cpp:(.text+0x2bd1): undefined reference to `libiconv_open'
  51. ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
  52. `HPHP::f_iconv_mime_encode(HPHP::String const&, HPHP::String const&,
  53. HPHP::Variant const&)':
  54. ext_iconv.cpp:(.text+0x3cda): undefined reference to `libiconv_close'
  55. ext_iconv.cpp:(.text+0x3dd0): undefined reference to `libiconv_open'
  56. ext_iconv.cpp:(.text+0x3e0f): undefined reference to `libiconv_open'
  57. ext_iconv.cpp:(.text+0x45d0): undefined reference to `libiconv'
  58. ext_iconv.cpp:(.text+0x45fb): undefined reference to `libiconv'
  59. ext_iconv.cpp:(.text+0x4624): undefined reference to `libiconv'
  60. ext_iconv.cpp:(.text+0x46a0): undefined reference to `libiconv_close'
  61. ext_iconv.cpp:(.text+0x495e): undefined reference to `libiconv'
  62. ext_iconv.cpp:(.text+0x4982): undefined reference to `libiconv'
  63. ext_iconv.cpp:(.text+0x4b80): undefined reference to `libiconv'
复制代码
google 一下 "undefined reference to `libiconv_open'",  所以答案都是:    " add   '-liconv'   to   EXTRA_LIBS=...      or
LDFLAGS=... "  ,  但我死活 找不着   "EXTRA_LIBS    LDFLAGS"   这俩参数:

用这条命令查找 没有结果 。
  1. [root@sys-test-02 hiphop-php]# find . -type f -exec grep -Hni  --col "EXTRA_LIBS" {} \;
复制代码
ibiconv 应该是装的了
  1. locate libiconv |head
  2. /home/okooo/apps/php/include/php/ext/iconv/php_have_libiconv.h
  3. /home/okooo/src/php-5.2.6/ext/iconv/php_have_libiconv.h
  4. /usr/local/lib/libiconv.la
  5. /usr/local/lib/libiconv.so
  6. /usr/local/lib/libiconv.so.2
  7. /usr/local/lib/libiconv.so.2.4.0
  8. /usr/local/lib/preloadable_libiconv.so
复制代码
请问 Cmake 怎么设置 库参数 啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP