Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416071 - media-gfx/swftools-0.9.2 - x86_64-pc-linux-gnu-g++: ../lib/libgfxpdf.a: No such file or directory
Summary: media-gfx/swftools-0.9.2 - x86_64-pc-linux-gnu-g++: ../lib/libgfxpdf.a: No su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: László Szalma
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 12:40 UTC by Rodrigo Severo
Modified: 2012-05-22 11:13 UTC (History)
1 user (show)

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


Attachments
swftools complete build log (swftools.ebuild.log.tar.bz2,7.52 KB, application/octet-stream)
2012-05-16 10:18 UTC, Rodrigo Severo
Details
swftools-0.9.2_nopdf.patch (swftools-0.9.2_nopdf.patch,3.15 KB, patch)
2012-05-16 17:39 UTC, László Szalma
Details | Diff
swftools-0.9.2-r1.ebuild (swftools-0.9.2-r1.ebuild,972 bytes, text/plain)
2012-05-16 18:14 UTC, László Szalma
Details
swftools-0.9.2_general.patch (swftools-0.9.2_general.patch,1.71 KB, patch)
2012-05-16 18:15 UTC, László Szalma
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2012-05-15 12:40:30 UTC
Despite bug #412423 saying that PDF support is disabled in swftools-0.9.2 I'm having the following failure when I try to emerge swftools-0.9.2:

---------------------------------------
FullBitmapOutputDev.cc:228:1: warning: control reaches end of non-void function
make[3]: *** [FullBitmapOutputDev.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2/lib/pdf'
make[2]: *** [libgfxpdf.a] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2/lib'
/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2/src
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H pdf2pdf.o -o pdf2pdf ../lib/libgfxswf.a ../lib/librfxswf.a ../lib/libgfxpdf.a ../lib/libgfx.a ../lib/libbase.a -Wl,-O1 -Wl,--as-needed -L/usr/local/lib -L/usr/lib64 -lmp3lame -lzzip -lgif -ljpeg -lpdf -lz -lm  -lz -lbz2 -lfontconfig -lfreetype  -lstdc++
x86_64-pc-linux-gnu-g++: ../lib/libgfxpdf.a: No such file or directory
make[1]: *** [pdf2pdf] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-gfx/swftools-0.9.2/work/swftools-0.9.2/src'
make: *** [all] Error 2
 * ERROR: media-gfx/swftools-0.9.2 failed (compile phase):
 *   emake failed
---------------------------------------

Here is my emerge --info:

---------------------------------------
# emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.3
Timestamp of tree: Tue, 15 May 2012 10:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo xtreemfs x-portage-fabrica x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=generic -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=generic -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --binpkg-respect-use=y"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS=" http://gentoo.c3sl.ufpr.br/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.osuosl.org/"
LANG="en_US"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pt_BR"
MAKEOPTS="-j6"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/xtreemfs /usr/local/portage-fabrica /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext a52 aac acpi amd64 bash-completion branding bzip2 cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss exif fam firefox flac fortran gdu gif gpm iconv jbig jpeg jpeg2k lcms ldap libnotify md5sum mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nptl openmp pam pango pcre pdf png pnm policykit ppds pppd qt3support readline session sse sse2 ssl startup-notification svg tcpd tiff truetype udev unicode vorbis wmf wxwidgets x264 xcb xml xorg xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_anon authn_default authn_file authz_default proxy authz_groupfile authz_host authz_owner authz_user autoindex dav dav_fs dav_lock deflate dir expires filter headers imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id usertrack vhost_alias cache env" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pt_BR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
---------------------------------------

Please let me know if you need any extra info.
Comment 1 Rafał Mużyło 2012-05-15 14:05:53 UTC
Attach full build log.
The error in the snippet is meaningless, as it's not the first error.
Comment 2 Rodrigo Severo 2012-05-16 10:18:30 UTC
Created attachment 311997 [details]
swftools complete build log

Here is the complete build log as requested.

It's compressed as I don't remember which is the etiquette regarding big files. Please forgive me if it should have been not compressed.
Comment 3 Rafał Mużyło 2012-05-16 14:16:44 UTC
Comment on attachment 311997 [details]
swftools complete build log

According to the log, with errors like:
InfoOutputDev.h:158:27: error: 'Link' has not been declared
or
BitmapOutputDev.cc:1091:30: error: no matching function for call to 'SplashOut
putDev::useShadedFills()'
/usr/include/poppler/SplashOutputDev.h:217:17: note: candidate is: virtual GBo
ol SplashOutputDev::useShadedFills(int)
the problem seems to be incompatibility with recent versions of poppler
Comment 4 Rodrigo Severo 2012-05-16 14:24:13 UTC
(In reply to comment #3)
> Comment on attachment 311997 [details]
> the problem seems to be incompatibility with recent versions of poppler

But why any of this would affect the ebuild if, per bug #412423, swftools PDF support is disabled?
Comment 5 László Szalma 2012-05-16 16:49:50 UTC
The actual version of swftools doesn't compile with poppler, this is why it's disabled. It's disabled in a rude way, patching the Makefile. Not every occurence has been removed from the build scripts, hoping it will work in the near future.

I found your build.log contains:

checking pdflib.h usability... yes
checking pdflib.h presence... yes

Can you please tell me what package installed these? I don't have these on my system.
Comment 6 László Szalma 2012-05-16 17:39:44 UTC
Created attachment 312029 [details, diff]
swftools-0.9.2_nopdf.patch

This patch removes more pdf related things from Makefile
Comment 7 Rodrigo Severo 2012-05-16 17:54:30 UTC
(In reply to comment #5)
> I found your build.log contains:
> 
> checking pdflib.h usability... yes
> checking pdflib.h presence... yes
> 
> Can you please tell me what package installed these? I don't have these on
> my system.

media-libs/pdflib-7.0.2_p8
Comment 8 László Szalma 2012-05-16 18:01:22 UTC
This package is no (more) in the portage tree. I should say it's not supported, but this is not the way I fix the problems, but I couldn't test it. Can you please test the patch I just uploaded here?
Comment 9 László Szalma 2012-05-16 18:14:16 UTC
Created attachment 312033 [details]
swftools-0.9.2-r1.ebuild

This build tries to not build pdf related things. I'm not sure if it fixes the bug, because I couldn't reproduce it yet!
It removes unneeded dependencies:
coreutils: I made ln -s to create relative links without the -r switch
!<ming-0.4.0: these packages removed anyway a long time ago. I think it doesn't matter anymore.
poppler: we will need it, when we will have working poppler support.
Comment 10 László Szalma 2012-05-16 18:15:37 UTC
Created attachment 312035 [details, diff]
swftools-0.9.2_general.patch

unstable version of coreutils not required with this patch change.
Comment 11 Pacho Ramos gentoo-dev 2012-05-22 11:13:17 UTC
+  22 May 2012; Pacho Ramos <pacho@gentoo.org>
+  files/swftools-0.9.2_general.patch, swftools-0.9.2.ebuild:
+  Fix compilation due some pdf parts still not skipped, bug #416071 by Rodrigo
+  Severo and fix by László Szalma.
+

Fixed without a revbump because this is a compilation only bug