This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can not use php-imagick for PHP 7.3.7 under cygwin64


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

Attachment: 0xFDEBF53CBD13FEB2.asc
Description: application/pgp-keys

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]