[CMake] compiling hiphop-php with CMake failed, where is the parameter: EXTRA_LIBS ?
a qi
free4machine at gmail.com
Mon Aug 9 23:16:14 EDT 2010
HI, ALL
hiphop-php needs cmake to compile, but I got this error when running make :
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[root at sys-test-02 hiphop-php]# make
[ 1%] Built target timelib
[ 2%] Built target xhp
[ 14%] Built target mbfl
[ 14%] Built target sqlite3
[ 14%] Built target afdt
[ 75%] Built target hphp_runtime_static
[ 87%] Built target hphp_analysis
Linking CXX executable hphp
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::_php_iconv_strlen(unsigned int*, char const*, unsigned long,
char const*)':
ext_iconv.cpp:(.text+0x1dc): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x272): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x2ca): undefined reference to `libiconv_close'
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::php_iconv_string(char const*, unsigned long, char**, unsigned
long*, char const*, char const*)':
ext_iconv.cpp:(.text+0x336): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x423): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x482): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x495): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x4a5): undefined reference to `libiconv_close'
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::_php_iconv_strpos(unsigned int*, char const*, unsigned long,
char const*, unsigned long, int, char const*)':
ext_iconv.cpp:(.text+0x5cf): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x67b): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x73b): undefined reference to `libiconv_close'
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::_php_iconv_appendl(HPHP::StringBuffer&, char const*, unsigned
long, void*)':
ext_iconv.cpp:(.text+0xa00): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0xadb): undefined reference to `libiconv'
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::_php_iconv_mime_decode(HPHP::StringBuffer&, char const*,
unsigned long, char const*, char const**, int)':
ext_iconv.cpp:(.text+0xced): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x11e2): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x11ee): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x153f): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x1552): undefined reference to `libiconv_open'
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::f_iconv_substr(HPHP::String const&, int, int, HPHP::String
const&)':
ext_iconv.cpp:(.text+0x2981): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x2a51): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x2aef): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x2b09): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x2bd1): undefined reference to `libiconv_open'
../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
`HPHP::f_iconv_mime_encode(HPHP::String const&, HPHP::String const&,
HPHP::Variant const&)':
ext_iconv.cpp:(.text+0x3cda): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x3dd0): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x3e0f): undefined reference to `libiconv_open'
ext_iconv.cpp:(.text+0x45d0): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x45fb): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x4624): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x46a0): undefined reference to `libiconv_close'
ext_iconv.cpp:(.text+0x495e): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x4982): undefined reference to `libiconv'
ext_iconv.cpp:(.text+0x4b80): undefined reference to `libiconv'
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And I google "undefined reference to `libiconv_open'", all the
answer is " add '-liconv' to EXTRA_LIBS=... or
LDFLAGS=... " , But I can not find anything about "EXTRA_LIBS
or LDFLAGS" :
the follow command got nothing.
[root at sys-test-02 hiphop-php]# find . -type f -exec grep
-Hni --col "EXTRA_LIBS" {} \;
Any suggestion will be appricated . Thanks.
More information about the CMake
mailing list