{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/2378","repository_url":"https://api.github.com/repos/Shippable/support","labels_url":"https://api.github.com/repos/Shippable/support/issues/2378/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/2378/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/2378/events","html_url":"https://github.com/Shippable/support/issues/2378","id":140625186,"number":2378,"title":"PHP7.0 - unable to install extensions","user":{"login":"tdutrion","id":1712222,"avatar_url":"https://avatars.githubusercontent.com/u/1712222?v=3","gravatar_id":"","url":"https://api.github.com/users/tdutrion","html_url":"https://github.com/tdutrion","followers_url":"https://api.github.com/users/tdutrion/followers","following_url":"https://api.github.com/users/tdutrion/following{/other_user}","gists_url":"https://api.github.com/users/tdutrion/gists{/gist_id}","starred_url":"https://api.github.com/users/tdutrion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdutrion/subscriptions","organizations_url":"https://api.github.com/users/tdutrion/orgs","repos_url":"https://api.github.com/users/tdutrion/repos","events_url":"https://api.github.com/users/tdutrion/events{/privacy}","received_events_url":"https://api.github.com/users/tdutrion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shippable/support/labels/resolved","name":"resolved","color":"009800"},{"url":"https://api.github.com/repos/Shippable/support/labels/technical%20issue","name":"technical issue","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-14T09:49:52Z","updated_at":"2016-03-14T17:12:43Z","closed_at":"2016-03-14T17:12:43Z","body":"Hi,\r\n\r\nI am currently trying to get a PHP7.0 project to work with intl, gettext and redis. I tried the working solution discussed on #2086, but that only works for PHP 5.\r\n\r\nI have no `pre_ci_boot` section, so I assume that I am working with `drydock/u14php:prod`.\r\n\r\nHere is a sample of my config\r\n```\r\nlanguage: php\r\n\r\nservices:\r\n  - postgres\r\n  - redis\r\n\r\nphp:\r\n  - 7.0\r\n\r\nbuild:\r\n  ci:\r\n    - /tmp/pickle/bin/pickle install intl && echo \"extension=intl.so\" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini\r\n    - /tmp/pickle/bin/pickle install redis && echo \"extension=redis.so\" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini\r\n```\r\n\r\nFor now I mainly have a compilation error for intl and another error for redis...\r\n```\r\n/tmp/pickle/bin/pickle install intl && echo \"extension=intl.so\" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini\r\n  - Installing intl (latest-stable)\r\n    Downloading: Connecting...\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 0%           \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 10%\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 20%\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 30%\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 40%\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 50%\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 100%\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b    Downloading: 100%\r\n\r\n+-----------------------------------+--------+\r\n| Package name                      | intl   |\r\n| Package version (current release) | 3.0.0  |\r\n| Package status                    | stable |\r\n+-----------------------------------+--------+\r\nThe following error(s) happened: make failed\r\n1: phpize\r\n2: Configuring for:\r\n2: PHP Api Version:         20151012\r\n2: Zend Module Api No:      20151012\r\n2: Zend Extension Api No:   320151012\r\n1: /tmp/intl/intl-3.0.0/configure --enable-intl=shared \r\n2: checking for grep that handles long lines and -e... /bin/grep\r\n2: checking for egrep... /bin/grep -E\r\n2: checking for a sed that does not truncate output... /bin/sed\r\n2: checking for cc... cc\r\n2: checking whether the C compiler works... yes\r\n2: checking for C compiler default output file name... a.out\r\n2: checking for suffix of executables...\r\n2: checking whether we are cross compiling... no\r\n2: checking for suffix of object files... o\r\n2: checking whether we are using the GNU C compiler... yes\r\n2: checking whether cc accepts -g... yes\r\n2: checking for cc option to accept ISO C89... none needed\r\n2: checking how to run the C preprocessor... cc -E\r\n2: checking for icc... no\r\n2: checking for suncc... no\r\n2: checking whether cc understands -c and -o together... yes\r\n2: checking for system library directory... lib\r\n2: checking if compiler supports -R... no\r\n2: checking if compiler supports -Wl,-rpath,... yes\r\n2: checking build system type... x86_64-unknown-linux-gnu\r\n2: checking host system type... x86_64-unknown-linux-gnu\r\n2: checking target system type... x86_64-unknown-linux-gnu\r\n2: checking for PHP prefix... /root/.phpenv/versions/7.0\r\n2: checking for PHP includes... -I/root/.phpenv/versions/7.0/include/php -I/root/.phpenv/versions/7.0/include/php/main -I/root/.phpenv/versions/7.0/include/php/TSRM -I/root/.phpenv/versions/7.0/include/php/Zend -I/root/.phpenv/versions/7.0/include/php/ext -I/root/.phpenv/versions/7.0/include/php/ext/date/lib\r\n2: checking for PHP extension directory... /root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012\r\n2: checking for PHP installed headers prefix... /root/.phpenv/versions/7.0/include/php\r\n2: checking if debug is enabled... no\r\n2: checking if zts is enabled... no\r\n2: checking for re2c... no\r\n2: configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.\r\n2: checking for gawk... gawk\r\n2: checking whether to enable internationalization support... yes, shared\r\n2: checking for icu-config... /usr/bin/icu-config\r\n2: checking for location of ICU headers and libraries... /usr\r\n2: checking for ICU 4.0 or greater... found 52.1\r\n2: checking for g++... g++\r\n2: checking whether we are using the GNU C++ compiler... yes\r\n2: checking whether g++ accepts -g... yes\r\n2: checking how to run the C++ preprocessor... g++ -E\r\n2: checking for ld used by cc... /usr/bin/ld\r\n2: checking if the linker (/usr/bin/ld) is GNU ld... yes\r\n2: checking for /usr/bin/ld option to reload object files... -r\r\n2: checking for BSD-compatible nm... /usr/bin/nm -B\r\n2: checking whether ln -s works... yes\r\n2: checking how to recognize dependent libraries... pass_all\r\n2: checking for ANSI C header files... yes\r\n2: checking for sys/types.h... yes\r\n2: checking for sys/stat.h... yes\r\n2: checking for stdlib.h... yes\r\n2: checking for string.h... yes\r\n2: checking for memory.h... yes\r\n2: checking for strings.h... yes\r\n2: checking for inttypes.h... yes\r\n2: checking for stdint.h... yes\r\n2: checking for unistd.h... yes\r\n2: checking dlfcn.h usability... yes\r\n2: checking dlfcn.h presence... yes\r\n2: checking for dlfcn.h... yes\r\n2: checking how to run the C++ preprocessor... g++ -E\r\n2: checking the maximum length of command line arguments... 1572864\r\n2: checking command to parse /usr/bin/nm -B output from cc object... ok\r\n2: checking for objdir... .libs\r\n2: checking for ar... ar\r\n2: checking for ranlib... ranlib\r\n2: checking for strip... strip\r\n2: checking if cc supports -fno-rtti -fno-exceptions... no\r\n2: checking for cc option to produce PIC... -fPIC\r\n2: checking if cc PIC flag -fPIC works... yes\r\n2: checking if cc static flag -static works... yes\r\n2: checking if cc supports -c -o file.o... yes\r\n2: checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\r\n2: checking whether -lc should be explicitly linked in... no\r\n2: checking dynamic linker characteristics... GNU/Linux ld.so\r\n2: checking how to hardcode library paths into programs... immediate\r\n2: checking whether stripping libraries is possible... yes\r\n2: checking if libtool supports shared libraries... yes\r\n2: checking whether to build shared libraries... yes\r\n2: checking whether to build static libraries... no\r\n2: \r\n2: creating libtool\r\n2: appending configuration tag \"CXX\" to libtool\r\n2: checking for ld used by g++... /usr/bin/ld -m elf_x86_64\r\n2: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes\r\n2: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\r\n2: checking for g++ option to produce PIC... -fPIC\r\n2: checking if g++ PIC flag -fPIC works... yes\r\n2: checking if g++ static flag -static works... yes\r\n2: checking if g++ supports -c -o file.o... yes\r\n2: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\r\n2: checking dynamic linker characteristics... GNU/Linux ld.so\r\n2: (cached) (cached) checking how to hardcode library paths into programs... immediate\r\n2: configure: creating ./config.status\r\n2: config.status: creating config.h\r\n1: make\r\n2: /bin/bash /tmp/pickle-bbe1627712054a1e2aed0525aed282d333bfc5c4/libtool --mode=compile cc -I/usr/include  -Wno-write-strings -I. -I/tmp/intl/intl-3.0.0 -DPHP_ATOM_INC -I/tmp/pickle-bbe1627712054a1e2aed0525aed282d333bfc5c4/include -I/tmp/pickle-bbe1627712054a1e2aed0525aed282d333bfc5c4/main -I/tmp/intl/intl-3.0.0 -I/root/.phpenv/versions/7.0/include/php -I/root/.phpenv/versions/7.0/include/php/main -I/root/.phpenv/versions/7.0/include/php/TSRM -I/root/.phpenv/versions/7.0/include/php/Zend -I/root/.phpenv/versions/7.0/include/php/ext -I/root/.phpenv/versions/7.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/intl/intl-3.0.0/php_intl.c -o php_intl.lo\r\n2: mkdir .libs\r\n2:  cc -I/usr/include -Wno-write-strings -I. -I/tmp/intl/intl-3.0.0 -DPHP_ATOM_INC -I/tmp/pickle-bbe1627712054a1e2aed0525aed282d333bfc5c4/include -I/tmp/pickle-bbe1627712054a1e2aed0525aed282d333bfc5c4/main -I/tmp/intl/intl-3.0.0 -I/root/.phpenv/versions/7.0/include/php -I/root/.phpenv/versions/7.0/include/php/main -I/root/.phpenv/versions/7.0/include/php/TSRM -I/root/.phpenv/versions/7.0/include/php/Zend -I/root/.phpenv/versions/7.0/include/php/ext -I/root/.phpenv/versions/7.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/intl/intl-3.0.0/php_intl.c  -fPIC -DPIC -o .libs/php_intl.o\r\n2: In file included from /tmp/intl/intl-3.0.0/php_intl.h:34:0,\r\n2:                  from /tmp/intl/intl-3.0.0/php_intl.c:25:\r\n2: /tmp/intl/intl-3.0.0/intl_error.h:24:40: fatal error: ext/standard/php_smart_str.h: No such file or directory\r\n\r\n            2:                                         ^\r\n2: compilation terminated.\r\n2: make: *** [php_intl.lo] Error 1\r\n  /tmp/pickle/bin/pickle install redis && echo \"extension=redis.so\" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '/root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012/intl.so' - /root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0\r\n\r\nWarning: PHP Startup: Unable to load dynamic library '/root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012/intl.so' - /root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '/root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012/intl.so' - /root/.phpenv/versions/7.0/lib/php/extensions/no-debug-non-zts-20151012/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0\r\n\r\n                                                \r\n  [Exception]                                   \r\n  Could not determine info from the PHP binary  \r\n                                                \r\n\r\ninstall [--no-convert] [--defaults] [--source] [--with-configure-options WITH-CONFIGURE-OPTIONS] [--save-logs SAVE-LOGS] [--dry-run] [--php PHP] [--ini INI] [--tmp-dir TMP-DIR] [--] []\r\n```"},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/196417011","html_url":"https://github.com/Shippable/support/issues/2378#issuecomment-196417011","issue_url":"https://api.github.com/repos/Shippable/support/issues/2378","id":196417011,"user":{"login":"manishas","id":2983749,"avatar_url":"https://avatars.githubusercontent.com/u/2983749?v=3","gravatar_id":"","url":"https://api.github.com/users/manishas","html_url":"https://github.com/manishas","followers_url":"https://api.github.com/users/manishas/followers","following_url":"https://api.github.com/users/manishas/following{/other_user}","gists_url":"https://api.github.com/users/manishas/gists{/gist_id}","starred_url":"https://api.github.com/users/manishas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishas/subscriptions","organizations_url":"https://api.github.com/users/manishas/orgs","repos_url":"https://api.github.com/users/manishas/repos","events_url":"https://api.github.com/users/manishas/events{/privacy}","received_events_url":"https://api.github.com/users/manishas/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T17:12:43Z","updated_at":"2016-03-14T17:12:43Z","body":"Closing this since there is nothing actionable to be done here."}}