mongofill / mongofill-hhvm

A mix of the original Mongofill extension + BSON implementation in C++
MIT License
32 stars 19 forks source link

Hard time compiling #18

Closed partypete closed 9 years ago

partypete commented 9 years ago

Hello! I'm a newbie in hhvm I'm getting problem when I try to compile mongofill

./build.sh Submodule 'vendor/mongofill/mongofill' (git://github.com/mongofill/mongofill) registered for path 'vendor/mongofill/> mongofill' Cloning into 'vendor/mongofill/mongofill'... remote: Counting objects: 1370, done. remote: Compressing objects: 100% (15/15), done. remote: Total 1370 (delta 11), reused 9 (delta 5) Receiving objects: 100% (1370/1370), 1010.38 KiB | 463.00 KiB/s, done. Resolving deltas: 100% (824/824), done. Checking connectivity... done. Submodule path 'vendor/mongofill/mongofill': checked out '6c22f3b72b81de59663bba7272d387475d233574' \ hphpize complete, now run cmake . && make to build, make test to test -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring for HHVM API version 20140829 -- bson Include dir: /usr/local/include/libbson-1.0 -- libbson library: /usr/local/lib/libbson-1.0.so -- Configuring done -- Generating done -- Build files have been written to: /tmp/mongofill-hhvm Scanning dependencies of target mongo [ 33%] Building CXX object CMakeFiles/mongo.dir/src/bson.cpp.o [ 66%] Building CXX object CMakeFiles/mongo.dir/src/encode.cpp.o /tmp/mongofill-hhvm/src/encode.cpp: In function 'void HPHP::objectToBSON(const HPHP::Object&, const char_, bsont)': /tmp/mongofill-hhvm/src/encode.cpp:86:36: error: 'class HPHP::ObjectData' has no member named 'o_getClassName' const String& className = value->o_getClassName();

^ make[2]: * [CMakeFiles/mongo.dir/src/encode.cpp.o] Error 1 make[1]: * [CMakeFiles/mongo.dir/all] Error 2 make: *\ [all] Error 2

Can anyone assist? If it's of any help I've compilled myself HHVM 3.5.0.

Do I need to point to src folder of hhvm for it to compile