{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension/issues/1","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension/issues/1/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension/issues/1/events","html_url":"https://github.com/GoogleCloudPlatform/appengine-php-extension/issues/1","id":127881323,"number":1,"title":"It does not compile on Ubuntu 15.10","user":{"login":"iblue","id":93362,"avatar_url":"https://avatars.githubusercontent.com/u/93362?v=3","gravatar_id":"","url":"https://api.github.com/users/iblue","html_url":"https://github.com/iblue","followers_url":"https://api.github.com/users/iblue/followers","following_url":"https://api.github.com/users/iblue/following{/other_user}","gists_url":"https://api.github.com/users/iblue/gists{/gist_id}","starred_url":"https://api.github.com/users/iblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iblue/subscriptions","organizations_url":"https://api.github.com/users/iblue/orgs","repos_url":"https://api.github.com/users/iblue/repos","events_url":"https://api.github.com/users/iblue/events{/privacy}","received_events_url":"https://api.github.com/users/iblue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-01-21T09:31:11Z","updated_at":"2016-12-15T17:58:39Z","closed_at":"2016-01-21T18:26:49Z","body":"The default g++ is:\n\n```\niblue@raven:~/tmp/appengine-php-extension$ g++ -v\nUsing built-in specs.\nCOLLECT_GCC=g++\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper\nTarget: x86_64-linux-gnu\nConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.3-5ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu\nThread model: posix\ngcc version 4.9.3 (Ubuntu 4.9.3-5ubuntu1) \n```\n\nPHP is\n\n```\niblue@raven:~/tmp/appengine-php-extension$ php -v\nPHP 5.6.11-1ubuntu3.1 (cli) \nCopyright (c) 1997-2015 The PHP Group\nZend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies\n    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies\n```\n\nNote: I also tried g++ 4.7 and g++ 5.2 by setting `CXX=g++-4.7` before `./configure`\n\nI tried the following:\n\n```\nsudo apt-get install protobuf-compiler php5-dev libprotobuf-dev\ncd /tmp\ngit clone git@github.com:GoogleCloudPlatform/appengine-php-extension.git\ncd appengine-php-extension\nprotoc --cpp_out=. remote_api.proto\nprotoc --cpp_out=. urlfetch_service.proto\nphpize\n./configure --enable-gae --with-protobuf_inc=/usr/include --with-protobuf_lib=/usr/lib\nmake\n```\n\nAnd I get a compiler error\n\n```\n/bin/bash /home/iblue/tmp/appengine-php-extension/libtool --mode=compile g++ -DUSE_REMOTE_API -fPIC -I/usr/include -I. -I/home/iblue/tmp/appengine-php-extension -DPHP_ATOM_INC -I/home/iblue/tmp/appengine-php-extension/include -I/home/iblue/tmp/appengine-php-extension/main -I/home/iblue/tmp/appengine-php-extension -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc -o gae_runtime_module.lo \nlibtool: compile:  g++ -DUSE_REMOTE_API -fPIC -I/usr/include -I. -I/home/iblue/tmp/appengine-php-extension -DPHP_ATOM_INC -I/home/iblue/tmp/appengine-php-extension/include -I/home/iblue/tmp/appengine-php-extension/main -I/home/iblue/tmp/appengine-php-extension -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc  -fPIC -DPIC -o .libs/gae_runtime_module.o\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:91:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]\n #pragma GCC diagnostic ignored \"-Wwritable-strings\"  // PHP APIs not const safe.\n                                ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc: In function 'void load_user_ini(int, int)':\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:498:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n                           user_ini_hash_table TSRMLS_CC);\n                                                        ^\nIn file included from /usr/include/php5/main/php.h:407:0,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.h:25,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:18:\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc: In function 'void enable_allowed_include_streams(int, int)':\n/usr/include/php5/Zend/zend_constants.h:45:144: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define REGISTER_STRING_CONSTANT(name, str, flags)  zend_register_string_constant((name), sizeof(name), (str), (flags), module_number TSRMLS_CC)\n                                                                                                                                                ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:565:5: note: in expansion of macro 'REGISTER_STRING_CONSTANT'\n     REGISTER_STRING_CONSTANT(\"GAE_INCLUDE_GS_BUCKETS\",\n     ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc: In function 'php_stream_wrapper* appengine::get_correct_stream_wrapper(const char*, char**, int)':\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:766:59: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]\n                                          options TSRMLS_CC);\n                                                           ^\nIn file included from /usr/include/php5/main/php.h:399:0,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.h:25,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:18:\n/usr/include/php5/main/php_streams.h:552:28: note: initializing argument 2 of 'php_stream_wrapper* php_stream_locate_url_wrapper(const char*, const char**, int)'\n PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_open, int options TSRMLS_DC);\n                            ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:770:59: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]\n                                          options TSRMLS_CC);\n                                                           ^\nIn file included from /usr/include/php5/main/php.h:399:0,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.h:25,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:18:\n/usr/include/php5/main/php_streams.h:552:28: note: initializing argument 2 of 'php_stream_wrapper* php_stream_locate_url_wrapper(const char*, const char**, int)'\n PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, const char **path_for_open, int options TSRMLS_DC);\n                            ^\nIn file included from /usr/include/php5/main/php_ini.h:24:0,\n                 from /usr/include/php5/main/fopen_wrappers.h:26,\n                 from /usr/include/php5/main/php.h:401,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.h:25,\n                 from /home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:18:\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc: At global scope:\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\n/usr/include/php5/Zend/zend_ini.h:115:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]\n #define ZEND_INI_END()  { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } };\n                                                                                                 ^\n/usr/include/php5/main/php_ini.h:56:23: note: in expansion of macro 'ZEND_INI_END'\n #define PHP_INI_END   ZEND_INI_END\n                       ^\n/home/iblue/tmp/appengine-php-extension/gae_runtime_module.cc:864:1: note: in expansion of macro 'PHP_INI_END'\n PHP_INI_END()\n ^\nMakefile:181: recipe for target 'gae_runtime_module.lo' failed\nmake: *** [gae_runtime_module.lo] Error 1\n```\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension/issues/comments/267396379","html_url":"https://github.com/GoogleCloudPlatform/appengine-php-extension/issues/1#issuecomment-267396379","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-php-extension/issues/1","id":267396379,"user":{"login":"robfrawley","id":3967713,"avatar_url":"https://avatars.githubusercontent.com/u/3967713?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrawley","html_url":"https://github.com/robfrawley","followers_url":"https://api.github.com/users/robfrawley/followers","following_url":"https://api.github.com/users/robfrawley/following{/other_user}","gists_url":"https://api.github.com/users/robfrawley/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrawley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrawley/subscriptions","organizations_url":"https://api.github.com/users/robfrawley/orgs","repos_url":"https://api.github.com/users/robfrawley/repos","events_url":"https://api.github.com/users/robfrawley/events{/privacy}","received_events_url":"https://api.github.com/users/robfrawley/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:58:39Z","updated_at":"2016-12-15T17:58:39Z","body":"The insanity here is that **no PHP version currently supported** (meaning no version that hasn't reached end of life) *is supported by App Engine!*"}}
{"actor":{"display_login":"robfrawley"}}