{"action":"created","issue":{"url":"https://api.github.com/repos/mongofill/mongofill-hhvm/issues/21","labels_url":"https://api.github.com/repos/mongofill/mongofill-hhvm/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/mongofill/mongofill-hhvm/issues/21/comments","events_url":"https://api.github.com/repos/mongofill/mongofill-hhvm/issues/21/events","html_url":"https://github.com/mongofill/mongofill-hhvm/issues/21","id":53349460,"number":21,"title":"It doesn't compile with hhvm 3.4.2-1 archlinux","user":{"login":"jrborbars","id":1222210,"avatar_url":"https://avatars.githubusercontent.com/u/1222210?v=3","gravatar_id":"","url":"https://api.github.com/users/jrborbars","html_url":"https://github.com/jrborbars","followers_url":"https://api.github.com/users/jrborbars/followers","following_url":"https://api.github.com/users/jrborbars/following{/other_user}","gists_url":"https://api.github.com/users/jrborbars/gists{/gist_id}","starred_url":"https://api.github.com/users/jrborbars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrborbars/subscriptions","organizations_url":"https://api.github.com/users/jrborbars/orgs","repos_url":"https://api.github.com/users/jrborbars/repos","events_url":"https://api.github.com/users/jrborbars/events{/privacy}","received_events_url":"https://api.github.com/users/jrborbars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-04T21:37:01Z","updated_at":"2015-01-08T14:52:14Z","closed_at":null,"body":"The following error occur when I tried to build (build.sh) mongofill in arch linux 3.17.6-1 x86_64, with the latest (4 Jan 15) version cloned from this repo.\r\n##############################################################################\r\n...\r\n[ 66%] Building CXX object CMakeFiles/mongo.dir/src/encode.cpp.o\r\n/home/user/mongofill-hhvm/src/encode.cpp: In function ‘void HPHP::objectToBSON(const HPHP::Object&, const char*, bson_t*)’:\r\n/home/user/mongofill-hhvm/src/encode.cpp:86:36: error: ‘class HPHP::ObjectData’ has no member named ‘getClassName’\r\n   const String& className = value->getClassName();\r\n                                    ^\r\nCMakeFiles/mongo.dir/build.make:77: recipe for target 'CMakeFiles/mongo.dir/src/encode.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/mongo.dir/src/encode.cpp.o] Error 1\r\nCMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/mongo.dir/all' failed\r\nmake[1]: *** [CMakeFiles/mongo.dir/all] Error 2\r\nMakefile:117: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n#########################################################################\r\n\r\nMaibe the solution is in the following lines, but my knowledge of this syntax is very bad. 8-(\r\n\r\n#########################################################################\r\n//* Objects *//\r\nstatic ObjectData* instanceNewObject(const StaticString* className, Array params) {\r\n  TypedValue ret;\r\n  Class* cls = Unit::loadClass(className->get());\r\n  ObjectData* obj = ObjectData::newInstance(cls);\r\n  obj->incRefCount();\r\n  \r\n  g_context->invokeFunc(\r\n    &ret, \r\n    cls->getCtor(), \r\n    params,\r\n    obj\r\n  );\r\n\r\n  return obj;\r\n}\r\n###########################################################################\r\n\r\nAdditional info:\r\nHipHop VM 3.4.2 (rel)\r\nCompiler: 1420330388_659108331\r\nRepo schema: 659673661_1420330388\r\nExtension API: 20140829\r\n\r\nMaybe the SAME problem that occur in issue #19 .\r\nI'll try the workaround, but not a git master. How can I download this branch?\r\nBest regards,"},"comment":{"url":"https://api.github.com/repos/mongofill/mongofill-hhvm/issues/comments/69189105","html_url":"https://github.com/mongofill/mongofill-hhvm/issues/21#issuecomment-69189105","issue_url":"https://api.github.com/repos/mongofill/mongofill-hhvm/issues/21","id":69189105,"user":{"login":"jrborbars","id":1222210,"avatar_url":"https://avatars.githubusercontent.com/u/1222210?v=3","gravatar_id":"","url":"https://api.github.com/users/jrborbars","html_url":"https://github.com/jrborbars","followers_url":"https://api.github.com/users/jrborbars/followers","following_url":"https://api.github.com/users/jrborbars/following{/other_user}","gists_url":"https://api.github.com/users/jrborbars/gists{/gist_id}","starred_url":"https://api.github.com/users/jrborbars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrborbars/subscriptions","organizations_url":"https://api.github.com/users/jrborbars/orgs","repos_url":"https://api.github.com/users/jrborbars/repos","events_url":"https://api.github.com/users/jrborbars/events{/privacy}","received_events_url":"https://api.github.com/users/jrborbars/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T14:52:14Z","updated_at":"2015-01-08T14:52:14Z","body":"Works like a charm! Thank you.\r\nThe build.sh runs ok, and I copy the mongo.so to my HHVM extensions folder.\r\nI restart HHVM, but nothing happens.\r\nI run get_declared_classes() and get_loaded_extensions(), and nothing about mongo.\r\nAny ideas?"}}