Can not use php-imagick for PHP 7.3.7 under cygwin64

Ing. Viliam Kubis viliam.kubis@gmail.com
Fri Nov 29 02:32:00 GMT 2019


Hi all,

I am trying to compile php-imagick extension as it's not offered in
setup. I installed all development libraries, downloaded 3.4.4 source
from https://pecl.php.net/package/imagick, then ran phpize, make, make
test (all passed), and finally make install. The dll was installed to
/lib/php/20180731/imagick.dll which is correct for php 7.3.7.

However once I enable the extension, almost everything crashes:
$ php -i | grep -i imagick
/etc/php.d/imagick.ini,
imagick
imagick module => enabled
imagick module version => 3.4.4
imagick classes => Imagick, ImagickDraw, ImagickPixel,
ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.9.10-11 Q16
x86_64 2018-09-08 https://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.9.10-11 Q16
x86_64 2018-09-08 https://www.imagemagick.org
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.skip_version_check => 0 => 0

Ok, but:
$ composer
      0 [main] php 376 child_info_fork::abort:
\??\C:\cygwin64\bin\cygautotrace-3.dll: Loaded to different address:
parent(0x3E8C40000) != child(0xCD0000)

      0 [main] php 377 child_info_fork::abort:
\??\C:\cygwin64\bin\cygMagickCore-6.Q16-6.dll: Loaded to different
address: parent(0x3F2750000) != child(0x10F0000)
PHP Fatal error:  Uncaught ErrorException: proc_open(): fork failed -
Resource temporarily unavailable in ...

I've tried rebasing multiple times, I've made sure the dlls are in
rebase db:
$ grep -r cygMagickCore /etc/rebase.db.x86_64
Binary file /etc/rebase.db.x86_64 matches
$ grep -r cygautotrace /etc/rebase.db.x86_64
Binary file /etc/rebase.db.x86_64 matches

Only way to make PHP work again is to disable the extension.

Any help is greatly appreciated.

Thank you,
Viliam
-- 
Sent using SeaMonkey mail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xFDEBF53CBD13FEB2.asc
Type: application/pgp-keys
Size: 3101 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20191129/f8d63370/attachment.bin>
-------------- next part --------------

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list