missing libraries in PerlMagick (with patch)
Posted: 2009-01-03T04:56:13-07:00
compiling ImageMagick with LDFLAGS="${LDFLAGS} -Wl,-z,-defs -Wl,--no-undefined" (--no-undefined is the important part here) will fail with something like that:
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.
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