Bug 213026 - media-gfx/inkscape-0.46 fails to compile (was: media-gfx/inkscape-0.46 version bump)
Bug#: 213026 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: graphics@gentoo.org Reported By: miga_miga@gmx.de
Component: Ebuilds
URL:  http://inkscape.org
Summary: media-gfx/inkscape-0.46 fails to compile (was: media-gfx/inkscape-0.46 version bump)
Keywords:  
Status Whiteboard: 
Opened: 2008-03-11 11:05 0000
Description:   Opened: 2008-03-11 11:05 0000
Version 0.46 just appeared on SourceForge:
http://sourceforge.net/project/showfiles.php?group_id=93438

Changelog:
http://sourceforge.net/project/shownotes.php?group_id=93438&release_id=583320

------- Comment #1 From Markus Meier 2008-03-14 17:57:16 0000 -------
bumped in cvs.

------- Comment #2 From Michael 2008-03-14 20:55:51 0000 -------
extension/internal/pdf-cairo.cpp:333: warning: ‘sp_item_invoke_bbox’ is
deprecated (declared at ./sp-item.h:215)
extension/internal/pdf-input-cairo.cpp: In member function ‘virtual
SPDocument*
Inkscape::Extension::Internal::PdfInputCairo::open(Inkscape::Extension::Input*,const
gchar*)’:
extension/internal/pdf-input-cairo.cpp:55: error: ‘poppler_page_render’ was
not declared in this scope
make[2]: *** [extension/internal/pdf-input-cairo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/media-gfx/inkscape-0.46/work/inkscape-0.46/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-gfx/inkscape-0.46/work/inkscape-0.46'
make: *** [all] Error 2
 *
 * ERROR: media-gfx/inkscape-0.46 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2547:  Called gnome2_src_compile
 *             environment, line 1924:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/media-gfx/inkscape-0.46/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/media-gfx/inkscape-0.46/temp/environment'.
 *

 * Messages for package media-gfx/inkscape-0.46:

 *
 * ERROR: media-gfx/inkscape-0.46 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2547:  Called gnome2_src_compile
 *             environment, line 1924:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/media-gfx/inkscape-0.46/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/media-gfx/inkscape-0.46/temp/environment'.


Installed versions:
[ebuild   R   ] x11-libs/cairo-1.4.12  USE="X directfb opengl svg -debug -doc
-glitz -xcb"
[ebuild   R   ] app-text/poppler-0.6.1-r1  USE="jpeg zlib -cjk"


A use-flag for CDR-import (using UniConvertor) would be nice too

------- Comment #3 From Markus Meier 2008-03-15 09:53:58 0000 -------
(In reply to comment #2)

could you please post "emerge -pv inkscape" and "emerge --info"?

------- Comment #4 From Michael 2008-03-15 10:27:00 0000 -------
sure:
emerge -pv inkscape

[ebuild     U ] media-gfx/inkscape-0.46 [0.45.1-r1] USE="mmx perl -debug -dia
-doc -gnome -inkjar -jabber -lcms -postscript -spell -wmf" 0 kB


emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0,
2.6.24-gentoo-r2-mactel i686)
=================================================================
System uname: 2.6.24-gentoo-r2-mactel i686 Genuine Intel(R) CPU T2600 @ 2.16GHz
Timestamp of tree: Fri, 14 Mar 2008 19:00:03 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer nodoc parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="/media"
LANG="en_IE.utf-8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac accessibility acl acpi alsa apache2 avahi berkdb
bzip2 cdr cli cpudetection cracklib crypt cups dbus dga directfb divx dri dts
dvd dvdr dvdread encode ffmpeg fortran gd gdbm gif gpm gtk history iconv ipod
ipv6 isdnlog isight jpeg kde ldap mad madwifi midi mmx mmxext mp3 mudflap mysql
ncurses nls noamazon nptl nptlonly ogg openal opengl openmp pam pcre pdf perl
png pppd python qt3support qt4 quicktime readline realmedia reflection samba
sasl session spl sse sse2 ssl svg tcpd tga theora threads tiff tk truetype
unicode usb v4l v4l2 vorbis win32codecs x264 x86 xorg xv xvid zlib"
ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw
multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa
fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #5 From Markus Meier 2008-03-15 13:40:50 0000 -------
Thanks, but I can't reproduce. Could you please attach the build.log?

------- Comment #6 From Michael 2008-03-15 14:08:27 0000 -------
Created an attachment (id=146221) [details]
failed emerge

------- Comment #7 From Michael 2008-03-15 14:09:47 0000 -------
(From update of attachment 146221 [details])
It seems that Poople_cairo is not installed but it sets "enable poppler-cairo"
to yes. Perhaps thats already the problem

------- Comment #8 From Markus Meier 2008-03-15 14:59:04 0000 -------
Created an attachment (id=146226) [details]
inkscape-0.36.ebuild.patch

(In reply to comment #7)
> (From update of attachment 146221 [details] [edit])
> It seems that Poople_cairo is not installed but it sets "enable poppler-cairo"
> to yes. Perhaps thats already the problem

hrm. I saw this and it doesn't fail here. Can you please try to emerge inkscape
with this patched ebuild and report if it emerges and works? (The patch
disables this poppler-cairo thing.

------- Comment #9 From Michael 2008-03-15 15:11:13 0000 -------
I emerged poppler-bindings again with cairo use-flag (wasn't set) and after
that the UNPATCHED inkscape version was working.

want me to still check the patched version?

------- Comment #10 From Markus Meier 2008-03-15 16:59:05 0000 -------
(In reply to comment #9)
> want me to still check the patched version?

No, that's fine. The ebuild now checks (if the new pdf USE-flag is set) that
poppler is built with cairo support.
Thank you for all the testing.