libc-client4 FreeBSD
CC=/usr/local/bin/gcc44 cmake . -DCMAKE_CXX_COMPILER=/usr/local/bin/c++44 -DFREEBSD=1
-- CMAKE_PREFIX_PATH was missing, proceeding anyway -- MySQL Include dir: /usr/local/include library dir: /usr/local/lib/mysql -- MySQL client libraries: mysqlclient_r -- Found libevent: /root/hip-hop/lib/libevent.so -- Found GD: /usr/local/lib/libgd.so -- Found ICU header files in /usr/local/include -- Found ICU libraries: /usr/local/lib/libicuuc.so -- Can't find jemalloc -- Can't find minimal tcmalloc -- Found Intel TBB -- Found mcrypt: /usr/local/lib/libmcrypt.so CMake Error at CMake/FindLdap.cmake:37 (message): Could NOT find ldap Call Stack (most recent call first): CMake/HPHPFindLibs.cmake:236 (find_package) CMake/HPHPSetup.cmake:46 (include) src/CMakeLists.txt:18 (include)
It says libldap is missing.
new error
$ make ...... [ 13%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/builtin_functions.cpp.o In file included from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger_thrift_buffer.h:20, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/break_point.h:20, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger_base.h:20, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/dummy_sandbox.h:22, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger_proxy.h:24, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger.h:21, from /root/hip-hop/hiphop-php/src/runtime/base/builtin_functions.cpp:24: /root/hip-hop/hiphop-php/src/runtime/base/util/thrift_buffer.h:30:23: error: byteswap.h: No such file or directory In file included from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger_thrift_buffer.h:20, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/break_point.h:20, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger_base.h:20, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/dummy_sandbox.h:22, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger_proxy.h:24, from /root/hip-hop/hiphop-php/src/runtime/eval/debugger/debugger.h:21, from /root/hip-hop/hiphop-php/src/runtime/base/builtin_functions.cpp:24: /root/hip-hop/hiphop-php/src/runtime/base/util/thrift_buffer.h: In member function 'void HPHP::ThriftBuffer::write(HPHP::int64)': /root/hip-hop/hiphop-php/src/runtime/base/util/thrift_buffer.h:128: error: 'bswap_64' was not declared in this scope /root/hip-hop/hiphop-php/src/runtime/base/util/thrift_buffer.h: In member function 'void HPHP::ThriftBuffer::read(HPHP::int64&)': /root/hip-hop/hiphop-php/src/runtime/base/util/thrift_buffer.h:181: error: 'bswap_64' was not declared in this scope In file included from /root/hip-hop/hiphop-php/src/runtime/base/builtin_functions.cpp:32: /root/hip-hop/hiphop-php/src/util/process.h: In static member function 'static pid_t HPHP::Process::GetThreadPid()': /root/hip-hop/hiphop-php/src/util/process.h:122: error: 'SYS_gettid' was not declared in this scope *** Error code 1
Stop in /root/hip-hop/hiphop-php. *** Error code 1
Stop in /root/hip-hop/hiphop-php. *** Error code 1
Stop in /root/hip-hop/hiphop-php.
Looks like some missing or invalid freebsd definition (
FREEBSD instead of FreeBSD).
See my list of this issues in current git version:
src/runtime/base/util/thrift_buffer.h:
#ifdef __FreeBSD__
#define __FREEBSD__ 1
#endif
src/runtime/base/zend/zend_string.cpp:
#ifdef __FreeBSD__
#define __FREEBSD__ 1
#endif
src/runtime/ext/ext_ipc.cpp:
#ifdef __FreeBSD__
#define __FREEBSD__ 1
#endif
src/runtime/ext/ext_posix.cpp:
#ifdef __FreeBSD__
#define __FREEBSD__ 1
#endif
src/runtime/ext/ext_thrift.cpp:
#ifdef __FreeBSD__
#define __FREEBSD__ 1
#endif
We're closing out all bugs older than 2 months. http://www.hiphop-php.com/wp/?p=575
If this is still an issue, please re-open it, and in order of goodness:
- Give detailed repro steps
- Write a test case in hphp/tests/quick (run it with hphp/tests/run) and send the pull request
- Fix it in a pull request