Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466164 - =dev-php/magickwand-1.0.9 fails to link against >=media-gfx/imagemagick-6.8
Summary: =dev-php/magickwand-1.0.9 fails to link against >=media-gfx/imagemagick-6.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 21:52 UTC by Martin von Gagern
Modified: 2013-04-17 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2013-04-16 21:52:59 UTC
Emerging dev-php/magickwand-1.0.9 fails with this linker error:

libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/magickwand.o   -Wl,--as-needed -L/lib -lMagickWand -lMagickCore /usr/lib64/libMagickWand-6.Q16.so /usr/lib64/libMagickCore-6.Q16.so  -march=amdfam10 -O2 -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/lib   -fopenmp -pthread -Wl,-soname -Wl,magickwand.so -o .libs/magickwand.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lMagickWand
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lMagickCore
collect2: ld returned 1 exit status
make: *** [magickwand.la] Error 1

Which makes sense:
# MagickWand-config --libs
-lMagickWand-6.Q16 -lMagickCore-6.Q16
# MagickCore-config --libs
-lMagickCore-6.Q16
# ls -1 /usr/lib64/libMagick*.so 
/usr/lib64/libMagick++-6.Q16.so
/usr/lib64/libMagickCore-6.Q16.so
/usr/lib64/libMagickWand-6.Q16.so

And this from the configure log:
configure:3899: checking MagickWand-config in default path
configure:3916: result: found in /usr/bin
configure:3925: checking if ImageMagick version is at least 6.3.8
configure:3928: result: found version 6.8.4 Q16 
configure:3934: checking if PHP version is at least 4.1.3
configure:3954: result: found version 5.3.24-pl0-gentoo
configure:4189: checking MagickWand-config --cppflags
configure:4192: result: -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 
configure:4235: checking MagickWand-config --libs
configure:4238: result: -lMagickWand-6.Q16 -lMagickCore-6.Q16 

So it seems to me that the configure script of the PHP module should use the result from MagickWand-config INSTEAD of the fallback of -lMagickWand, not IN ADDITION to it.

Nevertheless, it might be nicer for imagemagick to always provide /usr/lib64/libMagickWand.so as a symlink to the latest version. SImilar to the way /usr/lib64/libpng.so is handled.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-04-17 10:27:55 UTC
(In reply to comment #0)
> Nevertheless, it might be nicer for imagemagick to always provide
> /usr/lib64/libMagickWand.so as a symlink to the latest version. SImilar to
> the way /usr/lib64/libpng.so is handled.

If upstream does that, then fine, but we are not putting custom symlink creation to the ImageMagick's ebuild because reverse deps don't correct use pkg-config (or one of the *-config binaries)

ie. dev-php/magickwand should just be fixed
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2013-04-17 10:50:35 UTC
Seems like this was already fixed upstream. Fix should be in CVS