Menu

#20 gscan2pdf fails to start - Q16.so - boot_Image__Magick__Q16

v1.0_(example)
closed
nobody
None
5
2019-02-08
2017-06-24
Gene
No

Version: 1.8.2
os: gentoo
imagemagick: 7.0.5.7

run gscan2pdf from command line:

gene@go3:~# gscan2pdf
Can't find 'boot_ImageMagickQ16' symbol in /usr/lib64/perl5/vendor_perl/5.24.1/x86_64-linux-thread-multi/auto/Image/Magick/Q16/Q16.so
at /usr/lib64/perl5/5.24.1/parent.pm line 16.
Compilation failed in require at /usr/lib64/perl5/5.24.1/parent.pm line 16.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.24.1/x86_64-linux-thread-multi/Image/Magick.pm line 22.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.24.1/Gscan2pdf/Page.pm line 14.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.24.1/Gscan2pdf/Page.pm line 14.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.24.1/Gscan2pdf/Document.pm line 13.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.24.1/Gscan2pdf/Document.pm line 13.
Compilation failed in require at /usr/bin/gscan2pdf line 47.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 47.
&Image::Magick::Q16::constant not defined. The required ImageMagick libraries are not installed or not installed properly.
END failed--call queue aborted at /usr/bin/gscan2pdf line 47.

Not sure what "required ImageMagick libraries are not installed or not installed properly" this means. Any insight wil be appreciated.

I thing this is the symbol table of Q16.so:

Symbol table '.dynsym' contains 12 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 FUNC WEAK DEFAULT UND cxa_finalize@GLIBC_2.2.5 (2)
2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable
4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND
gmon_start
5: 0000000000002013 0 NOTYPE GLOBAL DEFAULT 15 _end
6: 0000000000002010 0 NOTYPE GLOBAL DEFAULT 15 _edata
7: 0000000000002011 1 OBJECT GLOBAL DEFAULT 22
gnu_lto_slim
8: 0000000000002012 1 OBJECT GLOBAL DEFAULT 22 gnu_lto_v1
9: 0000000000002010 0 NOTYPE GLOBAL DEFAULT 15
bss_start
10: 0000000000000530 0 FUNC GLOBAL DEFAULT 9 _init
11: 000000000000064c 0 FUNC GLOBAL DEFAULT 12 _fini

Thanks

Discussion

  • Jeffrey Ratcliffe

    It looks as though the perl bindings for imagemagick are broken. On Gentoo, rebuilding imagemagick should fix it.

     
  • Gene

    Gene - 2017-06-25

    Thanks Jeffrey. Tried this more than once. Changed the quantum depth to 32 and got this:

    Can't find 'boot_ImageMagickQ32'.

    Same as before only 32 instead of 16.

    Thanks

     
  • Jeffrey Ratcliffe

    Have you switched on the perl use flag for imagemagick? You'll need that.

     
    • Gene

      Gene - 2017-06-27

      My use flags:
      [ebuild R ] media-gfx/imagemagick-7.0.5.7-r1:0/7.0.5.7::gentoo USE="X bzip2 corefonts cxx jpeg lcms openmp pango perl png q32 svg tiff truetype xml zlib -autotrace -djvu -fftw -fontconfig -fpx -graphviz -hdri -jbig -jpeg2k -lqr -lzma -opencl -openexr -postscript -q8 -raw -static-libs {-test} -webp -wmf" 0 KiB

      Can see any here that need to be enabled? 'perl was already enbled.

      Thanks

       
  • Jeffrey Ratcliffe

    I'm guessing that removing q32 might fix it, as this is probably forcing q32 quantum depth, and perlmagick wants 16.

    See https://www.gentoo.org/support/use-flags/

     
  • Jeffrey Ratcliffe

    Ticket moved from /p/gscan2pdf/bugs/256/

     
  • Jeffrey Ratcliffe

    • status: open --> closed
     

Log in to post a comment.