missing libraries in PerlMagick (with patch)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
_maekke_

missing libraries in PerlMagick (with patch)

Post by _maekke_ »

compiling ImageMagick with LDFLAGS="${LDFLAGS} -Wl,-z,-defs -Wl,--no-undefined" (--no-undefined is the important part here) will fail with something like that:

Code: Select all

Magick.o: In function `boot_Image__Magick':
Magick.c:(.text+0x61): undefined reference to `PL_stack_sp'
Magick.c:(.text+0x68): undefined reference to `PL_stack_base'
Magick.c:(.text+0x72): undefined reference to `PL_markstack_ptr'
Magick.c:(.text+0x132): undefined reference to `Perl_croak'
Magick.c:(.text+0x156): undefined reference to `Perl_newXS'
Magick.c:(.text+0x165): undefined reference to `Perl_sv_setpv'
Magick.c:(.text+0x17f): undefined reference to `Perl_newXS'{}
[....]
Magick.o: In function `XS_Image__Magick_UNLOAD':
Magick.c:(.text+0x27ed1): undefined reference to `PL_markstack_ptr'
Magick.c:(.text+0x27ed8): undefined reference to `PL_stack_sp'
Magick.c:(.text+0x27ef0): undefined reference to `PL_stack_base'
Magick.c:(.text+0x27f2e): undefined reference to `Perl_croak'
collect2: ld returned 1 exit status
this is caused by PerlMagick, which misses perl and math-lib references - a patch can be found here. The original bug report from Gentoo is located here.
Post Reply