Closed alfonsocaponi closed 7 years ago
It's seems the API has changed. I will have a look into it tomorrow.
I assume you are using PHP7? Any chance you can switch to PHP5?
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`
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
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
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
You have to uninstall distribute.
It is already done, but nothing changes. I'll let you know if I'll find a solution :(
Do NOT install distribute.
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
Feel free to send a pull request :)
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?
@hamana can you try this branch: https://github.com/mushorg/glastopf/tree/docker_fix ?
@glaslos: I tried this branch, but nothing changed.
@hamana you also got the NameError: name 'sys_platform' is not defined_
exception?
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
What version of PHP are you using?
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
Can you upgrade to PHP7?
Hi @glaslos it work when I upgrade to PHP7. But I have to mofify something in Dockerfile.
Feel free to make a pull request with your changes.
Hello, @glaslos!
I have the same problem like hamana. Even if I switch to PHP7.0, it doesn't work.
@ioanamat can you past your error message?
@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
Did you run phpize7.0 ?
@glaslos
Did you mean to run from command line the command phpize7.0? Yes, I do, and the error is the same.
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
Ok, but mushorg has the graph feature?
@glaslos Sorry, I mean SNARE has the same features like KIPPO Graph?
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?
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?
You have to use PHP version 7.
@glaslos thanks! It works.
@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