|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-05-15 00:40 UTC] php-bugs-2012 at ryandesign dot com
Description:
------------
I have GraphicsMagick 1.3.15, and the gmagick PECL extension does not compile
anymore at all. It used to compile but something (probably the version of
GraphicsMagick) changed.
Actual result:
--------------
In file included from
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_php_php5-
gmagick/php5-gmagick/work/gmagick-1.1.0RC2/gmagick_helpers.c:20:
In file included from ./php_gmagick.h:31:
In file included from /opt/local/include/GraphicsMagick/wand/wand_api.h:40:
/opt/local/include/GraphicsMagick/wand/magick_wand.h:180:66: warning: type
specifier missing, defaults to 'int' [-Wimplicit-int]
MagickExtentImage(MagickWand *,const size_t,const size_t,const ssize_t, const
ssize_t),
~~~~~ ^
/opt/local/include/GraphicsMagick/wand/magick_wand.h:180:81: warning: type
specifier missing, defaults to 'int' [-Wimplicit-int]
MagickExtentImage(MagickWand *,const size_t,const size_t,const ssize_t, const
ssize_t),
~~~~~
^
/opt/local/include/GraphicsMagick/wand/magick_wand.h:180:81: error: redefinition
of parameter 'ssize_t'
/opt/local/include/GraphicsMagick/wand/magick_wand.h:180:66: note: previous
declaration is here
MagickExtentImage(MagickWand *,const size_t,const size_t,const ssize_t, const
ssize_t),
^
2 warnings and 1 error generated.
make: *** [gmagick_helpers.lo] Error 1
Patchesinclude-sys-types-h.diff (last revision 2012-05-16 06:22 UTC by php-bugs-2012 at ryandesign dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 15:00:02 2025 UTC |
> I've contacted the developer of GraphicsMagick who advises that > gmagick must #include <sys/types.h> before including any > GraphicsMagick headers. This fixed the problem for me. I've > attached a patch. This doesn't work on Windows. - PHP-5.4.3 - PECL gmagick-1.1.0RC3 (includes the attached patch) - GraphicsMagick-1.3.15 I can build the extension with GraphicsMagick-1.3.13. (of course, still have other problems with the extension...) Actual result: -------------- D:\build\php\php-5.4.3>nmake Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. Recreating build dirs gmagick.c Magick lib DLL import interface Magick module DLL export interface D:\build\GraphicsMagick\include\wand/magick_wand.h(180) : error C2086: 'const in t ssize_t': Neudefinition D:\build\GraphicsMagick\include\wand/magick_wand.h(180): Siehe Deklarati on von 'ssize_t'