php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58231 failed to compile
Submitted: 2008-06-11 14:55 UTC Modified: 2008-06-11 15:32 UTC
From: bozox at netcourrier dot com Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.1.4 OS: Mandriva 2008
Private report: No CVE-ID: None
 [2008-06-11 14:55 UTC] bozox at netcourrier dot com
Description:
------------
I use ImageMagick 6.3.8 and PHP 5.1.4 compiled from source on Mandriva 2008, and when I try to install Imagick, the compilation fails (see below) :

[root@server imagick-2.1.1]# pecl install Imagick
downloading imagick-2.1.1.tgz ...
Starting to download imagick-2.1.1.tgz (74,980 bytes)
.................done: 74,980 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
Please provide the prefix of Imagemagick installation [autodetect] :
building in /var/tmp/pear-build-chris/imagick-2.1.1
running: /root/tmp/tmp4CBBbe/imagick-2.1.1/configure --with-imagick
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-zts-20050922
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/Wand-config
checking for magick-wand.h header file... found in /usr/local/include/wand/magick-wand.h
checking if ImageMagick version is at least 6.2.4... found version 6.3.8 Q16
checking if PHP version is at least 5.1.3... found version 5.1.4
checking for MagickGetImageProperties in -lWand... yes
checking for MagickSetFont in -lWand... yes
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-chris/imagick-2.1.1/libtool --mode=compile gcc  -I. -I/root/tmp/tmp4CBBbe/imagick-2.1.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-chris/imagick-2.1.1/include -I/var/tmp/pear-build-chris/imagick-2.1.1/main -I/root/tmp/tmp4CBBbe/imagick-2.1.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c -o imagick.lo
mkdir .libs
 gcc -I. -I/root/tmp/tmp4CBBbe/imagick-2.1.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-chris/imagick-2.1.1/include -I/var/tmp/pear-build-chris/imagick-2.1.1/main -I/root/tmp/tmp4CBBbe/imagick-2.1.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c  -fPIC -DPIC -o .libs/imagick.o
/root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c: In function 'zm_startup_imagick':
/root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c:18638: error: too many arguments to function 'zend_exception_get_default'
/root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c:18645: error: too many arguments to function 'zend_exception_get_default'
/root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c:18652: error: too many arguments to function 'zend_exception_get_default'
/root/tmp/tmp4CBBbe/imagick-2.1.1/imagick.c:18659: error: too many arguments to function 'zend_exception_get_default'
make: *** [imagick.lo] Error 1
ERROR: `make' failed



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-11 15:32 UTC] mkoppanen@php.net
Thank you for taking the time to report a problem with the package.
Unfortunately you are not using a current version of the package -- 
the problem might already be fixed. Please download a new
version from http://pecl.php.net/packages.php

If you are able to reproduce the bug with one of the latest
versions, please change the package version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

Should be fixed in newer versions
 [2009-03-10 05:43 UTC] kosthorst at apobyte dot de
I'm getting this error with 2.2.2:

downloading imagick-2.2.2.tgz ...
Starting to download imagick-2.2.2.tgz (77,212 bytes)
..................done: 77,212 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
 1. Please provide the prefix of Imagemagick installation : autodetect

1-1, 'all', 'abort', or Enter to continue: building in /var/tmp/pear-build-root/imagick-2.2.2
running: /tmp/pear/temp/imagick/configure --with-imagick
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php5
checking for PHP includes... -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext
checking for PHP extension directory... /usr/local/php5/lib/php/extensions/no-debug-zts-20050922
checking for PHP installed headers prefix... /usr/local/php5/include/php
checking for re2c... re2c
checking for re2c version... 0.9.12 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/bin/Wand-config
checking if ImageMagick version is at least 6.2.4... found version 6.2.4
checking for magick-wand.h header file... found in /usr/include/wand/magick-wand.h
checking if PHP version is at least 5.1.3... found version 5.1.6
checking for MagickGetImageProperties in -lWand... no
checking for MagickSetFont in -lWand... no
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... failed
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/imagick-2.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/imagick/imagick_class.c -o imagick_class.lo
mkdir .libs
 gcc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
/bin/sh /var/tmp/pear-build-root/imagick-2.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/imagick/imagickdraw_class.c -o imagickdraw_class.lo
 gcc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
/bin/sh /var/tmp/pear-build-root/imagick-2.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/imagick/imagickpixel_class.c -o imagickpixel_class.lo
 gcc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickpixel_class.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
/bin/sh /var/tmp/pear-build-root/imagick-2.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
 gcc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
/bin/sh /var/tmp/pear-build-root/imagick-2.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/imagick/imagick_helpers.c -o imagick_helpers.lo
 gcc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
/bin/sh /var/tmp/pear-build-root/imagick-2.2.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/imagick/imagick.c -o imagick.lo
 gcc -I. -I/tmp/pear/temp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-root/imagick-2.2.2/include -I/var/tmp/pear-build-root/imagick-2.2.2/main -I/tmp/pear/temp/imagick -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/imagick/imagick.c  -fPIC -DPIC -o .libs/imagick.o
/tmp/pear/temp/imagick/imagick.c: In function 'php_imagick_clone_imagickpixel_object':
/tmp/pear/temp/imagick/imagick.c:2274: warning: assignment makes pointer from integer without a cast
/tmp/pear/temp/imagick/imagick.c: In function 'zm_startup_imagick':
/tmp/pear/temp/imagick/imagick.c:2303: error: too many arguments to function 'zend_exception_get_default'
/tmp/pear/temp/imagick/imagick.c:2310: error: too many arguments to function 'zend_exception_get_default'
/tmp/pear/temp/imagick/imagick.c:2317: error: too many arguments to function 'zend_exception_get_default'
/tmp/pear/temp/imagick/imagick.c:2324: error: too many arguments to function 'zend_exception_get_default'
make: *** [imagick.lo] Fehler 1
ERROR: `make' failed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC