Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488992 - =media-gfx/swftools-0.9.2 - undefined reference to `PrintGifError'
Summary: =media-gfx/swftools-0.9.2 - undefined reference to `PrintGifError'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: László Szalma
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 11:01 UTC by Boris Vingradov
Modified: 2013-10-26 16:50 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.log,5.13 KB, text/x-log)
2013-10-23 10:14 UTC, Boris Vingradov
Details
Full build log to media-gfx/swftools-0.9.2 (build.log,53.23 KB, text/x-log)
2013-10-23 10:16 UTC, Boris Vingradov
Details
swftools-0.9.2_nopdf.patch (swftools-0.9.2_giflib.patch,2.62 KB, patch)
2013-10-23 11:45 UTC, László Szalma
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Vingradov 2013-10-22 11:01:53 UTC
I'm rebuild media-gfx/swftools-0.9.2 on @preserved-rebuild and this rebuild failded:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H swfbbox.o -o swfbbox ../lib/librfxswf.a ../lib/libbase.a -Wl,-O1 -Wl,--as-needed -L/usr/local/lib -L/usr/lib64 -lgif -ljpeg -lz -lm  -lz -lbz2 -lfontconfig -lfreetype 
gif2swf.o: In function `MovieAddFrame':
gif2swf.c:(.text+0x4c7): undefined reference to `PrintGifError'
gif2swf.o: In function `CheckInputFile':
gif2swf.c:(.text+0x1294): undefined reference to `PrintGifError'
collect2: error: ld returned 1 exit status
make[2]: *** [gif2swf] Error 1
make[2]: *** Waiting for unfinished jobs....
debug enabled, not stripping swfbbox
make[2]: Leaving directory `/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2'
 * ERROR: media-gfx/swftools-0.9.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/swftools-0.9.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/swftools-0.9.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/swftools-0.9.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/swftools-0.9.2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2'
 * S: '/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2'

I find bug solution and finded this link - http://forums.gentoo.org/viewtopic-t-971506.html?sid=3a3adffe24dcd3a7c7ef6166aaa13b5c
Comment 1 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2013-10-23 09:52:49 UTC
please post your emerge --info and full build log
Comment 2 Boris Vingradov 2013-10-23 10:14:09 UTC
Created attachment 361700 [details]
emerge --info
Comment 3 Boris Vingradov 2013-10-23 10:16:21 UTC
Created attachment 361704 [details]
Full build log to media-gfx/swftools-0.9.2
Comment 4 László Szalma 2013-10-23 11:45:36 UTC
Created attachment 361722 [details, diff]
swftools-0.9.2_nopdf.patch

The patch from git supposed to fix the build issue with >= giflib 5

http://wiki.swftools.org/viewgit/?a=commitdiff&p=swftools-git%20&h=05c1df6a6da28734533722dc0ac99ea5b206a492

I modified it a bit, so it works with giflib 4.2 (current unstable in tree) and hopefully working with 4.1 (as it worked without the patch) too.

I compiled it, but I didn't test any functionality.

In the ebuild just add this patch file in line 26 like the other two.
Comment 5 László Szalma 2013-10-23 11:46:45 UTC
In fact, I accidentally gave wrong filename for the patch. It should be: swftools-0.9.2_giflib5.patch :) Sorry. Nothing to with the existing nopdf patch!
Comment 6 Boris Vingradov 2013-10-25 04:33:30 UTC
I'm testing tools, it's work.
Comment 7 Pacho Ramos gentoo-dev 2013-10-25 06:18:30 UTC
I need to commit it ;)
Comment 8 Pacho Ramos gentoo-dev 2013-10-26 16:50:23 UTC
+  26 Oct 2013; Pacho Ramos <pacho@gentoo.org>
+  +files/swftools-0.9.2_giflib.patch, swftools-0.9.2.ebuild:
+  Fix build with latest giflib, bug #488992 by Boris Vingradov and fix by László
+  Szalma.
+