Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebuildconf failure php7 and imagick 3.4.rc2 #128

Closed
lastsamurai26 opened this issue Dec 4, 2015 · 15 comments
Closed

rebuildconf failure php7 and imagick 3.4.rc2 #128

lastsamurai26 opened this issue Dec 4, 2015 · 15 comments

Comments

@lastsamurai26
Copy link

:) I think I need to write anything

https://bugs.php.net/bug.php?id=70899

used Version

php 7.0.0
wget http://de2.php.net/get/php-7.0.0.tar.gz/from/this/mirror -O php-7.0.0.tar.gz
imagick 3.4.0RC2
wget http://pecl.php.net/get/imagick-3.4.0RC2.tgz

tar xvzf php-7.0.0.tar.gz
tar xvzf imagick-3.4.0RC2.tgz
mv imagick-3.4.0RC2 imagick
cp imagick php-7.0.0/ext
cd..
rm configure
./buildconf --force

Output
Forcing buildconf
Removing configure caches
buildconf: checking installation...
buildconf: autoconf version 2.69 (ok)
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


i Don't know why but this version of imagick works with php-5.6

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

@lastsamurai26 can you recommend a slim vagrant box for Debian 8.3 ?

I can't repro this on centos which is what I normally dev on.

this version of imagick works with php-5.6

Someone cocked up the PHP conf files in one of the 7.0.0 RC versions.....because RC releases are great times to be experimenting with autoconf make files. :-P

@lastsamurai26
Copy link
Author

i have 2 Root server and one vserver i can test it on the Vserver, if you mean that.

if i use this patch https://gist.github.com/reeze/89fd045f1d0960d2add3#file-more-compatible-patch-diff

then it works

but what you mean with to experimenting the autoconf make files
a ok i see what you mean :D

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

Actually, why are you doing buildconf --force? Try just doing:

phpize
./configure 

or ./configure --libdir=/usr/lib64 if Imagick needs a hand finding the ImageMagick libraries.

@lastsamurai26
Copy link
Author

~/php-7.0.0 # phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

php-7.0.0/ext/imagick # phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

and then make install ?

@lastsamurai26
Copy link
Author

i don't now what you mean?

if a do make install in php-7.0.0/ext/imagick
then i get this messege
"make: *** No rule to make target 'install'. Schluss."

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

Okay, unless you really, really need it to be built statically, I recommend compile Imagick separately.

So just compile PHP by itself first, and then do the below to compile Imagick.

cd /tmp
wget http://pecl.php.net/get/imagick-3.4.0RC2.tgz
tar xvzf imagick-3.4.0RC2.tgz
cd imagick-3.4.0RC2
phpize
./configure
make install

It should copy the imagick.so file generated into the the correct directory, and then you just need to add extension=imagick.so to the appropriate php.ini file.

@lastsamurai26
Copy link
Author

ok, you mean. I've already made and that works well but I wanted to conserve my work :). That's why I've always compile with PHP together, but if this is not work more readily I'll compile separated it

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

I will try and get it compiling like how you're trying, but it will should be working again in 7.0.1 anyway, as a bug fix has been applied to the 7.0 branch, just not in time for the release of 7.0.0

@lastsamurai26
Copy link
Author

That means that as of version 7.0.1 php this works again as I compile it?

thx :)

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

You should be able to. The branch that will become the 7.0.1 version is https://github.com/php/php-src/tree/PHP-7.0 and it should have the fix in, so you could test against that branch now, to see if the alleged fix does work.

@lastsamurai26
Copy link
Author

:) the Fix works thx for the help

@Danack
Copy link
Collaborator

Danack commented Dec 7, 2015

Could you try using this branch https://github.com/mkoppanen/imagick/tree/m4_refactoring for 7.0.0?

It should be able to be compiled statically as an extension.....I think. Maybe? Autoconf files really confuse me tbh.....

@lastsamurai26
Copy link
Author

works :)

with php7 (stable)

@Danack
Copy link
Collaborator

Danack commented Dec 12, 2015

This should be fixed in release 3.4.0RC3

@Danack Danack closed this as completed Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants