Ubuntu 14.04で、honnypotのglastopfを構築しています。
その過程でPHP sandboxを作成しているのですが、次の手順を実行したところ、
下記のエラーが出力されてインストールできず困っております。
どうしたらmakeでき、make installができるようになるかご教授いただけませんか?
よろしくお願いいたします。
※参考にしているサイト
http://www.morihi-soc.net/?p=103
http://nttcsc.com/wordpress/?p=188
==実行手順==
$ cd /usr/local/src/glastopf
$ sudo git clone git://github.com/glastopf/BFR.git
$ cd BFR
$ sudo phpize
$ sudo ./configure –enable-bfr
$ sudo make && sudo make install
=======
==エラー==
/bin/bash /usr/local/src/glastopf/BFR/libtool --mode=compile cc -Werror -Wall -I. -I/usr/local/src/glastopf/BFR -DPHP_ATOM_INC -I/usr/local/src/glastopf/BFR/include -I/usr/local/src/glastopf/BFR/main -I/usr/local/src/glastopf/BFR -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 /usr/local/src/glastopf/BFR/php_bfr.c -o php_bfr.lo
libtool: compile: cc -Werror -Wall -I. -I/usr/local/src/glastopf/BFR -DPHP_ATOM_INC -I/usr/local/src/glastopf/BFR/include -I/usr/local/src/glastopf/BFR/main -I/usr/local/src/glastopf/BFR -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 /usr/local/src/glastopf/BFR/php_bfr.c -fPIC -DPIC -o .libs/php_bfr.o
/usr/local/src/glastopf/BFR/php_bfr.c: In function 'zif_override_function':
/usr/local/src/glastopf/BFR/php_bfr.c:152:2: error: implicit declaration of function 'zend_hash_str_find_ptr' [-Werror=implicit-function-declaration]
if ((func = zend_hash_str_find_ptr(EG(function_table),
^
/usr/local/src/glastopf/BFR/php_bfr.c:152:12: error: assignment makes pointer from integer without a cast [-Werror]
if ((func = zend_hash_str_find_ptr(EG(function_table),
^
/usr/local/src/glastopf/BFR/php_bfr.c:163:2: error: implicit declaration of function 'zend_hash_str_exists' [-Werror=implicit-function-declaration]
if (zend_hash_str_exists(EG(function_table),
^
/usr/local/src/glastopf/BFR/php_bfr.c:166:3: error: implicit declaration of function 'zend_hash_str_del' [-Werror=implicit-function-declaration]
zend_hash_str_del(EG(function_table),
^
/usr/local/src/glastopf/BFR/php_bfr.c:170:2: error: implicit declaration of function 'zend_hash_str_add_new_ptr' [-Werror=implicit-function-declaration]
if (zend_hash_str_add_new_ptr(EG(function_table),
^
/usr/local/src/glastopf/BFR/php_bfr.c:172:19: error: comparison between pointer and integer [-Werror]
func_dup) == NULL)
^
/usr/local/src/glastopf/BFR/php_bfr.c: In function 'zif_rename_function':
/usr/local/src/glastopf/BFR/php_bfr.c:207:12: error: assignment makes pointer from integer without a cast [-Werror]
if ((func = zend_hash_str_find_ptr(EG(function_table),
^
/usr/local/src/glastopf/BFR/php_bfr.c:227:2: error: implicit declaration of function 'zend_hash_str_add_ptr' [-Werror=implicit-function-declaration]
if (zend_hash_str_add_ptr(EG(function_table), z_new_fname, new_fname_len, func_dup) == NULL)
^
/usr/local/src/glastopf/BFR/php_bfr.c:227:86: error: comparison between pointer and integer [-Werror]
if (zend_hash_str_add_ptr(EG(function_table), z_new_fname, new_fname_len, func_dup) == NULL)
^
cc1: all warnings being treated as errors
make: *** [php_bfr.lo] エラー 1
================
あなたの回答
tips
プレビュー