Skip to content

Instantly share code, notes, and snippets.

@tobetchi
Last active December 19, 2015 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobetchi/6037862 to your computer and use it in GitHub Desktop.
Save tobetchi/6037862 to your computer and use it in GitHub Desktop.
$ sudo php-build 5.4.5 ~/.phpenv/versions/5.4.5
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.4.5 into /Users/s_urabe/.phpenv/versions/5.4.5
[Skipping]: Already downloaded and extracted http://www.php.net/distributions/php-5.4.5.tar.bz2
[Preparing]: /var/tmp/php-build/source/5.4.5
[Compiling]: /var/tmp/php-build/source/5.4.5
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
/var/tmp/php-build/source/5.4.5/ext/spl/php_spl.c: In function ‘php_spl_object_hash’:
/var/tmp/php-build/source/5.4.5/ext/spl/php_spl.c:794: warning: format ‘%016x’ expects type ‘unsigned int’, but argument 4 has type ‘intptr_t’
/var/tmp/php-build/source/5.4.5/ext/spl/php_spl.c:794: warning: format ‘%016x’ expects type ‘unsigned int’, but argument 5 has type ‘intptr_t’
/var/tmp/php-build/source/5.4.5/ext/standard/var.c: In function ‘php_var_export_ex’:
/var/tmp/php-build/source/5.4.5/ext/standard/var.c:439: warning: conversion lacks type at end of format
In file included from /usr/include/tidy/tidy.h:70,
from /var/tmp/php-build/source/5.4.5/ext/tidy/tidy.c:33:
/usr/include/tidy/platform.h:530: error: duplicate ‘unsigned’
/usr/include/tidy/platform.h:530: warning: useless type name in empty declaration
make: *** [ext/tidy/tidy.lo] Error 1
-----------------------------------------
The full Log is available at '/tmp/php-build.5.4.5.20130719174909.log'.
[Warn]: Aborting build.
/var/tmp/php-build/source/5.4.5/ext/zlib/zlib.c:1009: warning: initialization from incompatible pointer type
/var/tmp/php-build/source/5.4.5/ext/json/json.c: In function ‘json_escape_string’:
/var/tmp/php-build/source/5.4.5/ext/json/json.c:372: warning: unknown conversion type character ‘k’ in format
/var/tmp/php-build/source/5.4.5/ext/json/json.c: In function ‘php_json_encode’:
/var/tmp/php-build/source/5.4.5/ext/json/json.c:588: warning: unknown conversion type character ‘k’ in format
/var/tmp/php-build/source/5.4.5/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c:51: warning: initialization from incompatible pointer type
/var/tmp/php-build/source/5.4.5/ext/mcrypt/mcrypt_filter.c: In function ‘php_mcrypt_filter_create’:
/var/tmp/php-build/source/5.4.5/ext/mcrypt/mcrypt_filter.c:210: warning: passing argument 1 of ‘mcrypt_module_open’ discards qualifiers from pointer target type
/var/tmp/php-build/source/5.4.5/ext/pdo/pdo_stmt.c: In function ‘really_register_bound_param’:
/var/tmp/php-build/source/5.4.5/ext/pdo/pdo_stmt.c:323: warning: conversion lacks type at end of format
/var/tmp/php-build/source/5.4.5/ext/soap/soap.c: In function ‘serialize_response_call’:
/var/tmp/php-build/source/5.4.5/ext/soap/soap.c:3902: warning: passing argument 3 of ‘php_escape_html_entities’ from incompatible pointer type
/var/tmp/php-build/source/5.4.5/ext/soap/soap.c:3927: warning: passing argument 3 of ‘php_escape_html_entities’ from incompatible pointer type
/var/tmp/php-build/source/5.4.5/ext/spl/php_spl.c: In function ‘php_spl_object_hash’:
/var/tmp/php-build/source/5.4.5/ext/spl/php_spl.c:794: warning: format ‘%016x’ expects type ‘unsigned int’, but argument 4 has type ‘intptr_t’
/var/tmp/php-build/source/5.4.5/ext/spl/php_spl.c:794: warning: format ‘%016x’ expects type ‘unsigned int’, but argument 5 has type ‘intptr_t’
/var/tmp/php-build/source/5.4.5/ext/standard/var.c: In function ‘php_var_export_ex’:
/var/tmp/php-build/source/5.4.5/ext/standard/var.c:439: warning: conversion lacks type at end of format
In file included from /usr/include/tidy/tidy.h:70,
from /var/tmp/php-build/source/5.4.5/ext/tidy/tidy.c:33:
/usr/include/tidy/platform.h:530: error: duplicate ‘unsigned’
/usr/include/tidy/platform.h:530: warning: useless type name in empty declaration
make: *** [ext/tidy/tidy.lo] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment