php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66347 Compiling Issue
Submitted: 2013-12-24 20:05 UTC Modified: 2014-02-08 20:10 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: ars4843 at gmail dot com Assigned: ab (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 5.5.7 OS: Win 7 x64
Private report: No CVE-ID: None
 [2013-12-24 20:05 UTC] ars4843 at gmail dot com
Description:
------------
C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>configure --disable-all --enable-
cli --disable-zts --with-imagick=shared
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler MSVC11 (Visual C++ 2012)
  Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 11.0\V
C\BIN
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 0.13.5
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files (x86)\Windows Kits\8.0\bin\x86
Checking for mt.exe ...  C:\Program Files (x86)\Windows Kits\8.0\bin\x86

Build dir: Release
PHP Core:  php5.dll and php5.lib

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Enabling SAPI sapi\cli
Enabling extension ext\date
Enabling extension ext\ereg
Checking for wand/MagickWand.h ...  C:\php-sdk\phpdev\vc11\x64\deps\include
Checking for library CORE_RL_wand_.lib ... ..\deps\lib\CORE_RL_wand_.lib
Checking for library CORE_RL_magick_.lib ... ..\deps\lib\CORE_RL_magick_.lib
Enabling extension ext\imagick [shared]
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
Generating main/config.w32.h
Generating phpize
Done.



Enabled extensions:
-----------------------
| Extension  | Mode   |
-----------------------
| date       | static |
| ereg       | static |
| imagick    | shared |
| pcre       | static |
| reflection | static |
| spl        | static |
| standard   | static |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli       |
-------------


--------------------------------------------
|               |                          |
--------------------------------------------
| Build type    | Release                  |
| Thread Safety | No                       |
| Compiler      | MSVC11 (Visual C++ 2012) |
| Architecture  | x86                      |
--------------------------------------------


Type 'nmake' to build PHP

C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>nmake php_imagick.dll

Microsoft (R) Program Maintenance Utility Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

imagick.c
C:\php-sdk\phpdev\vc11\x64\deps\include\magick/magick-baseconfig.h(189) : warning C4005: 'inline' : macro redefinition
        c:\php-sdk\phpdev\vc11\x64\php5.5-201312141630\tsrm\tsrm_config.w32.h(16) : see previous definition of 'inline'
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
imagick_class.c
C:\php-sdk\phpdev\vc11\x64\deps\include\magick/magick-baseconfig.h(189) : warning C4005: 'inline' : macro redefinition
        c:\php-sdk\phpdev\vc11\x64\php5.5-201312141630\tsrm\tsrm_config.w32.h(16) : see previous definition of 'inline'
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
ext\imagick\imagick_class.c(294) : warning C4013: 'MagickGetImageMatte' undefined; assuming extern returning int
ext\imagick\imagick_class.c(1128) : warning C4013: 'MagickPaintFloodfillImage' undefined; assuming extern returning int
ext\imagick\imagick_class.c(1594) : warning C4013: 'MagickRecolorImage' undefined; assuming extern returning int
ext\imagick\imagick_class.c(2841) : warning C4101: 'status' : unreferenced local variable
ext\imagick\imagick_class.c(3868) : warning C4013: 'MagickColorFloodfillImage' undefined; assuming extern returning int
ext\imagick\imagick_class.c(4249) : warning C4013: 'MagickMapImage' undefined; assuming extern returning int
ext\imagick\imagick_class.c(4288) : warning C4013: 'MagickMatteFloodfillImage' undefined; assuming extern returning int
ext\imagick\imagick_class.c(4400) : warning C4013: 'MagickPaintOpaqueImageChannel' undefined; assuming extern returning int
ext\imagick\imagick_class.c(4479) : warning C4013: 'MagickPaintTransparentImage' undefined; assuming extern returning int
ext\imagick\imagick_class.c(5733) : warning C4013: 'MagickGetImageAttribute' undefined; assuming extern returning int
ext\imagick\imagick_class.c(5733) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int'
ext\imagick\imagick_class.c(5935) : warning C4013: 'MagickGetImageChannelExtrema' undefined; assuming extern returning int
ext\imagick\imagick_class.c(6206) : warning C4013: 'MagickGetImageExtrema' undefined; assuming extern returning int
ext\imagick\imagick_class.c(7174) : warning C4013: 'MagickGetImageIndex' undefined; assuming extern returning int
ext\imagick\imagick_class.c(7199) : warning C4013: 'MagickSetImageIndex' undefined; assuming extern returning int
ext\imagick\imagick_class.c(7282) : warning C4013: 'MagickGetImageSize' undefined; assuming extern returning int
ext\imagick\imagick_class.c(7694) : warning C4013: 'MagickSetImageAttribute' undefined; assuming extern returning int
ext\imagick\imagick_class.c(8006) : warning C4013: 'MagickFlattenImages' undefined; assuming extern returning int
ext\imagick\imagick_class.c(8006) : warning C4047: '=' : 'MagickWand *' differs in levels of indirection from 'int'
ext\imagick\imagick_class.c(9160) : warning C4013: 'MagickAverageImages' undefined; assuming extern returning int
ext\imagick\imagick_class.c(9160) : warning C4047: '=' : 'MagickWand *' differs in levels of indirection from 'int'
ext\imagick\imagick_class.c(9650) : warning C4013: 'MagickMosaicImages' undefined; assuming extern returning int
ext\imagick\imagick_class.c(9650) : warning C4047: '=' : 'MagickWand *' differs in levels of indirection from 'int'
ext\imagick\imagick_class.c(10300) : warning C4090: 'function' : different 'const' qualifiers
ext\imagick\imagick_class.c(10322) : warning C4090: 'function' : different 'const' qualifiers
imagick_file.c
C:\php-sdk\phpdev\vc11\x64\deps\include\magick/magick-baseconfig.h(189) : warning C4005: 'inline' : macro redefinition
        c:\php-sdk\phpdev\vc11\x64\php5.5-201312141630\tsrm\tsrm_config.w32.h(16) : see previous definition of 'inline'
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
imagick_helpers.c
C:\php-sdk\phpdev\vc11\x64\deps\include\magick/magick-baseconfig.h(189) : warning C4005: 'inline' : macro redefinition
        c:\php-sdk\phpdev\vc11\x64\php5.5-201312141630\tsrm\tsrm_config.w32.h(16) : see previous definition of 'inline'
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
ext\imagick\imagick_helpers.c(1047) : error C2065: 'LABColorspace' : undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.

C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-24 20:08 UTC] mkoppanen@php.net
Which version of ImageMagick is this?
 [2013-12-24 21:33 UTC] ars4843 at gmail dot com
deps\include\magick/magick-baseconfig.h(189):
partial fix
189 - #define inline __inline
189 + #define inline __forceinline
 [2013-12-24 21:37 UTC] ars4843 at gmail dot com
Version: ImageMagick-6.8.7
 [2013-12-24 21:50 UTC] mkoppanen@php.net
Hmm.. The errors look like that the deprecated methods are missing. This would happen if MAGICKCORE_EXCLUDE_DEPRECATED is defined. Which version of imagick is this?
 [2013-12-24 21:57 UTC] mkoppanen@php.net
Check the following files:

C:\php-sdk\phpdev\vc11\x64\deps\include\magick\magick-config.h
C:\php-sdk\phpdev\vc11\x64\deps\include\wand\magick-config.h

and make sure that MAGICKCORE_EXCLUDE_DEPRECATED is not defined.
 [2013-12-24 22:55 UTC] ars4843 at gmail dot com
There is no such file as magick-config.h in C:\php-sdk\phpdev\vc11\x64\deps\include\wand\ folder

#define MAGICKCORE_EXCLUDE_DEPRECATED is absent in C:\php-sdk\phpdev\vc11\x64\deps\include\magick\magick-config.h

But NOTE below:

#define MAGICKCORE_EXCLUDE_DEPRECATED is present in C:\php-sdk\phpdev\vc11\x64\deps\include\magick\magick-baseconfig.h (line 64)

Versions of imagick tried:
imagick-3.1.2
imagick-master
(as well as imagick-3.2.0RC1)
 [2013-12-24 22:57 UTC] mkoppanen@php.net
It should build properly if you make sure MAGICKCORE_EXCLUDE_DEPRECATED is not present when you build imagemagick and imagick.
 [2013-12-24 23:07 UTC] ars4843 at gmail dot com
After uncommenting // #define MAGICKCORE_EXCLUDE_DEPRECATED in
C:\php-sdk\phpdev\vc11\x64\deps\include\magick\magick-baseconfig.h (line 64)
 

C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>nmake php_imagick.dll

Microsoft (R) Program Maintenance Utility Version 11.00.61030.0
Copyright (C) Microsoft Corporation.  All rights reserved.

imagick.c
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
imagick_class.c
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
ext\imagick\imagick_class.c(6144) : warning C4101: 'status' : unreferenced local variable
ext\imagick\imagick_class.c(6636) : warning C4090: 'function' : different 'const' qualifiers
ext\imagick\imagick_class.c(6669) : error C2143: syntax error : missing ';' before 'type'
ext\imagick\imagick_class.c(6670) : error C2065: 'found' : undeclared identifier

ext\imagick\imagick_class.c(6674) : error C2065: 'i' : undeclared identifier
ext\imagick\imagick_class.c(6675) : error C2065: 'i' : undeclared identifier
ext\imagick\imagick_class.c(6677) : error C2065: 'i' : undeclared identifier
ext\imagick\imagick_class.c(6678) : error C2065: 'found' : undeclared identifier

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\cl.exe"' : return code '0x2'
Stop.

C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>
 [2013-12-24 23:10 UTC] mkoppanen@php.net
Probably an issue with mixed declaration / code. Current github master should build on windows cleanly and probably 3.1.2 if you move the declaration at the beginning of the scope where the error is,
 [2013-12-25 06:33 UTC] ars4843 at gmail dot com
I have tried to resolve the above warnings/errors with no luck (due to lack knowledge in c/c++). I would like to add though that I am using “imagick-3.1.2” version since using “imagick-master” version would result into multiple new errors/warnings.
 [2013-12-26 00:49 UTC] ars4843 at gmail dot com
Change in c:\php-sdk\phpdev\vc11\x64\php5.5-201312141630\ext\imagick\imagick_class.c

The "int i, found = 0;" replocated as follows:
- Line 6670 int i, found = 0;
+ Line 6645 int i, found = 0; (below the line with "size_t num_keys;")

All previous remaining warnings/errors have gone. The following new errors have appeared:

   Creating library Release\php_imagick.lib and object Release\php_imagick.exp
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageAttribute referenced in function _zim_imagick_getimageattribute
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageIndex referenced in function _zim_imagick_getimageindex
imagick_class.obj : error LNK2019: unresolved external symbol _MagickColorFloodfillImage referenced in function _zim_imagick_colorfloodfillimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageChannelExtrema referenced in function _zim_imagick_getimagechannelextrema
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageExtrema referenced in function _zim_imagick_getimageextrema
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageMatte referenced in function _zim_imagick_getimagematte
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMapImage referenced in function _zim_imagick_mapimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMatteFloodfillImage referenced in function _zim_imagick_mattefloodfillimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMedianFilterImage referenced in function _zim_imagick_medianfilterimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickReduceNoiseImage referenced in function _zim_imagick_reducenoiseimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickPaintFloodfillImage referenced in function _zim_imagick_paintfloodfillimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickPaintOpaqueImageChannel referenced in function _zim_imagick_paintopaqueimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickPaintTransparentImage referenced in function _zim_imagick_painttransparentimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickRecolorImage referenced in function _zim_imagick_recolorimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickSetImageAttribute referenced in function _zim_imagick_setimageattribute
imagick_class.obj : error LNK2019: unresolved external symbol _MagickSetImageIndex referenced in function _zim_imagick_setimageindex
imagick_class.obj : error LNK2019: unresolved external symbol _MagickAverageImages referenced in function _zim_imagick_averageimages
imagick_class.obj : error LNK2019: unresolved external symbol _MagickFlattenImages referenced in function _zim_imagick_flattenimages
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMosaicImages referenced in function _zim_imagick_mosaicimages
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageSize referenced in function _zim_imagick_getimagesize
imagickdraw_class.obj : error LNK2019: unresolved external symbol _DrawSetFillAlpha referenced in function _zim_imagickdraw_setfillalpha
imagickdraw_class.obj : error LNK2019: unresolved external symbol _DrawSetStrokeAlpha referenced in function _zim_imagickdraw_setstrokealpha
Release\php_imagick.dll : fatal error LNK1120: 22 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\cl.exe"' : return code '0x2'
Stop.

C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>
 [2013-12-26 01:41 UTC] ars4843 at gmail dot com
Change in c:\php-sdk\phpdev\vc11\x64\php5.5-201312141630\ext\imagick\imagick_class.c
The following errors (virtually same as with version 3.1.2, but less) appear when compiling "imagick-master" from https://github.com/mkoppanen/imagick

   Creating library Release\php_imagick.lib and object Release\php_imagick.exp
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageAttribute referenced in function _zim_imagick_getimageattribute
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageIndex referenced in function _zim_imagick_getimageindex
imagick_class.obj : error LNK2019: unresolved external symbol _MagickColorFloodfillImage referenced in function _zim_imagick_colorfloodfillimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageChannelExtrema referenced in function _zim_imagick_getimagechannelextrema
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageExtrema referenced in function _zim_imagick_getimageextrema
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageMatte referenced in function _zim_imagick_getimagematte
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMapImage referenced in function _zim_imagick_mapimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMatteFloodfillImage referenced in function _zim_imagick_mattefloodfillimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMedianFilterImage referenced in function _zim_imagick_medianfilterimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickReduceNoiseImage referenced in function _zim_imagick_reducenoiseimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickPaintFloodfillImage referenced in function _zim_imagick_paintfloodfillimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickPaintOpaqueImageChannel referenced in function _zim_imagick_paintopaqueimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickPaintTransparentImage referenced in function _zim_imagick_painttransparentimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickRecolorImage referenced in function _zim_imagick_recolorimage
imagick_class.obj : error LNK2019: unresolved external symbol _MagickSetImageAttribute referenced in function _zim_imagick_setimageattribute
imagick_class.obj : error LNK2019: unresolved external symbol _MagickSetImageIndex referenced in function _zim_imagick_setimageindex
imagick_class.obj : error LNK2019: unresolved external symbol _MagickAverageImages referenced in function _zim_imagick_averageimages
imagick_class.obj : error LNK2019: unresolved external symbol _MagickFlattenImages referenced in function _zim_imagick_flattenimages
imagick_class.obj : error LNK2019: unresolved external symbol _MagickMosaicImages referenced in function _zim_imagick_mosaicimages
imagick_class.obj : error LNK2019: unresolved external symbol _MagickGetImageSize referenced in function _zim_imagick_getimagesize
Release\php_imagick.dll : fatal error LNK1120: 20 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\cl.exe"' : return code '0x2'
Stop.

C:\php-sdk\phpdev\vc11\x64\php5.5-201312141630>
 [2013-12-26 08:24 UTC] mkoppanen@php.net
It appears that MAGICKCORE_EXCLUDE_DEPRECATED was defined when ImageMagick was compiled. Hence the symbols are not present during linking.
 [2013-12-26 15:35 UTC] ars4843 at gmail dot com
I did not compile ImageMagick myself. The compilation that I have used (ImageMagick-6.8.7-10-Q16-x86-dll.exe?) was taken from the http://www.imagemagick.org/script/binary-releases.php#windows. Do you know whether or not that ImageMagick is being compiled with MAGICKCORE_EXCLUDE_DEPRECATED defined?
 [2013-12-27 01:55 UTC] ars4843 at gmail dot com
As per suggestion on[2013-12-26 08:24 UTC] (mkoppanen@php.net), compiled ImageMagick myself with MAGICKCORE_EXCLUDE_DEPRECATED undef; php_imagick.dll compiled successfully (no errors). However, It is not being loaded into PHP for some reason.
 [2013-12-27 02:21 UTC] ars4843 at gmail dot com
Problem solved: All CORE_RL_*_.dlls compiled during the same process (ImageMagick + php_imagick.dll) have to be accessible.

In conclusion: This is no issue or bug as previously reported. :)
 [2013-12-31 15:21 UTC] ars4843 at gmail dot com
Not that simple as it appeared earlier.

After success with both builds, the ImageMagick and php_imagick.dll with no errors, the php_imagick.dll is not being loaded into phpinfo(). This is especially true in case of x64 versions. Command line “php –m”, the imagick extension is shown as loaded. Both builds were done with VC11.

Tried php_imagick.dll x64 build by PHP group: loaded into phpinfo() only if several CORE_RL_xlib_.dlls are present in the PHP’s root folder. Same is true with my personal builds of x86 versions of ImageMagick and php_imagick.dll, but not with the x64 builds.

While using several php scripts to check id php_imagick.dll is working, the imagick breaks on line with the code // $a = new Imagick(); // with the following error: Class ‘Imagick’ not found.

Tried php_imagick.dll x64 build by PHP group: loaded into phpinfo() if several CORE_RL_xlib_.dlls are present in the PHP’s root folder (same is true with my personal builds of x86 versions of ImageMagick and php_imagick.dll, but not with the x64 builds). Tried same above mentioned php script, but I was not able to complete test since error message was asking for “missing” IM_MOD_RL_gif_.dll (official PHP group’s php_imagick.dll is compiled with different ImageMagick version and so I do not have the correct IM_MOD_RL_gif_.dll).
 [2014-01-03 07:05 UTC] ars4843 at gmail dot com
PHP test:

<?php 
$im = new imagick('C:\ImageMagick\images\rose.jpg' ); 
// resize by 200 width and keep the ratio 
$im->thumbnailImage( 200, 0); 
// write to disk
$im->writeImage( 'rose_thumbnail.gif' ); 
?>

Fatal error: Uncaught exception 'ImagickException' with message 'NoDecodeDelegateForThisImageFormat `C:\ImageMagick\images\rose.jpg' @ error/constitute.c/ReadImage/552' in E:\host\phpTest\Imagick_php_test - 3.php:2 Stack trace: #0 E:\host\phpTest\Imagick_php_test - 3.php(2): Imagick->__construct('C:\ImageMagick\...') #1 {main} thrown in E:\host\phpTest\Imagick_php_test - 3.php on line 2

Looks like something is wrong with path resolution?
 [2014-01-21 11:51 UTC] tk1 at dev dot freshsite dot pl
I have some compilation problems to.

I compiled Imagemagick with VC9 and copied my libs to deps directory. I used suggestion to compile Imagemagick without defined MAGICKCORE_EXCLUDE_DEPRECATED. 
I compile Imagick 3.2.0.RC1 with ImageMagick 6.8.8.2 Q8. I want to have php_imagick.dll as a result so, I used "shared" option.


D:\dev\php\php-5.3.28\vc9\x86\php-5.3.28-src>configure --disable-all --enable-cgi --with-imagick=shared --without-ereg -
-without-t1lib
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler MSVC9 (Visual C++ 2008)
  Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 0.13.5
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64
Checking for mt.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64

Build dir: Release_TS
PHP Core:  php5ts.dll and php5ts.lib

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Enabling SAPI sapi\cgi
Enabling extension ext\date
Checking for wand/MagickWand.h ...  D:\dev\php\php-5.3.28\vc9\x86\deps\include
Checking for library CORE_RL_wand_.lib ... ..\deps\lib\CORE_RL_wand_.lib
Checking for library CORE_RL_magick_.lib ... ..\deps\lib\CORE_RL_magick_.lib
Enabling extension ext\imagick-3.2.0RC1 [shared]
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
        [content unchanged; skipping]
Generating main/config.w32.h
Generating phpize
Done.



Enabled extensions:
-----------------------
| Extension  | Mode   |
-----------------------
| date       | static |
| imagick    | shared |
| pcre       | static |
| reflection | static |
| spl        | static |
| standard   | static |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cgi       |
-------------


-------------------------------------------
|               |                         |
-------------------------------------------
| Build type    | Release                 |
| Thread Safety | Yes                     |
| Compiler      | MSVC9 (Visual C++ 2008) |
| Architecture  | x86                     |
-------------------------------------------


Type 'nmake' to build PHP

D:\dev\php\php-5.3.28\vc9\x86\php-5.3.28-src>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Recreating build dirs
imagick.c
MagickWand lib static interface
MagickWand module static interface
MagickCore lib static interface
MagickCore module static interface
ext\imagick-3.2.0RC1\imagick.c(57) : error C2491: 'php_imagick_get_class_entry' : definition of dllimport function not a
llowed
ext\imagick-3.2.0RC1\imagick.c(62) : error C2491: 'php_imagickdraw_get_class_entry' : definition of dllimport function n
ot allowed
ext\imagick-3.2.0RC1\imagick.c(67) : error C2491: 'php_imagickpixel_get_class_entry' : definition of dllimport function
not allowed
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.

D:\dev\php\php-5.3.28\vc9\x86\php-5.3.28-src>
 [2014-02-08 20:10 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2014-02-08 20:10 UTC] ab@php.net
The original issue is that the MAGICKCORE_EXCLUDE_DEPRECATED is defined either when compiling ImageMagick or imagick. Undef that macro to resolve that 'LABColorspace' error. The current master compiles fine with this approach, you can get a suitable ImageMagick binary under http://windows.php.net/downloads/pecl/deps/ . Please open another tickets for the other issues mentioned here, otherwise this one will never end :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 21:01:32 2024 UTC