View Issue Details

IDProjectCategoryView StatusLast Update
0001314XdebugInstallationpublic2016-06-15 10:30
Reporterfprochazka Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformlinuxOSUbuntuOS Version14.04.4 LTS
Product Version2.4.0 
Summary0001314: Does not compile with PHP 7.1.0-alpha1
Description

Compilation stops with errors

Steps To Reproduce

Compiled PHP 7.1.0-alpha1

$ php -i |grep configure
Configure Command => './configure' '--with-openssl' '--with-kerberos' '--with-zlib' '--enable-bcmath' '--with-bz2' '--with-curl' '--enable-dba' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/include' '--with-png-dir=/usr/include' '--with-zlib-dir=/usr/include' '--with-xpm-dir=/usr/include' '--with-freetype-dir=/usr/lib' '--enable-gd-native-ttf' '--with-gettext' '--with-mhash' '--with-imap' '--with-imap-ssl' '--enable-mbstring' '--with-mcrypt' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pdo-pgsql' '--with-pgsql' '--enable-shmop' '--enable-soap' '--enable-sockets' '--with-readline' '--enable-sysvmsg' '--with-tidy' '--with-xmlrpc' '--with-xsl' '--enable-zip' '--enable-intl' '--enable-fpm' '--enable-pcntl' '--prefix=/usr/php/7.1.0-alpha1'

$ php -v
PHP 7.1.0alpha1 (cli) (built: Jun 10 2016 13:37:31) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies

And tried to install xdebug

$ sudo pecl install xdebug

Additional Information

cc -I. -I/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/include -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/main -I/tmp/pear/temp/xdebug -I/usr/php/7.1.0-alpha1/include/php -I/usr/php/7.1.0-alpha1/include/php/main -I/usr/php/7.1.0-alpha1/include/php/TSRM -I/usr/php/7.1.0-alpha1/include/php/Zend -I/usr/php/7.1.0-alpha1/include/php/ext -I/usr/php/7.1.0-alpha1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/xdebug/xdebug_profiler.c -fPIC -DPIC -o .libs/xdebug_profiler.o
/bin/bash /tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/include -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/main -I/tmp/pear/temp/xdebug -I/usr/php/7.1.0-alpha1/include/php -I/usr/php/7.1.0-alpha1/include/php/main -I/usr/php/7.1.0-alpha1/include/php/TSRM -I/usr/php/7.1.0-alpha1/include/php/Zend -I/usr/php/7.1.0-alpha1/include/php/ext -I/usr/php/7.1.0-alpha1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/xdebug/xdebug_set.c -o xdebug_set.lo
cc -I. -I/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/include -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/main -I/tmp/pear/temp/xdebug -I/usr/php/7.1.0-alpha1/include/php -I/usr/php/7.1.0-alpha1/include/php/main -I/usr/php/7.1.0-alpha1/include/php/TSRM -I/usr/php/7.1.0-alpha1/include/php/Zend -I/usr/php/7.1.0-alpha1/include/php/ext -I/usr/php/7.1.0-alpha1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/xdebug/xdebug_set.c -fPIC -DPIC -o .libs/xdebug_set.o
/bin/bash /tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/include -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/main -I/tmp/pear/temp/xdebug -I/usr/php/7.1.0-alpha1/include/php -I/usr/php/7.1.0-alpha1/include/php/main -I/usr/php/7.1.0-alpha1/include/php/TSRM -I/usr/php/7.1.0-alpha1/include/php/Zend -I/usr/php/7.1.0-alpha1/include/php/ext -I/usr/php/7.1.0-alpha1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/xdebug/xdebug_stack.c -o xdebug_stack.lo
cc -I. -I/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/include -I/tmp/pear/temp/pear-build-rootYWrWAd/xdebug-2.4.0/main -I/tmp/pear/temp/xdebug -I/usr/php/7.1.0-alpha1/include/php -I/usr/php/7.1.0-alpha1/include/php/main -I/usr/php/7.1.0-alpha1/include/php/TSRM -I/usr/php/7.1.0-alpha1/include/php/Zend -I/usr/php/7.1.0-alpha1/include/php/ext -I/usr/php/7.1.0-alpha1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/xdebug/xdebug_stack.c -fPIC -DPIC -o .libs/xdebug_stack.o
In file included from /tmp/pear/temp/xdebug/php_xdebug.h:30:0,
from /tmp/pear/temp/xdebug/xdebug_stack.c:18:
/tmp/pear/temp/xdebug/xdebug_stack.c: In function ‘xdebug_log_stack’:
/usr/php/7.1.0-alpha1/include/php/main/php.h:283:57: error: ‘LOG_NOTICE’ undeclared (first use in this function)
#define php_log_err(msg) php_log_err_with_severity(msg, LOG_NOTICE)
^
/tmp/pear/temp/xdebug/xdebug_stack.c:171:2: note: in expansion of macro ‘php_log_err’
php_log_err(tmp_log_message TSRMLS_CC);
^
/usr/php/7.1.0-alpha1/include/php/main/php.h:283:57: note: each undeclared identifier is reported only once for each function it appears in
#define php_log_err(msg) php_log_err_with_severity(msg, LOG_NOTICE)
^
/tmp/pear/temp/xdebug/xdebug_stack.c:171:2: note: in expansion of macro ‘php_log_err’
php_log_err(tmp_log_message TSRMLS_CC);
^
make: *** [xdebug_stack.lo] Error 1
ERROR: `make' failed

TagsNo tags attached.
Operating SystemUbuntu 14.04.4 LTS
PHP Version7.1-dev

Activities

derick

2016-06-15 10:30

administrator   ~0003635

This was a bug in PHP's headers. Dmitry has fixed it, but apparently too late for 7.1-alpha1.

As a workaround, you may edit

/usr/php/7.1.0-alpha1/include/php/main/php.h:283

and change LOG_NOTICE to 3, so that the line reads:

#define php_log_err(msg) php_log_err_with_severity(msg, 3)

Issue History

Date Modified Username Field Change
2016-06-15 08:32 fprochazka New Issue
2016-06-15 10:30 derick Note Added: 0003635
2016-06-15 10:30 derick Status new => resolved
2016-06-15 10:30 derick Resolution open => no change required
2016-06-15 10:30 derick Assigned To => derick