Bug #70899 [Asn]: php 7 RC 7 buildconf failure
| From: | laruence@php.net | Date: | Fri, 13 Nov 2015 10:36:55 +0000 |
| Subject: | Bug #70899 [Asn]: php 7 RC 7 buildconf failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197223@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70899&edit=1
ID: 70899
Updated by: laruence@php.net
Reported by: admin at dunkleallianz dot net
Summary: php 7 RC 7 buildconf failure
Status: Assigned
Type: Bug
Package: Compile Failure
Operating System: Debian 8.3
PHP Version: 7.0.0RC7
Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
@amind instead of waitting for final fix of php7, you can also fix this in imagick side by move
whole contents of imagemagick.m4 into config.m4 as it only define some AF_FUNCS, I don't think
it's necessary to keep it in a separted file.
thanks
Previous Comments:
------------------------------------------------------------------------
[2015-11-13 09:59:06] admin at dunkleallianz dot net
So i have test this patch https://gist.github.com/reeze/89fd045f1d0960d2add3#file-more-compatible-patch-diff
so i have test it
wget https://github.com/mkoppanen/imagick/archive/phpseven.zip
wget https://downloads.php.net/~ab/php-7.0.0RC7.tar.gz
tar xvf php-7.0.0RC7.tar.gz
unzip phpseven.zip
mv imagick-phpseven imagick
cp imagick php-7.0.0RC7/ext/
Edit patch the 2 files
rm php-7.0.0RC7/configure
./buildconf --force
./configure '--prefix=/usr/share/php7' '--datadir=/usr/share/php7'
'--mandir=/usr/share/man' '--bindir=/usr/bin/php7'
'--with-libdir=lib/x86_64-linux-gnu' '--includedir=/usr/include/php7'
'--sysconfdir=/etc/php7/apache2' '--with-config-file-path=/etc/php7/apache2'
'--with-config-file-scan-dir=/etc/php7/conf.d' '--enable-libxml'
'--enable-session' '--with-pcre-regex=/usr' '--enable-xml'
'--enable-simplexml' '--enable-filter' '--disable-debug'
'--enable-inline-optimization' '--disable-rpath' '--disable-static'
'--enable-shared' '--with-pic' '--with-gnu-ld' '--with-gd'
'--with-jpeg-dir' '--with-png-dir' '--with-xpm-dir'
'--enable-exif' '--with-zlib' '--with-bz2' '--with-curl'
'--with-ldap' '--with-freetype-dir' '--enable-soap'
'--enable-sockets' '--enable-calendar' '--enable-ftp'
'--enable-mbstring' '--enable-gd-native-ttf' '--enable-bcmath'
'--enable-zip' '--with-pear' '--with-openssl' '--with-imap'
'--with-imap-ssl' '--with-kerberos' '--enable-phar'
'--enable-pdo' '--with-mys!
qli' '--with-mysql-sock' '--with-mcrypt' '--with-pdo-mysql'
'--enable-mysqlnd' '--with-imagick'
now it works
------------------------------------------------------------------------
[2015-11-13 08:17:33] admin at dunkleallianz dot net
Do you have a link to the patch or I can simply load the https://github.com/php/php-src/tree/php-7.0.0RC7
again?
Currently I have reloaded the Branch.
same error
Forcing buildconf
Removing configure caches
buildconf: checking installation...
buildconf: autoconf version 2.69 (ok)
rebuilding aclocal.m4
rebuilding configure
/usr/bin/m4:ext/imagick/config.m4:14: cannot open `$config_m4_dir/imagemagick.m4': No such file
or directory
autom4te: /usr/bin/m4 failed with exit status: 1
rebuilding main/php_config.h.in
/usr/bin/m4:ext/imagick/config.m4:14: cannot open `$config_m4_dir/imagemagick.m4': No such file
or directory
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader: '/usr/bin/autom4te' failed with exit status: 1
or something i do wrong ?
------------------------------------------------------------------------
[2015-11-13 06:16:52] laruence@php.net
and about the webhelper one, maybe you can introduce a new NEW_EXTENSION_EX, which accpet arguamnets
as build_dir, source_dir, it will be more safe than the current one
------------------------------------------------------------------------
[2015-11-13 05:42:50] laruence@php.net
@bwoebi since the origin change break things, I suggest we revert it, it's not a critical
change anyway.
thanks
------------------------------------------------------------------------
[2015-11-13 02:41:54] reeze@php.net
Hi bob. the second patch's PHP_CURRENT_CONFIG_M4_DIR is a macro to retrive current
extension's dir which is initialized before evaluate every extension, this could be though as
the variable $config_m4_dir but is "autoconf time", imagick requires preprocess time
path to include another m4 file.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=70899
--
Edit this bug report at https://bugs.php.net/bug.php?id=70899&edit=1