Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 365385

Summary: app-text/calibre-0.7.56 fails to compile with graphicsmagick
Product: Gentoo Linux Reporter: ta2002 <throw_away_2002>
Component: New packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 314431, 314229    

Description ta2002 2011-04-30 08:00:35 UTC
* calibre-0.7.56.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                     [ ok ]
 * Package:    app-text/calibre-0.7.56
 * Repository: gentoo
 * Maintainer: zmedico@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking calibre-0.7.56.tar.gz to /var/tmp/portage/app-text/calibre-0.7.56/work
>>> Source unpacked in /var/tmp/portage/app-text/calibre-0.7.56/work
>>> Preparing source in /var/tmp/portage/app-text/calibre-0.7.56/work/calibre ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-text/calibre-0.7.56/work/calibre ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-text/calibre-0.7.56/work/calibre ...
python2.7 setup.py build
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found

[...]

####### Building extension magick #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=native -O2 -pipe -pthread -I/usr/include/python2.7 -c /var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c -o /var/tmp/portage/app-text/calibre-0.7.56/work/calibre/build/objects/magick/magick.o
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:4:29: error: wand/MagickWand.h: No such file or directory
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:12: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:26: error: expected specifier-qualifier-list before ‘PixelWand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c: In function ‘magick_PixelWand_dealloc’:
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:33: error: ‘magick_PixelWand’ has no member named ‘wand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:33: error: ‘magick_PixelWand’ has no member named ‘wand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:33: warning: implicit declaration of function ‘DestroyPixelWand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:33: error: ‘magick_PixelWand’ has no member named ‘wand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c: In function ‘magick_PixelWand_new’:
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:44: error: ‘magick_PixelWand’ has no member named ‘wand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:44: warning: implicit declaration of function ‘NewPixelWand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:45: error: ‘magick_PixelWand’ has no member named ‘wand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:45: error: ‘magick_PixelWand’ has no member named ‘wand’
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:47: error: ‘magick_PixelWand’ has no member named ‘wand’

[...]

/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c: In function ‘magick_terminus’:
/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c:1330: warning: implicit declaration of function ‘MagickWandTerminus’
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/__init__.py", line 159, in run_all
    self.run_cmd(self, opts)
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/__init__.py", line 155, in run_cmd
    cmd.run(opts)
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/extensions.py", line 298, in run
    self.build(ext, dest)
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/extensions.py", line 339, in build
    subprocess.check_call(cmd)
  File "/usr/lib64/python2.7/subprocess.py", line 504, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-march=native', '-O2', '-pipe', '-pthread', '-I/usr/include/python2.7', '-c', '/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/src/calibre/utils/magick/magick.c', '-o', '/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/build/objects/magick/magick.o']' returned non-zero exit status 1
 * ERROR: app-text/calibre-0.7.56 failed (compile phase):
 *   Building failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4954:  Called distutils_src_compile
 *   environment, line 1306:  Called die
 * The specific snippet of code:
 *               "$(PYTHON)" "${setup_file#*|}" "${_DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 * 
 * If you need support, post the output of 'emerge --info =app-text/calibre-0.7.56',
 * the complete build log and the output of 'emerge -pqv =app-text/calibre-0.7.56'.
 * The complete build log is located at '/var/log/portage/app-text:calibre-0.7.56:20110430-064237.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/calibre-0.7.56/temp/environment'.
 * S: '/var/tmp/portage/app-text/calibre-0.7.56/work/calibre'

>>> Failed to emerge app-text/calibre-0.7.56, Log file:

>>>  '/var/log/portage/app-text:calibre-0.7.56:20110430-064237.log'


Reproducible: Always




One thing that comes to mind right away is that I have graphicsmagick (compiled with the imagemagick use flag) installed rather than imagemagick itself (the calibre ebuild allows that). Is that known to work?
Comment 1 Zac Medico gentoo-dev 2011-05-02 02:17:28 UTC
Do you have imagemagick or graphicsmagick installed? Maybe try reinstalling it. Otherwise, maybe the version you have isn't compatible.
Comment 2 ta2002 2011-05-02 10:44:19 UTC
# emerge -p graphicsmagick

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-gfx/graphicsmagick-1.3.12  USE="X bzip2 cxx imagemagick jbig jpeg lcms openmp perl png svg threads tiff truetype zlib -debug -doc -fpx -jpeg2k -modules -q16 -q32 -wmf" 0 kB                                                                                                                                                                      

Total: 1 package (1 reinstall), Size of downloads: 0 kB

It's the stable version (amd64) and I literally installed it seconds before attempting to install calibre.
Comment 3 Zac Medico gentoo-dev 2011-05-02 16:06:28 UTC
I've updated the dependency so that you'll have to install imagemagick instead, since there is no mention of graphicsmagick in the upstream list of dependencies:

  http://calibre-ebook.com/download_linux