php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58623 config.w32 doesn't work because of too many libraries
Submitted: 2009-04-07 22:38 UTC Modified: 2009-04-11 11:31 UTC
From: braulio@php.net Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.2.9 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: braulio@php.net
New email:
PHP Version: OS:

 

 [2009-04-07 22:38 UTC] braulio@php.net
Description:
------------
The file config.w32 is asking for more libraries than needed.  
In fact latest versions of ImageMagick do not produce the 
following libraries:  CORE_RL_coders_.lib and 
CORE_RL_filters_.lib.

I am adding in reproduce the config.w32 file that works for 
me.  I compiled successfully the extension with it in VC6.

Reproduce code:
---------------
ARG_WITH("imagick", "ImageMagick support", "no");

if (PHP_IMAGICK != "no") {

	if (CHECK_HEADER_ADD_INCLUDE("wand/magick-wand.h", "CFLAGS_IMAGICK", PHP_PHP_BUILD + "\\include\\imagemagick;" + PHP_IMAGICK)
			&& CHECK_LIB("CORE_RL_wand_.lib", "imagick", PHP_PHP_BUILD + "\\lib\\imagemagick;" + PHP_IMAGICK)
			)
	{
		ADD_FLAG("CFLAGS_IMAGICK", "/D _VISUALC_ /D NeedFunctionPrototypes /D _LIB");
		EXTENSION('imagick', 'imagick_class.c imagickdraw_class.c imagickpixel_class.c imagickpixeliterator_class.c imagick_helpers.c imagick.c');
		AC_DEFINE('HAVE_IMAGICK', 1);
	} else {
		WARNING("imagick not enabled; libraries and headers not found");
	}
}


Expected result:
----------------
If one use the config.w32 file above, the extension will 
compile fine.  If one use yours, there will be errors 
(libraries not found, which are not needed anyway).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-11 11:31 UTC] mkoppanen@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 11:01:31 2024 UTC