Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213712 - media-video/transcode fails to build with media-gfx/imagemagick-6.3.9.8
Summary: media-video/transcode fails to build with media-gfx/imagemagick-6.3.9.8
Status: RESOLVED DUPLICATE of bug 218415
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 213853 214100 (view as bug list)
Depends on:
Blocks: 218344
  Show dependency tree
 
Reported: 2008-03-17 15:41 UTC by Radu Benea
Modified: 2008-05-15 20:30 UTC (History)
15 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radu Benea 2008-03-17 15:41:11 UTC
versions are media-video/transcode-1.0.6_rc1-r1 and media-gfx/imagemagick-6.3.9.8

configure fails due to not finding ImageMagick
more exactly this line seems to be the problem:
checking for InitializeMagick in -lMagick... no

all other imagemagick related stuff is found, and transcode builds with USE=-imagemagick (tested)

the problem seems to be that the library is now called libMagickCore
symlinking libMagick.so to libMagickCore.so seems to make the build work

still at least one of the packages should be patched to build "out of the box"

Reproducible: Always
Comment 1 Skander Morgenthaler 2008-03-17 18:03:22 UTC
I have the same problem (amd64 as well). 

From my config.log:
configure:41703: checking whether imagemagick support is requested
configure:41718: result: yes
configure:41758: checking for pkgconfig support for imagemagick
configure:41765: result: yes
configure:41777: checking for Wand-config
configure:41795: found /usr/bin/Wand-config
configure:41808: result: /usr/bin/Wand-config
configure:41822: checking how to determine IMAGEMAGICK_CFLAGS
configure:41831: result: pkg-config
configure:41876: checking magick/api.h usability
configure:41893: x86_64-pc-linux-gnu-gcc -c -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -march=ath
lon64 -O2 -pipe -DDCT_YUV_PRECISION=1  -I/usr/include/ImageMagick conftest.c
>&5
configure:41899: $? = 0
configure:41913: result: yes
configure:41917: checking magick/api.h presence
configure:41932: x86_64-pc-linux-gnu-gcc -E  -I/usr/include/ImageMagick
conftest.c
configure:41938: $? = 0
configure:41952: result: yes
configure:41980: checking for magick/api.h
configure:41987: result: yes
configure:42020: checking how to determine IMAGEMAGICK_LIBS
configure:42029: result: pkg-config
configure:42069: checking for InitializeMagick in -lMagick
configure:42104: x86_64-pc-linux-gnu-gcc -o conftest -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -
march=athlon64 -O2 -pipe -DDCT_YUV_PRECISION=1    conftest.c -lMagick -lz -lm
-lMagickWand -lMagickCore -lm -lz -ldl  >&
5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lMagick
collect2: ld returned 1 exit status

emerge failed with the following message:

[lots of configure output]

optional package support
----------------------------------------
[...]
imagemagick                    no
libjpeg                        yes
bsdav                          no
iconv                          yes

ERROR: option '--enable-imagemagick' failed: cannot link against libMagick
libMagick can be found in the following packages:
  Wand  http://www.imagemagick.org/
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-03-18 12:00:56 UTC
Same problem with imagemagick-6.3.9.7

---------8<------------8<--------------8<---------------
checking whether imagemagick support is requested... yes
checking for pkgconfig support for imagemagick... yes
checking for Wand-config... /usr/bin/Wand-config
checking how to determine IMAGEMAGICK_CFLAGS... pkg-config
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking how to determine IMAGEMAGICK_LIBS... pkg-config
checking for InitializeMagick in -lMagick... no
---------8<------------8<--------------8<---------------
Summary for transcode 1.0.5:
----------------------------------------

core options
----------------------------------------
static AV-frame buffering      yes
network (sockets) streams      no
NUV format support             no
experimental xio               no
Default xvid export            xvid4
A52 default decoder            yes

libavcodec
----------------------------------------
headers                        -I/usr/include
libraries                      -L/usr/lib -lavcodec -lavcodec -lz -la52 -lmp3lame -lx264 -lxvidcore -lfaac -lfaad -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg
build                          3352580
version                        51.40.4
statically linked              no

hardware support
----------------------------------------
v4l/v4l2                       yes
OSS                            no
bktr                           no
sunau                          no

optional package support
----------------------------------------
IBP                            no
X11                            yes
libmpeg2                       yes
libpostproc                    no
freetype2                      yes
avifile                        no
lame                           yes
ogg                            yes
vorbis                         yes
theora                         yes
libdvdread                     yes
pvm3                           no
libdv                          yes
libquicktime                   yes
lzo                            no
a52                            yes
libmpeg3                       yes
libxml2                        yes
mjpegtools                     yes
sdl                            yes
libfame                        no
imagemagick                    no
libjpeg                        yes
bsdav                          no
iconv                          yes

ERROR: option '--enable-imagemagick' failed: cannot link against libMagick
libMagick can be found in the following packages:
  Wand  http://www.imagemagick.org/
Comment 3 Jan Schubert 2008-03-18 15:25:21 UTC
same here
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-03-18 18:27:39 UTC
*** Bug 213853 has been marked as a duplicate of this bug. ***
Comment 5 Steve Arnold archtester gentoo-dev 2008-03-20 06:16:53 UTC
There's an updated transcode-1.0.6_rc1-r1.ebuild in portage; give it a try...
Comment 6 forjabberpurposes 2008-03-20 07:13:43 UTC
This appears not to resolve the issue, I get the same error with the suggested build.
Comment 7 Jan Schubert 2008-03-20 09:22:33 UTC
Seems to work now, Thx!

forjabberpurposes@gmail.com: Please update your portage, there has been no version bump!
Comment 8 James 2008-03-20 17:13:18 UTC
(In reply to comment #7)
> Seems to work now, Thx!
> 
> forjabberpurposes@gmail.com: Please update your portage, there has been no
> version bump!
> 

works for me.
Comment 9 Chris Smith 2008-03-20 18:29:45 UTC
Hard to test as the media-gfx/imagemagick-6.3.9.8 ebuild is no longer in portage.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-03-20 19:04:47 UTC
(In reply to comment #9)
> Hard to test as the media-gfx/imagemagick-6.3.9.8 ebuild is no longer in
> portage.

Indeed:
  17 Mar 2008; Markus Meier <maekke@gentoo.org> +imagemagick-6.3.9.7.ebuild,
  -imagemagick-6.3.9.8.ebuild:
  downgrade bump to imagemagick-6.3.9.7 as upstream changed the 6.3.9.8
  tarball (bug #213673). I'll remove the 6.3.9.8 version for now.

But imagemagick-6.3.9.7 is affected from the same bug, too. By the way, I've tried the fix from transcode-1.0.6_rc1-r1 with transcode-1.0.5-r2 and it works there as well.
Comment 11 Chris Smith 2008-03-20 19:38:07 UTC
(In reply to comment #10)
> But imagemagick-6.3.9.7 is affected from the same bug,

Also ImageMagick-6.3.9-9 has been released (not in portage). I've also noticed that the current "official" 6.3.9.8 tarball differes from the one on the gentoo distribution sites and contains the hpgl fix (as does 6.3.9.9) so the patch is no longer necessary.

Transcode does build against 6.3.9.9 but I didn't try it without the "fix".
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2008-03-20 22:40:24 UTC
*** Bug 214100 has been marked as a duplicate of this bug. ***
Comment 13 Steve Arnold archtester gentoo-dev 2008-03-23 03:25:43 UTC
This one is a little more subtle than I thought...  Although the updated transcode-1.0.6_rc1-r1 builds against the downgraded ImageMagick-6.3.9.7, there appears to be an unresolved symbol issue with at least some of the filter plugins:

 $ ldd -r /usr/lib64/transcode/filter_resample.so

...
libdjbfft.so => /usr/lib/libdjbfft.so (0x00002ae53f9e6000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
undefined symbol: verbose       (/usr/lib64/transcode/filter_resample.so)
undefined symbol: tc_memcpy     (/usr/lib64/transcode/filter_resample.so)
undefined symbol: tc_get_vob    (/usr/lib64/transcode/filter_resample.so)
undefined symbol: optstr_filter_desc    (/usr/lib64/transcode/filter_resample.so)

The best I can google so far is that it's somehow related to the ImageMagick API change, but those symbols come from the transcode source itself AFAICT, so all I can say right now is that some of the plugins aren't linking correctly and I don't know why yet...
Comment 14 Steve Dibb (RETIRED) gentoo-dev 2008-05-15 20:30:52 UTC
Should be same bug as 218415

*** This bug has been marked as a duplicate of bug 218415 ***