Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem emerge inkscape
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
guoyingshou
n00b
n00b


Joined: 08 Jan 2014
Posts: 10

PostPosted: Sun Jul 10, 2016 5:27 am    Post subject: problem emerge inkscape Reply with quote

Hi,

While trying to emerge inkscape, I got the following problem. Can anyone give a hint what it means?

Best,

Yingshou
-------------------------

ui/dialog/ocaldialogs.o: In function `Inkscape::UI::Dialog::OCAL::LogoArea::LogoArea()':
ocaldialogs.cpp:(.text+0x4efa): undefined reference to `Cairo::ImageSurface::create_from_png(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
ui/dialog/ocaldialogs.o: In function `Inkscape::UI::Dialog::OCAL::LogoArea::LogoArea()':
ocaldialogs.cpp:(.text+0x537d): undefined reference to `Cairo::ImageSurface::create_from_png(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
ui/dialog/print.o: In function `draw_page(_GtkPrintOperation*, _GtkPrintContext*, int, void*)':
print.cpp:(.text+0x42b): undefined reference to `Cairo::ImageSurface::create_from_png(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
ui/dialog/svg-fonts-dialog.o: In function `SvgFontDrawingArea::on_expose_event(_GdkEventExpose*)':
svg-fonts-dialog.cpp:(.text+0x3a0): undefined reference to `Cairo::Context::show_text(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:6902: inkscape] Error 1
make[3]: *** Waiting for unfinished jobs....
ui/dialog/ocaldialogs.o: In function `Inkscape::UI::Dialog::OCAL::LogoArea::LogoArea()':
ocaldialogs.cpp:(.text+0x4efa): undefined reference to `Cairo::ImageSurface::create_from_png(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
ui/dialog/ocaldialogs.o: In function `Inkscape::UI::Dialog::OCAL::LogoArea::LogoArea()':
ocaldialogs.cpp:(.text+0x537d): undefined reference to `Cairo::ImageSurface::create_from_png(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
ui/dialog/print.o: In function `draw_page(_GtkPrintOperation*, _GtkPrintContext*, int, void*)':
print.cpp:(.text+0x42b): undefined reference to `Cairo::ImageSurface::create_from_png(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
ui/dialog/svg-fonts-dialog.o: In function `SvgFontDrawingArea::on_expose_event(_GdkEventExpose*)':
svg-fonts-dialog.cpp:(.text+0x3a0): undefined reference to `Cairo::Context::show_text(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:6906: inkview] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91/src'
make[2]: *** [Makefile:5059: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91/src'
make[1]: *** [Makefile:1411: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91'
make: *** [Makefile:1107: all] Error 2
* ERROR: media-gfx/inkscape-0.91-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-gfx/inkscape-0.91-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-gfx/inkscape-0.91-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-gfx/inkscape-0.91-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/inkscape-0.91-r3/temp/environment'.
* Working directory: '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91'
* S: '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91'

>>> Failed to emerge media-gfx/inkscape-0.91-r3, Log file:

>>> '/var/tmp/portage/media-gfx/inkscape-0.91-r3/temp/build.log'

* Messages for package dev-python/lxml-3.6.0:

* dev-python/beautifulsoup for Support for BeautifulSoup3 as a parser backend
* dev-python/cssselect for Translates CSS selectors to XPath 1.0 expressions

* Messages for package media-gfx/inkscape-0.91-r3:

* ERROR: media-gfx/inkscape-0.91-r3::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-gfx/inkscape-0.91-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-gfx/inkscape-0.91-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-gfx/inkscape-0.91-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/inkscape-0.91-r3/temp/environment'.
* Working directory: '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91'
* S: '/var/tmp/portage/media-gfx/inkscape-0.91-r3/work/inkscape-0.91'
Back to top
View user's profile Send private message
guoyingshou
n00b
n00b


Joined: 08 Jan 2014
Posts: 10

PostPosted: Sun Jul 10, 2016 5:31 am    Post subject: Output of emerge --info '=media-gfx/inkscape-0.91-r3::gentoo Reply with quote

Portage 2.3.0 (python 3.4.4-final-0, default/linux/amd64/13.0/systemd, gcc-5.4.0, glibc-2.23-r2, 4.6.3-aufs x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.6.3-aufs-x86_64-Intel-R-_Core-TM-_i7-4712HQ_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem: 16334008 total, 9127836 free
KiB Swap: 2097148 total, 2096820 free
Timestamp of repository gentoo: Sun, 10 Jul 2016 01:15:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p46::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.0-r1::gentoo
dev-lang/python: 2.7.11-r2::gentoo, 3.4.4::gentoo, 3.5.1-r3::gentoo
dev-util/cmake: 3.6.0::gentoo
dev-util/pkgconfig: 0.29.1::gentoo
sys-apps/baselayout: 2.2-r1::gentoo
sys-apps/openrc: 0.21.2::gentoo
sys-apps/sandbox: 2.10-r2::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 5.4.0::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r2::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc: 2.23-r2::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync1.de.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-vcs-ignore: true

anders-larsson
location: /var/lib/layman/anders-larsson
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="zh_CN.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 berkdb bzip2 cairo caps cjk cli cracklib crypt cxx dbus dhclient dlz dmx dri fortran gdbm glib gtk3 gudev iconv icu ipv6 jpeg lua mmx mmxext modules multilib ncurses nls nptl ogg opengl openmp orc pam pcre png policykit pulseaudio qt3support readline seccomp session sse sse2 ssl symlink systemd tcpd touchscreen truetype tslib udev udisks unicode vorbis wext xattr xorg zlib" ABI_X86="64 32" ALSA_CARDS="hda_intel usb_audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 ublox ubx" GRUB_PLATFORMS="efi-6" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en-US en zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4 pypy" PYTHON_TARGETS="python2_7 python3_4 pypy" RUBY_TARGETS="ruby20 ruby21 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness clock trash" 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"
USE_PYTHON="2.7 3.4"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Sun Jul 10, 2016 7:03 am    Post subject: Reply with quote

Quote:
svg-fonts-dialog.cpp:(.text+0x3a0): undefined reference to `Cairo::Context::show_text(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'


You failed to read the news about gcc-5...

Code:
Title: GCC 5 Defaults to the New C++11 ABI
Author: Mike Frysinger <vapier@gentoo.org>
Content-Type: text/plain
Posted: 2015-10-22
Revision: 2
News-Item-Format: 1.0
Display-If-Installed: >=sys-devel/gcc-5

GCC 5 uses the new C++ ABI by default.  When building new code, you might run
into link time errors that include lines similar to:
...: undefined reference to '_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17'

Or you might see linkage failures with "std::__cxx11::string" in the output.

These are signs that you need to rebuild packages using the new C++ ABI.
You can quickly do so by using revdep-rebuild (from gentoolkit).

For gentoolkit-0.3.1 or higher:
# revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

For previous versions of gentoolkit:
# revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

For more details, feel free to peruse:
https://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/
https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/


On a side note, post the entire build.log next time, as the bottom is only telling you it failed to compile (the issue is often farther up in the log).
Back to top
View user's profile Send private message
guoyingshou
n00b
n00b


Joined: 08 Jan 2014
Posts: 10

PostPosted: Sun Jul 10, 2016 2:55 pm    Post subject: problem solved! Reply with quote

thanks. after revdep-rebuild I now successfully emerged inkscape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum