mushorg / glastopf

Web Application Honeypot
http://glastopf.org
551 stars 172 forks source link

make error on Ubuntu 16.04 #266

Closed alfonsocaponi closed 7 years ago

alfonsocaponi commented 8 years ago
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:        16.04
Codename:       xenial
# cd /tmp
# git clone git://github.com/mushorg/BFR.git
# cd BFR
# phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
# ./configure --enable-bfr | grep " no"
checking for a sed that does not truncate output... /bin/sed
checking whether we are cross compiling... no
checking for cc option to accept ISO C89... none needed
checking for icc... no
checking for suncc... no
checking if compiler supports -R... no
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for a sed that does not truncate output... (cached) /bin/sed
checking for dlltool... no
checking for sysroot... no
checking if mt is a manifest tool... no
checking if cc supports -fno-rtti -fno-exceptions... no
checking whether -lc should be explicitly linked in... no
checking whether to build static libraries... no
# make
/bin/bash /tmp/BFR/libtool --mode=compile cc  -I. -I/tmp/BFR -DPHP_ATOM_INC -I/tmp/BFR/include -I/tmp/BFR/main -I/tmp/BFR -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c /tmp/BFR/php_bfr.c -o php_bfr.lo
libtool: compile:  cc -I. -I/tmp/BFR -DPHP_ATOM_INC -I/tmp/BFR/include -I/tmp/BFR/main -I/tmp/BFR -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/BFR/php_bfr.c  -fPIC -DPIC -o .libs/php_bfr.o
/tmp/BFR/php_bfr.c: In function ‘zm_startup_bfr’:
/tmp/BFR/php_bfr.c:121:14: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  old_execute = zend_execute;
              ^
/tmp/BFR/php_bfr.c: In function ‘zif_override_function’:
/tmp/BFR/php_bfr.c:165:23: error: ‘ht’ undeclared (first use in this function)
   zend_get_parameters(ht, 3, &z_function_name, &z_function_args,
                       ^
/tmp/BFR/php_bfr.c:165:23: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/php/20151012/Zend/zend.h:31:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /tmp/BFR/php_bfr.h:26,
                 from /tmp/BFR/php_bfr.c:23:
/usr/include/php/20151012/Zend/zend_types.h:336:39: warning: passing argument 1 of ‘zval_get_type’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z_TYPE(zval)    zval_get_type(&(zval))
...
...
...
In file included from /usr/include/php/20151012/Zend/zend.h:36:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /tmp/BFR/php_bfr.h:26,
                 from /tmp/BFR/php_bfr.c:23:
/usr/include/php/20151012/Zend/zend_hash.h:146:28: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char *’
 ZEND_API int ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
                            ^
/tmp/BFR/php_bfr.c:260:4: error: too many arguments to function ‘zend_hash_del’
    zend_hash_del(EG(function_table), Z_STRVAL_P(z_new_fname),
    ^
In file included from /usr/include/php/20151012/Zend/zend.h:36:0,
                 from /usr/include/php/20151012/main/php.h:36,
                 from /tmp/BFR/php_bfr.h:26,
                 from /tmp/BFR/php_bfr.c:23:
/usr/include/php/20151012/Zend/zend_hash.h:146:28: note: declared here
 ZEND_API int ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
                            ^
Makefile:193: recipe for target 'php_bfr.lo' failed
make: *** [php_bfr.lo] Error 1
glaslos commented 8 years ago

It's seems the API has changed. I will have a look into it tomorrow.

glaslos commented 8 years ago

I assume you are using PHP7? Any chance you can switch to PHP5?

alfonsocaponi commented 8 years ago

Yes, no problems using php5. If you want, you could add these note about 'Ubuntu 16.04 LTS' into 'installation_ubuntu.rst':

`src http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04

If exists automatically remove php7: sudo aptitude purge dpkg -l | grep php| awk '{print $2}' |tr "\n" " "

Add the PPA: sudo add-apt-repository ppa:ondrej/php

Install your PHP Version: sudo apt-get update sudo apt-get install php5.6

Verify your version: sudo php -v`

alfonsocaponi commented 8 years ago

Soory man :)

Installing latest development version from the repository:

git clone https://github.com/mushorg/glastopf.git git clone https://github.com/client9/libinjection.git git clone https://github.com/mushorg/pylibinjection.git cd glastopf python setup.py install

_Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz Extracting in /tmp/tmpeMLLBX Now working in /tmp/tmpeMLLBX/distribute-0.6.35 Building a Distribute egg in /opt/glastopf Traceback (most recent call last): File "setup.py", line 248, in scripts = scripts, File "/usr/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/tmp/tmpeMLLBX/distribute-0.6.35/setuptools/dist.py", line 225, in init _Distribution.init(self,attrs) File "/usr/lib/python2.7/distutils/dist.py", line 287, in init self.finalize_options() File "/tmp/tmpeMLLBX/distribute-0.6.35/setuptools/dist.py", line 257, in finalize_options ep.require(installer=self.fetch_build_egg) File "/tmp/tmpeMLLBX/distribute-0.6.35/pkg_resources.py", line 2027, in require working_set.resolve(self.dist.requires(self.extras),env,installer)) File "/tmp/tmpeMLLBX/distribute-0.6.35/pkg_resources.py", line 2237, in requires dm = self._dep_map File "/tmp/tmpeMLLBX/distribute-0.6.35/pkg_resources.py", line 2466, in _dep_map self.__dep_map = self._compute_dependencies() File "/tmp/tmpeMLLBX/distribute-0.6.35/pkg_resources.py", line 2499, in _compute_dependencies common = frozenset(reqs_for_extra(None)) File "/tmp/tmpeMLLBX/distribute-0.6.35/pkg_resources.py", line 2496, in reqs_for_extra if req.marker_fn(override={'extra':extra}): File "/tmp/tmpeMLLBX/distribute-0.6.35/_markerlib/markers.py", line 109, in marker_fn return eval(compiled_marker, environment) File "", line 1, in NameError: name 'sys_platform' is not defined /opt/glastopf/distribute-0.6.35-py2.7.egg Traceback (most recent call last): File "setup.py", line 2, in use_setuptools() File "/opt/glastopf/distribute_setup.py", line 152, in use_setuptools return _do_download(version, download_base, to_dir, download_delay) File "/opt/glastopf/distribute_setup.py", line 132, in _do_download _build_egg(egg, tarball, to_dir) File "/opt/glastopf/distribute_setup.py", line 123, in _buildegg raise IOError('Could not build the egg.') IOError: Could not build the egg.

glaslos commented 8 years ago

Regarding BFR, I am working on a php7.0 branch but it might take some time as my C skills are horrible :) http://stackoverflow.com/a/34694350/948369

alfonsocaponi commented 8 years ago

Yes I know it, setuptools is installed :(

# pip install setuptools
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages
# python -V
Python 2.7.11+

Manually:

wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
tar xzvf distribute-0.6.35.tar.gz
cd distribute-0.6.35/
python setup.py install

_Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/local/lib/python2.7/dist-packages
Non-egg installation
Could not locate setuptools*.egg-info
Traceback (most recent call last):
  File "setup.py", line 248, in <module>
    scripts = scripts,
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/tmp/distribute-0.6.35/setuptools/dist.py", line 225, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/tmp/distribute-0.6.35/setuptools/dist.py", line 257, in finalize_options
    ep.require(installer=self.fetch_build_egg)
  File "/tmp/distribute-0.6.35/pkg_resources.py", line 2027, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/tmp/distribute-0.6.35/pkg_resources.py", line 2237, in requires
    dm = self._dep_map
  File "/tmp/distribute-0.6.35/pkg_resources.py", line 2466, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/tmp/distribute-0.6.35/pkg_resources.py", line 2499, in _compute_dependencies
    common = frozenset(reqs_for_extra(None))
  File "/tmp/distribute-0.6.35/pkg_resources.py", line 2496, in reqs_for_extra
    if req.marker_fn(override={'extra':extra}):
  File "/tmp/distribute-0.6.35/_markerlib/markers.py", line 109, in marker_fn
    return eval(compiled_marker, environment)
  File "<environment marker>", line 1, in <module>
NameError: name 'sys_platform' is not defined_

# dpkg --list | grep setuptools
ii  python-setuptools                  20.7.0-1                                             all          Python Distutils Enhancements
glaslos commented 8 years ago

You have to uninstall distribute.

alfonsocaponi commented 8 years ago

It is already done, but nothing changes. I'll let you know if I'll find a solution :(

glaslos commented 8 years ago

Do NOT install distribute.

alfonsocaponi commented 8 years ago

Nothing doing! I solved this issue by commenting the first two lines in setup.py! :) (https://github.com/gemtools/gemtools/issues/22)

Also you could add these to "Ubuntu Prerequisites":

apt-get install cython apt-get install python-dateutil apt-get install python-mysqldb

glaslos commented 8 years ago

Feel free to send a pull request :)

lancelot9194 commented 8 years ago

Hi, I have the same issue with @alfonsocaponi when try to build glastopf docker image. The Dockerfile I got in the project. How can i solve it?

glaslos commented 8 years ago

@hamana can you try this branch: https://github.com/mushorg/glastopf/tree/docker_fix ?

lancelot9194 commented 8 years ago

@glaslos: I tried this branch, but nothing changed.

glaslos commented 8 years ago

@hamana you also got the NameError: name 'sys_platform' is not defined_ exception?

lancelot9194 commented 8 years ago

I have issue with BFR module when try to build docker image using Dockerfile in https://github.com/mushorg/glastopf/tree/docker_fix branch . This error is the same with alfonsocaponi 's one:

/opt/BFR/php_bfr.c: In function 'zif_override_function': /opt/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), ^ /opt/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), ^ /opt/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), ^ /opt/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), ^ /opt/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), ^ /opt/BFR/php_bfr.c:172:19: error: comparison between pointer and integer [-Werror] func_dup) == NULL) ^ /opt/BFR/php_bfr.c: In function 'zif_rename_function': /opt/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), ^ /opt/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) ^ /opt/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] Error 1

glaslos commented 8 years ago

What version of PHP are you using?

lancelot9194 commented 8 years ago

PHP version:

PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

glaslos commented 8 years ago

Can you upgrade to PHP7?

lancelot9194 commented 8 years ago

Hi @glaslos it work when I upgrade to PHP7. But I have to mofify something in Dockerfile.

glaslos commented 8 years ago

Feel free to make a pull request with your changes.

ioanamat commented 7 years ago

Hello, @glaslos!

I have the same problem like hamana. Even if I switch to PHP7.0, it doesn't work.

glaslos commented 7 years ago

@ioanamat can you past your error message?

ioanamat commented 7 years ago

@glaslos This is the error message

/opt/BFR/php_bfr.c: In function ‘zif_override_function’:
/opt/BFR/php_bfr.c:152:14: error: implicit declaration of function ‘zend_hash_str_find_ptr’ [-Werror=implicit-function-declaration]
  if ((func = zend_hash_str_find_ptr(EG(function_table),
              ^
/opt/BFR/php_bfr.c:152:12: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
  if ((func = zend_hash_str_find_ptr(EG(function_table),
            ^
/opt/BFR/php_bfr.c:163:6: error: implicit declaration of function ‘zend_hash_str_exists’ [-Werror=implicit-function-declaration]
  if (zend_hash_str_exists(EG(function_table),
      ^
/opt/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),
   ^
/opt/BFR/php_bfr.c:170:6: 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),
      ^
/opt/BFR/php_bfr.c:172:19: error: comparison between pointer and integer [-Werror]
         func_dup) == NULL)
                   ^
/opt/BFR/php_bfr.c: In function ‘zif_rename_function’:
/opt/BFR/php_bfr.c:207:12: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
  if ((func = zend_hash_str_find_ptr(EG(function_table),
            ^
/opt/BFR/php_bfr.c:227:6: 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
      ^
/opt/BFR/php_bfr.c:227:86: error: comparison between pointer and integer [-Werror]
 str_add_ptr(EG(function_table), z_new_fname, new_fname_len, func_dup) == NULL)
                                                                       ^
cc1: all warnings being treated as errors
Makefile:180: recipe for target 'php_bfr.lo' failed
make: *** [php_bfr.lo] Error 1
glaslos commented 7 years ago

Did you run phpize7.0 ?

ioanamat commented 7 years ago

@glaslos

Did you mean to run from command line the command phpize7.0? Yes, I do, and the error is the same.

glaslos commented 7 years ago

I can try to reproduce if I have some time, but to be honest this is not high on my priority list. In the meantime, I recommend to switch to https://github.com/mushorg/snare

ioanamat commented 7 years ago

Ok, but mushorg has the graph feature?

ioanamat commented 7 years ago

@glaslos Sorry, I mean SNARE has the same features like KIPPO Graph?

glaslos commented 7 years ago

No, neither SNARE nor Glastopf have a graphical interface for the collected data. You probably want to try TPot or MHN instead.

rajamca66 commented 7 years ago

Hello, We are trying to install the same. Getting the below error while running make comment.

/bin/bash /opt/BFR/libtool --mode=compile cc -Werror -Wall -I. -I/opt/BFR -DPHP_ATOM_INC -I/opt/BFR/include -I/opt/BFR/main -I/opt/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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c /opt/BFR/php_bfr.c -o php_bfr.lo 
libtool: compile:  cc -Werror -Wall -I. -I/opt/BFR -DPHP_ATOM_INC -I/opt/BFR/include -I/opt/BFR/main -I/opt/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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /opt/BFR/php_bfr.c  -fPIC -DPIC -o .libs/php_bfr.o
/opt/BFR/php_bfr.c: In function 'zif_override_function':
/opt/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),
  ^
/opt/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),
            ^
/opt/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),
  ^
/opt/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),
   ^
/opt/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),
  ^
/opt/BFR/php_bfr.c:172:19: error: comparison between pointer and integer [-Werror]
         func_dup) == NULL)
                   ^
/opt/BFR/php_bfr.c: In function 'zif_rename_function':
/opt/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),
            ^
/opt/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)
  ^
/opt/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] Error 1

Can anyone provide the solution?

glaslos commented 7 years ago

@rajamca66 see https://github.com/mushorg/glastopf/issues/266#issuecomment-254433572

Mato-Z commented 7 years ago

Hello, @glaslos I have the same problem on Debian 8 x64. :-(

/opt/BFR# make &&  make install
/bin/bash /opt/BFR/libtool --mode=compile cc -Werror -Wall -I. -I/opt/BFR -DPHP_ATOM_INC -I/opt/BFR/include -I/opt/BFR/main -I/opt/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 /opt/BFR/php_bfr.c -o php_bfr.lo
libtool: compile:  cc -Werror -Wall -I. -I/opt/BFR -DPHP_ATOM_INC -I/opt/BFR/include -I/opt/BFR/main -I/opt/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 /opt/BFR/php_bfr.c  -fPIC -DPIC -o .libs/php_bfr.o
/opt/BFR/php_bfr.c: In function 'zif_override_function':
/opt/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),
  ^
/opt/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),
            ^
/opt/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),
  ^
/opt/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),
   ^
/opt/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),
  ^
/opt/BFR/php_bfr.c:172:19: error: comparison between pointer and integer [-Werror]
         func_dup) == NULL)
                   ^
/opt/BFR/php_bfr.c: In function 'zif_rename_function':
/opt/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),
            ^
/opt/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)
  ^
/opt/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
Makefile:180: recipe for target 'php_bfr.lo' failed
make: *** [php_bfr.lo] Error 1
 php -v
PHP 5.6.30-0+deb8u1 (cli) (built: Feb  8 2017 08:50:21)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Distributor ID: Debian
Description:    Debian GNU/Linux 8.7 (jessie)
Release:        8.7
Codename:       jessie

Can you help me please?

glaslos commented 7 years ago

You have to use PHP version 7.

Mato-Z commented 7 years ago

@glaslos thanks! It works.

Badeeuzzaman98 commented 6 years ago

@glaslos hello sir... can you help me to solve this problem ? i have install php v 7.0 but get error for make && make install. that make a problem to install my glastopf on raspberry pi

pi@raspberrypi:/opt/BFR $ make && make install /bin/bash /opt/BFR/libtool --mode=compile cc -Werror -Wall -I. -I/opt/BFR -DPHP_ATOM_INC -I/opt/BFR/include -I/opt/BFR/main -I/opt/BFR -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /opt/BFR/php_bfr.c -o php_bfr.lo libtool: error: Failed to create '.libs' Makefile:193: recipe for target 'php_bfr.lo' failed make: *** [php_bfr.lo] Error 1

can you help me please T_T