Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411765 - gnome-base/librsvg-2.36.0 fails to compile
Summary: gnome-base/librsvg-2.36.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-12 17:48 UTC by Chris Smith
Modified: 2012-04-13 02:39 UTC (History)
0 users

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


Attachments
build log (librsvg-2.36.0,58.43 KB, text/plain)
2012-04-12 18:01 UTC, Chris Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2012-04-12 17:48:10 UTC
gnome-base/librsvg-2.36.0 fails to compile  - 
 warning: 'rsvg_handle_set_size_callback' is deprecated

Reproducible: Always

Actual Results:  
Making all in gdk-pixbuf-loader
make[2]: Entering directory `/var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-loader'
  CC     libpixbufloader_svg_la-io-svg.lo
io-svg.c: In function 'gdk_pixbuf__svg_image_load_increment':
io-svg.c:127:17: warning: 'rsvg_handle_set_size_callback' is deprecated (declared at ../rsvg.h:205) [-Wdeprecated-declarations]
  CCLD   libpixbufloader-svg.la
  CC     rsvg_loader-test.o
  GEN    gdk-pixbuf-loaders
make[2]: *** [gdk-pixbuf-loaders] Error 139



emerge --info
Portage 2.2.0_alpha100 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.15, 3.3.1-gentoo x86_64)
=================================================================
System uname: Linux-3.3.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 12 Apr 2012 16:45:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.4
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15
Repositories: gentoo tcg mythtv
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/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="/usr/local/portage /usr/local/mythtv_portage/Gentoo"
SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluetooth bzip2 cairo caps cdaudio cddb cdparanoia cdr cdrdao chm cli consolekit cracklib crypt cups curl cxx dbus designer-plugin djvu dri dts dv dvb dvd dvdr ebook encode exif fam ffmpeg flac fortran gdbm gif gmp gnome gphoto2 gpm gps graphite gstreamer gtk gtk3 iconv icu ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k kpathsea lame lcms libffi libnotify mad marble midi mmap mmx modules mozilla mp3 mudflap multilib musicbrainz mythtv ncurses network nls nodrm nptl nptlonly nsplugin nvidia ofx ogg opencl openexr opengl openmp pam pcre pdf png policykit pulseaudio quicktime readline samba sasl scanner sdl semantic-desktop session slp smp sndfile spell sse sse2 ssl subversion svg sysfs theora threads tiff tk transparency truetype udev unicode usb v4l vcd vdpau vim-syntax vorbis vpx wav wavpack wmf x264 xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp hpet hrtimer rtctimer seqdummy virmidi" 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" 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 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" CAMERAS="*" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-12 17:54:06 UTC
The "'rsvg_handle_set_size_callback' is deprecated" in io-svg.c is only a warning. It does not stop the build.

From what you have posted, the error happens in gdk-pixbuf-loaders.

Please try to rebuild with  MAKEOPTS="V=1" (this makes the build output more verbose) and attach the full complete log (/var/tmp/portage/gnome-base/librsvg-2.36.0/temp/build.log) with the verbose failure.
Comment 2 Chris Smith 2012-04-12 18:01:07 UTC
Created attachment 308671 [details]
build log

requested build log with makeopts V=1
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-12 18:12:31 UTC
(In reply to comment #2)

Thanks!

What version of x11-libs/gdk-pixbuf do you have installed?

Please provide the output of the following commands:

gdk-pixbuf-query-loaders

gdk-pixbuf-query-loaders /var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-loader/libpixbufloader-svg.la
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-12 18:17:33 UTC
Also, have you set any nvidia-specific __GL… environment variables (e.g. __GL_NO_DSO_FINALIZER)?
Comment 5 Chris Smith 2012-04-12 18:25:23 UTC
(In reply to comment #3)
> What version of x11-libs/gdk-pixbuf do you have installed?

x11-libs/gdk-pixbuf-2.26.0

> Please provide the output of the following commands:
> 
> gdk-pixbuf-query-loaders

Segmentation fault

> gdk-pixbuf-query-loaders
> /var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-
> loader/libpixbufloader-svg.la

g_module_open() failed for /var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-loader/libpixbufloader-svg.la: /var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-loader/libpixbufloader-svg.la: cannot open shared object file: No such file or directory
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders from gdk-pixbuf-2.26.0
Comment 6 Chris Smith 2012-04-12 18:27:40 UTC
(In reply to comment #4)
> Also, have you set any nvidia-specific __GL… environment variables (e.g.
> __GL_NO_DSO_FINALIZER)?

I see:
__GL_NO_DSO_FINALIZER=1

although I don't think I set it (or where I would)

It is right after:
_=/var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-loader/libpixbufloader-svg.la
Comment 7 Chris Smith 2012-04-12 18:32:21 UTC
(In reply to comment #3)
> gdk-pixbuf-query-loaders
> /var/tmp/portage/gnome-base/librsvg-2.36.0/work/librsvg-2.36.0/gdk-pixbuf-
> loader/libpixbufloader-svg.la

That directory doesn't contain libpixbufloader-svg.la after the failed build.
It does have: libpixbufloader_svg_la-io-svg.lo
Comment 8 Chris Smith 2012-04-12 18:46:37 UTC
(In reply to comment #6)
> __GL_NO_DSO_FINALIZER=1
> 
> although I don't think I set it (or where I would)

It's set in:
/etc/env.d/99nvidia
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-12 18:47:16 UTC
(In reply to comment #6)
> I see:
> __GL_NO_DSO_FINALIZER=1
> 
> although I don't think I set it (or where I would)

You may have set it in the past to work around bug #375615, but it is known to interact badly with a few programs, including gdk-pixbuf's gdk-pixbuf-query-loaders.

The librsvg-2.36.0 ebuild is now fixed in cvs. If you don't want to wait and resync, I believe you should be able to emerge librsvg-2.36.0 right now by doing

__GL_NO_DSO_FINALIZER=0 emerge -1 librsvg

Thanks for helping to diagnose and fix this issue.

>  12 Apr 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  librsvg-2.36.0.ebuild:
>  __GL_NO_DSO_FINALIZER also needs to be unset in src_compile for 2.36.0 to fix
>  build error for nvidia-drivers users (bug  #411765, thanks to Chris Smith for
>  reporting).
Comment 10 Chris Smith 2012-04-12 19:00:47 UTC
(In reply to comment #9)
> You may have set it in the past to work around bug #375615, but it is known
> to interact badly with a few programs, including gdk-pixbuf's
> gdk-pixbuf-query-loaders.

Yes, it's some old cruft I'm sure. However, after removing /etc/env.d/99nvidia and rebooting it still shows up in the environmnet. Grepping the env.d files shows no other instances. I wonder where it is coming from now???
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-13 02:39:58 UTC
(In reply to comment #10)
> Yes, it's some old cruft I'm sure. However, after removing
> /etc/env.d/99nvidia and rebooting it still shows up in the environmnet.
> Grepping the env.d files shows no other instances. I wonder where it is
> coming from now???

You need to run env-update after editing /etc/env.d files.