facebook/hiphop-php — Issue #478: c-client not detected properly on Fedora 16
Author: sebastianbergmann
Created: 2012-01-26 02:18:26+00:00
State: open

I am on Fedora 16 and have the `libc-client` package installed:

➜ ~ yum info libc-client
Loaded plugins: langpacks, presto, refresh-packagekit, remove-with-leaves
Installed Packages
Name : libc-client
Arch : x86_64
Version : 2007f
Release : 1.fc16
Size : 1.5 M
Repo : installed
From repo : fedora
Summary : UW C-client mail library
URL : http://www.washington.edu/imap/
License : ASL 2.0
Description : Provides a common API for accessing mailboxes.

Available Packages
Name : libc-client
Arch : i686
Version : 2007f
Release : 1.fc16
Size : 559 k
Repo : fedora
Summary : UW C-client mail library
URL : http://www.washington.edu/imap/
License : ASL 2.0
Description : Provides a common API for accessing mailboxes.

However, CMake does not find it:

➜ ~HPHP_HOME git:(master) cmake .
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
-- Found libevent: /usr/local/lib/libevent.so
-- Found GD: /usr/lib64/libgd.so
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Found jemalloc: /usr/lib64/libjemalloc.so
-- Found Intel TBB
-- Found mcrypt: /usr/lib64/libmcrypt.so
CMake Error at CMake/HPHPFunctions.cmake:42 (file):
file STRINGS file
"/usr/local/src/hiphop-php/src/CCLIENT_INCLUDE_PATH-NOTFOUND/utf8.h" cannot
be read.
Call Stack (most recent call first):
CMake/HPHPFindLibs.cmake:250 (CONTAINS_STRING)
CMake/HPHPSetup.cmake:46 (include)
src/CMakeLists.txt:18 (include)

CMake Error at CMake/HPHPFindLibs.cmake:253 (message):
Your version of c-client is too old, you need 2007
Call Stack (most recent call first):
CMake/HPHPSetup.cmake:46 (include)
src/CMakeLists.txt:18 (include)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CCLIENT_INCLUDE_PATH (ADVANCED)
used as include directory in directory /usr/local/src/hiphop-php/src

-- Configuring incomplete, errors occurred!