hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

event_get_version_number

Open huichen opened this issue 16 years ago • 3 comments

cmake failed with following output in CMakeFiles/CMakeError.log


Determining if the event_get_version_number exist failed with the following output:
Change Dir: /home/chen/hiphop-php/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/chen/hiphop-php/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /home/chen/hiphop-php/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o
/usr/bin/gcc   -O3 -w -fPIC     -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o   -c /home/chen/hiphop-php/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/chen/hiphop-php/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/chen/hiphop-php/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘event_get_version_number’ undeclared (first use in this function)
/home/chen/hiphop-php/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/home/chen/hiphop-php/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory `/home/chen/hiphop-php/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2

File /home/chen/hiphop-php/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include 

void cmakeRequireSymbol(int dummy,...){(void)dummy;}
int main()
{
#ifndef event_get_version_number
  cmakeRequireSymbol(0,&event_get_version_number);
#endif
  return 0;
}

Reasons: event_get_version_number is a function only in libevent 2.0.x, in libevent1.4.x it's event_get_version.

huichen avatar Mar 25 '10 20:03 huichen

Yeah its a test for libevent 2.0, it's meant to fail if you don't have it.

What version of CMake do you have?

scottmac avatar Mar 25 '10 20:03 scottmac

I'm using cmake 2.8.1.

huichen avatar Mar 27 '10 22:03 huichen

ok ... so you are supposed to have cp ../hiphop-php/src/third_party/libevent-1.4.14.fb-changes.diff . LibEvent 1.4.14 yet you are testing for libEvent 2.0 ... so how do we go about installing both versions?

If you try to patch 2.0 it fails ....

This absolutely makes no sense to me

latucker avatar Nov 15 '11 21:11 latucker