{"action":"created","issue":{"url":"https://api.github.com/repos/Photonios/rocksdb-php/issues/4","labels_url":"https://api.github.com/repos/Photonios/rocksdb-php/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Photonios/rocksdb-php/issues/4/comments","events_url":"https://api.github.com/repos/Photonios/rocksdb-php/issues/4/events","html_url":"https://github.com/Photonios/rocksdb-php/issues/4","id":93847915,"number":4,"title":"Build Error","user":{"login":"roncemer","id":5806658,"avatar_url":"https://avatars.githubusercontent.com/u/5806658?v=3","gravatar_id":"","url":"https://api.github.com/users/roncemer","html_url":"https://github.com/roncemer","followers_url":"https://api.github.com/users/roncemer/followers","following_url":"https://api.github.com/users/roncemer/following{/other_user}","gists_url":"https://api.github.com/users/roncemer/gists{/gist_id}","starred_url":"https://api.github.com/users/roncemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roncemer/subscriptions","organizations_url":"https://api.github.com/users/roncemer/orgs","repos_url":"https://api.github.com/users/roncemer/repos","events_url":"https://api.github.com/users/roncemer/events{/privacy}","received_events_url":"https://api.github.com/users/roncemer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Photonios","id":5777517,"avatar_url":"https://avatars.githubusercontent.com/u/5777517?v=3","gravatar_id":"","url":"https://api.github.com/users/Photonios","html_url":"https://github.com/Photonios","followers_url":"https://api.github.com/users/Photonios/followers","following_url":"https://api.github.com/users/Photonios/following{/other_user}","gists_url":"https://api.github.com/users/Photonios/gists{/gist_id}","starred_url":"https://api.github.com/users/Photonios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Photonios/subscriptions","organizations_url":"https://api.github.com/users/Photonios/orgs","repos_url":"https://api.github.com/users/Photonios/repos","events_url":"https://api.github.com/users/Photonios/events{/privacy}","received_events_url":"https://api.github.com/users/Photonios/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-07-08T17:39:12Z","updated_at":"2015-07-12T14:04:18Z","closed_at":null,"body":"With the latest rocksdb, I get this error when building rocksdb-php:\r\n\r\ng++ -std=c++11 -fPIC -shared src/*.cpp -lrocksdb -lpthread -lrt -lsnappy -lgflags -lz -lbz2 -lphpcpp -lmemenv -I./src/include -o bin/rocksdb_php.so\r\n/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/librocksdb.a(db_impl.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC\r\n/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/librocksdb.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:11: recipe for target 'all' failed\r\nmake: *** [all] Error 1\r\n"},"comment":{"url":"https://api.github.com/repos/Photonios/rocksdb-php/issues/comments/120722322","html_url":"https://github.com/Photonios/rocksdb-php/issues/4#issuecomment-120722322","issue_url":"https://api.github.com/repos/Photonios/rocksdb-php/issues/4","id":120722322,"user":{"login":"Photonios","id":5777517,"avatar_url":"https://avatars.githubusercontent.com/u/5777517?v=3","gravatar_id":"","url":"https://api.github.com/users/Photonios","html_url":"https://github.com/Photonios","followers_url":"https://api.github.com/users/Photonios/followers","following_url":"https://api.github.com/users/Photonios/following{/other_user}","gists_url":"https://api.github.com/users/Photonios/gists{/gist_id}","starred_url":"https://api.github.com/users/Photonios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Photonios/subscriptions","organizations_url":"https://api.github.com/users/Photonios/orgs","repos_url":"https://api.github.com/users/Photonios/repos","events_url":"https://api.github.com/users/Photonios/events{/privacy}","received_events_url":"https://api.github.com/users/Photonios/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T14:04:18Z","updated_at":"2015-07-12T14:04:18Z","body":"Issue should be resolved now. You have to compile RocksDB with `-fPIC` now. I've updated the README on how to do that.\r\n\r\nI've also fixed the `Makefile` to no longer link to `libmemenv`, because it appears that this is no longer necessary.\r\n\r\nThanks for reporting it!"}}