Summary: | media-gfx/imagemagick-6.4.4.6-r1 has undefined references | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robert Wohlrab <robert.wohlrab> |
Component: | New packages | Assignee: | Gentoo Graphics Project <graphics+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=12840 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 246757 | ||
Attachments: | Patch to add "-lperl @MATH_LIBS@" to PerlMagick/Makefile.PL.in |
Description
Robert Wohlrab
2008-11-14 14:54:56 UTC
please post the USE-flags you used for imagemagick (emrege -pv imagemagick). media-gfx/imagemagick-6.4.4.6-r1 USE="bzip2 corefonts openmp perl zlib -X -djvu -doc -fontconfig -fpx -graphviz -gs -hdri -jbig -jpeg -jpeg2k -lcms -nocxx -openexr -png -q32 -q8 -raw -svg -tiff -truetype -wmf -xml" Created attachment 177034 [details, diff] Patch to add "-lperl @MATH_LIBS@" to PerlMagick/Makefile.PL.in Magick.o fails to link due to two missing libraries: libperl, and libm. libm is needed to satisfy references to cos, fmod, sin, sqrt, tan. The imagemagick configure script already probes for whether sqrt is found in libm and sets MATH_LIBS to '' if not, or '-lm' if so. Thus, to handle systems where the math functions are part of libc, this patch uses @MATH_LIBS@. With this patch applied, I can build media-gfx/imagemagick-6.4.4.6 with LDFLAGS="-Wl,--as-needed,-O1,-z,defs,--no-undefined,--warn-once". Without it, I see a build failure like the one reported in comment #0. (In reply to comment #3) thanks for your investigation and patch - I reported this upstream, see the URL field. should be fixed with media-gfx/imagemagick-6.4.9.2. please reopen if this should still be an issue. |