Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble compiling librsvg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jayseejc3191
n00b
n00b


Joined: 09 Dec 2011
Posts: 33
Location: Canada

PostPosted: Sun Jan 22, 2012 6:29 am    Post subject: Trouble compiling librsvg Reply with quote

Ok, having trouble compiling librsvg and it's ending up being required by a lot of other programs...

emerge --info =gnome-base/librsvg-2.34.2
Code:

Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.4-ck x86_64)                                                               [2/147]
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.4-ck-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 21 Jan 2012 18:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.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-r1
sys-devel/gcc-config:     1.4.1-r1
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.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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/revdep-rebuild /etc/sand
box.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge
-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --ex
clude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus directfb dri fortran gdbm gpm gtk iconv ipv6 jpeg lxde mmx modules mp3 mudflap multil
ib ncurses nls nptl nptlonly offensive openmp pam pcre pppd pulseaudio readline session sse sse2 ssl sysfs tcpd toolbar truetype udev unicode wifi xorg zlib"
 ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 tride
nt usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat lin
ear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_defa
ult 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_i
d userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface i
rq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip na
vcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad c
fontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTA
GE_RSYNC_EXTRA_OPTS


emerge -pqv =gnome-base/librsvg-2.34.2
Code:

[ebuild  N    ] gnome-base/librsvg-2.34.2  USE="gtk introspection -doc -gtk3 -tools"


The build log:
Code:


 * Package:    gnome-base/librsvg-2.34.2                                                                                                           [169/1959]
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org
 * USE:        amd64 elibc_glibc gtk introspection kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking librsvg-2.34.2.tar.xz to /var/tmp/portage/gnome-base/librsvg-2.34.2/work
>>> Unpacking introspection.m4.bz2 to /var/tmp/portage/gnome-base/librsvg-2.34.2/work
>>> Source unpacked in /var/tmp/portage/gnome-base/librsvg-2.34.2/work
>>> Preparing source in /var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2 ...
 * Applying librsvg-2.34.0-automagic-gtk.patch ...                       [ ok ]
 * Applying librsvg-2.34.2-gir-filename.patch ...                        [ ok ]
 * Running eautoreconf in '/var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2' ...
 * Running aclocal -I . ...                                              [ ok ]
 * Running libtoolize --copy --force --install --automake ...            [ ok ]
 * Running aclocal -I . ...                                              [ ok ]
 * Running autoconf -I . ...                                             [ ok ]
 * Running autoheader -I . ...                                           [ ok ]
 * Running automake --add-missing --copy ...                             [ ok ]
 * Running elibtoolize in: librsvg-2.34.2/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Converting shebang in 'rsvg.in'
 * Fixing OMF Makefiles ...                                              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2 ...
 * econf: updating librsvg-2.34.2/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating librsvg-2.34.2/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sys
confdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --disable-static --disable-tools --enable-gtk-theme --enable-introspe
ction --with-croco --enable-pixbuf-loader --with-gtk=2.0 --disable-gtk-doc --disable-maintainer-mode
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for library containing strerror... none required
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for gawk... (cached) gawk
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E                                                                                                                 [106/1959]
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking whether byte ordering is bigendian... no
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for some Win32 platform... no
checking for native Win32... no
checking for LIBRSVG... yes
checking for GTHREAD... yes
checking whether gio 2.24 is available... yes
checking for LIBCROCO... yes
checking for strtok_r... yes                                                                                                                        [43/1959]
checking for more warnings... no
checking whether to build the GTK+ theme engine... yes
checking which gtk+ version to compile against... 2.0
checking for GTK2... yes
checking whether to build the GDK-Pixbuf SVG loader... yes
checking for GDK_PIXBUF... yes
checking for gdk-pixbuf-query-loaders... /usr/bin/gdk-pixbuf-query-loaders
checking for gtkdoc-check... no
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking whether to build miscellaenous tools... no
checking for gobject-introspection... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
configure: creating ./config.status
config.status: creating librsvg.spec
config.status: creating librsvg-features.h
config.status: creating Makefile
config.status: creating librsvg-zip
config.status: creating data/Makefile
config.status: creating gtk-engine/Makefile
config.status: creating gtk-engine/examples/Makefile
config.status: creating gtk-engine/examples/bubble/Makefile
config.status: creating gdk-pixbuf-loader/Makefile
config.status: creating tests/Makefile
config.status: creating tests/pdiff/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/version.xml
config.status: creating librsvg-2.0.pc
config.status: creating librsvg-2.0-uninstalled.pc
config.status: creating rsvg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

librsvg-2.34.2

        prefix:                         /usr
        compiler:                       x86_64-pc-linux-gnu-gcc

        Build introspectable bindings:  yes
        Build GdkPixbuf loader:         yes
        Build theme engine:             yes
        Build miscellaenous tools:      no
        Handle svgz files:              true
        Use libcroco for css parsing:   true

>>> Source configured.
>>> Compiling source in /var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2 ...
make -j3 -s
Making all in .
  CC     librsvg_2_la-librsvg-features.lo
  CC     librsvg_2_la-rsvg-affine.lo
  CC     librsvg_2_la-rsvg-bpath-util.lo
  CC     librsvg_2_la-rsvg-css.lo
  CC     librsvg_2_la-rsvg-defs.lo
  CC     librsvg_2_la-rsvg-image.lo
  CC     librsvg_2_la-rsvg-paint-server.lo
  CC     librsvg_2_la-rsvg-path.lo
  CC     librsvg_2_la-rsvg-base-file-util.lo
  CC     librsvg_2_la-rsvg-filter.lo
  CC     librsvg_2_la-rsvg-marker.lo
  CC     librsvg_2_la-rsvg-mask.lo
  CC     librsvg_2_la-rsvg-shapes.lo
  CC     librsvg_2_la-rsvg-structure.lo
  CC     librsvg_2_la-rsvg-styles.lo
  CC     librsvg_2_la-rsvg-text.lo
  CC     librsvg_2_la-rsvg-cond.lo
  CC     librsvg_2_la-rsvg-base.lo
  GEN    s-enum-types-c
  GEN    s-enum-types-h
  CC     librsvg_2_la-rsvg-cairo-draw.lo
  CC     librsvg_2_la-rsvg-cairo-render.lo
  CC     librsvg_2_la-rsvg-cairo-clip.lo
  CC     librsvg_2_la-rsvg.lo
  CC     librsvg_2_la-rsvg-gobject.lo
  CC     librsvg_2_la-rsvg-file-util.lo
  CC     librsvg_2_la-rsvg-xml.lo
  CC     rsvg_convert-rsvg-convert.o
  CC     rsvg_view-test-display.o
  CC     librsvg_2_la-librsvg-enum-types.lo
  CCLD   librsvg-2.la
  GISCAN Rsvg-2.0.gir
  CCLD   rsvg-convert
  CCLD   rsvg-view
In file included from <stdin>:19:0:
/var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2/rsvg-cairo-render.h:32:19: fatal error: cairo.h: No such file or directory
compilation terminated.
Error while processing the source.
make[2]: *** [Rsvg-2.0.gir] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 * ERROR: gnome-base/librsvg-2.34.2 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =gnome-base/librsvg-2.34.2',
 * the complete build log and the output of 'emerge -pqv =gnome-base/librsvg-2.34.2'.
 * The complete build log is located at '/var/tmp/portage/gnome-base/librsvg-2.34.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-base/librsvg-2.34.2/temp/environment'.
 * S: '/var/tmp/portage/gnome-base/librsvg-2.34.2/work/librsvg-2.34.2'


the enviroment file gets cut off if i try to post it, so pm me if you need it...
_________________
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Back to top
View user's profile Send private message
k01
Arch/Herd Tester
Arch/Herd Tester


Joined: 13 Feb 2008
Posts: 617
Location: Milano

PostPosted: Sun Jan 22, 2012 12:32 pm    Post subject: Reply with quote

here it compiles without problems, check that x11-libs/cairo is installed and with which use flags. anyway you can try also a different version of gnome-base/librsvg
Back to top
View user's profile Send private message
wltr
n00b
n00b


Joined: 21 Jan 2012
Posts: 2

PostPosted: Sun Jan 22, 2012 6:17 pm    Post subject: Reply with quote

Code:
emerge dev-libs/gobject-introspection


then

Code:
emerge gnome-base/librsvg
Back to top
View user's profile Send private message
jayseejc3191
n00b
n00b


Joined: 09 Dec 2011
Posts: 33
Location: Canada

PostPosted: Sun Jan 22, 2012 8:07 pm    Post subject: Reply with quote

x11-libs/cairo-1.10.2-r1 is installed... the use flags are here:
Code:

[ebuild   R    ] x11-libs/cairo-1.10.2-r1  USE="X directfb glib svg (-aqua) -debug -doc (-drm) (-gallium) -opengl (-openvg) -qt4 -static-libs -xcb" 0 kB


And as per your suggestion wltr, i have made sure that dev-libs/gobject-introspection is installed, as it was before I posted on these forums... and now it's working... Didn't change any use flags or anything, just tried it again and it worked...
_________________
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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