php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59361 Unable to build
Submitted: 2010-08-11 05:14 UTC Modified: 2010-08-13 04:51 UTC
From: swuji at me dot com Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.3.1 OS: Mac OS X
Private report: No CVE-ID: None
 [2010-08-11 05:14 UTC] swuji at me dot com
Description:
------------
Build fails with following message:


[...]
/bin/bash /tmp/imagick-3.0.0/libtool --mode=link cc -
DPHP_ATOM_INC -I/tmp/imagick-3.0.0/include -I/tmp/imagick-
3.0.0/main -
I/tmp/imagick-3.0.0 -I/usr/include/php -
I/usr/include/php/main -I/usr/include/php/TSRM -
I/usr/include/php/Zend -I/usr/include/php/ext 
-I/usr/include/php/ext/date/lib -
I/usr/local/share/ImageMagick-6.6.3/include/ImageMagick  -
DHAVE_CONFIG_H  -arch i386 -arch x86_64 -g 
-Os -pipe -no-cpp-precomp  -arch i386 -arch x86_64 -
bind_at_load -o imagick.la -export-dynamic -avoid-version -
prefer-pic -module -
rpath /tmp/imagick-3.0.0/modules  imagick_class.lo 
imagickdraw_class.lo imagickpixel_class.lo 
imagickpixeliterator_class.lo 
imagick_helpers.lo imagick_read.lo imagick.lo -Wl,-
rpath,/System/Library/Frameworks/OpenCL.framework/Versions/A
/Libraries -
L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libr
aries -Wl,-rpath,/usr/local/share/ImageMagick-6.6.3/lib -
L/usr/local/share/ImageMagick-6.6.3/lib -lMagickWand -
lMagickCore -llcms -ltiff -lfreetype -ljpeg -lpng -lXext -
lXt -lSM -lICE -lX11 
-lbz2 -lxml2 -lz -lm -lgomp -lclparser -lm
libtool: link: warning: library 
`/usr/local/share/ImageMagick-6.6.3/lib/libMagickWand.la' 
was moved.
/tmp/imagick-3.0.0/libtool: line 3129: cd: $MAGICK_HOME/lib: 
No such file or directory
libtool: link: warning: cannot determine absolute directory 
name of `$MAGICK_HOME/lib'
grep: $MAGICK_HOME/lib/libMagickCore.la: No such file or 
directory
sed: $MAGICK_HOME/lib/libMagickCore.la: No such file or 
directory
libtool: link: `$MAGICK_HOME/lib/libMagickCore.la' is not a 
valid libtool archive
make: *** [imagick.la] Error 1



"$MAGICK_HOME" is correctly set and "$MAGICK_HOME/lib" 
exists:
# file $MAGICK_HOME/lib
/usr/local/share/ImageMagick-6.6.3/lib: directory

Reproduce code:
---------------
./configure --with-imagick=${MAGICK_HOME}

Expected result:
----------------
build doesn't fail

Actual result:
--------------
build fails, see Description

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-13 03:25 UTC] mkoppanen@php.net
Hi,

does it work with:

./configure --with-imagick=/usr/local/share/ImageMagick-6.6.3 ?
 [2010-08-13 03:29 UTC] swuji at me dot com
Hi,

no, it doesn't work. Exactly the same result.
 [2010-08-13 03:33 UTC] mkoppanen@php.net
I can not seem to duplicate this with latest OS X. ImageMagick installed from ports.
 [2010-08-13 03:40 UTC] swuji at me dot com
Hm, strange... I downloaded the binary package from here:
http://www.imagemagick.org/download/binaries/ImageMagick-
x86_64-apple-darwin10.4.0.tar.gz

My complete build/install script:

#!/bin/bash
IMAGEMAGICK_VERSION="ImageMagick-x86_64-apple-darwin10.4.0"
IMAGEMAGICK_VERSION_REAL="ImageMagick-6.6.3"
export CONFIG_SHELL="/bin/bash"
cd /tmp
curl -O 
http://www.imagemagick.org/download/binaries/${IMAGEMAGICK_V
ERSION}.tar.gz
if [ ! -f ${IMAGEMAGICK_VERSION}.tar.gz ]
then
	echo 'DOWNLOAD FAILDED'
	exit
fi
tar xfz ${IMAGEMAGICK_VERSION}.tar.gz
rm ${IMAGEMAGICK_VERSION}.tar.gz
export 
MAGICK_HOME=/usr/local/share/${IMAGEMAGICK_VERSION_REAL}
mv ${IMAGEMAGICK_VERSION_REAL} ${MAGICK_HOME}

VERSION="imagick-3.0.0"
cd /tmp
curl -O http://pecl.php.net/get/${VERSION}.tgz
if [ ! -f ${VERSION}.tgz ]
then
	echo 'DOWNLOAD FAILDED'
	exit
fi
tar xfz ${VERSION}.tgz
rm ${VERSION}.tgz
cd ${VERSION}
phpize
./configure --with-imagick=${MAGICK_HOME}
make
make test
make install
cd ..
rm -r "${VERSION}"
 [2010-08-13 03:44 UTC] swuji at me dot com
Comment system ruined my script: Lines 6-8 in my build script 
should be on one line ;)
BTW: I'm using Mac OS X 10.6.4
 [2010-08-13 03:48 UTC] mkoppanen@php.net
I can reproduce it with your build script. I assume it has something to do with binaries provided by ImageMagick. Try building ImageMagick from source and retry
 [2010-08-13 04:51 UTC] swuji at me dot com
It works! So it must be a bug in the official ImageMagick OS X 
build...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 04:01:34 2024 UTC