Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254943 - media-gfx/eog-2.24.2-r1 fails to build with USE="doc -exif -xmp"
Summary: media-gfx/eog-2.24.2-r1 fails to build with USE="doc -exif -xmp"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 10:30 UTC by Ian Abbott
Modified: 2009-02-10 17:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2009-01-14 10:30:54 UTC
I have the "doc" use-flag turned on in /etc/make.conf, but not the "exif" use-flag. media-gfx/eog-2.24.2-r1 failed to build, complaining about an undefined reference to `eog_exif_details_get_type' in eog-scan.c.

Reproducible: Always

Steps to Reproduce:
1. USE="doc -exif" emerge =media-gfx/eog-2.24.2-r1

Actual Results:  
[...]
Making all in doc
make[2]: Entering directory `/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/doc'
Making all in reference
make[3]: Entering directory `/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/doc/reference'
gtk-doc: Scanning header files
cd . && \
	  gtkdoc-scan --module=eog --source-dir=../../src --ignore-headers="eog-python-plugin.h eog-image-private.h eog-image-jpeg.h eog-marshal.h eog-application-service.h eog-enum-types.h eog-module.h eog-python-module.h"  
if grep -l '^..*$' ./eog.types > /dev/null 2>&1 ; then \
	    CC="/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -I../.. -I../.. -I../../src -I../../jpegutils -I../../cut-n-paste/toolbar-editor -I../../cut-n-paste/totem-screensaver -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/gtk-unix-print-2.0      -march=athlon -O2 -pipe" LD="/bin/sh ../../libtool --mode=link i686-pc-linux-gnu-gcc  -march=athlon -O2 -pipe  -Wl,-O1" RUN="/bin/sh ../../libtool --mode=execute" CFLAGS=" -march=athlon -O2 -pipe" LDFLAGS="../../src/libeog.la -L../../cut-n-paste/toolbar-editor -ltoolbareditor -L../../cut-n-paste/totem-screensaver -ltotemscrsaver ../../bindings/python/eog.la   -pthread -lglade-2.0 -lxml2 -lgnome-desktop-2 -lgnomeui-2 -lSM -lICE -lstartup-notification-1 -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgconf-2 -lgthread-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgmodule-2.0 -llcms -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0    -lpython2.5 -Wl,-O1" gtkdoc-scangobj  --module=eog --output-dir=. ; \
	else \
	    cd . ; \
	    for i in eog.args eog.hierarchy eog.interfaces eog.prerequisites eog.signals ; do \
               test -f $i || touch $i ; \
	    done \
	fi
gtk-doc: Compiling scanner
mkdir .libs
 i686-pc-linux-gnu-gcc -I../.. -I../.. -I../../src -I../../jpegutils -I../../cut-n-paste/toolbar-editor -I../../cut-n-paste/totem-screensaver -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/gtk-unix-print-2.0 -march=athlon -O2 -pipe -march=athlon -O2 -pipe -c eog-scan.c  -fPIC -DPIC -o .libs/eog-scan.o
gtk-doc: Linking scanner
i686-pc-linux-gnu-gcc -march=athlon -O2 -pipe -Wl,-O1 -o eog-scan .libs/eog-scan.o -pthread -Wl,-O1  ../../src/.libs/libeog.a -L/usr/lib /usr/lib/libXcursor.so /usr/lib/libXcomposite.so /usr/lib/libXdamage.so /usr/lib/libXfixes.so -L/usr/lib/python2.5/config -L/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/cut-n-paste/toolbar-editor /var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/cut-n-paste/toolbar-editor/.libs/libtoolbareditor.a -L/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/cut-n-paste/totem-screensaver /var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/cut-n-paste/totem-screensaver/.libs/libtotemscrsaver.a ../../bindings/python/.libs/eog.a /usr/lib/libglade-2.0.so /usr/lib/libgnome-desktop-2.so /usr/lib/libXrandr.so /usr/lib/libgnomeui-2.so /usr/lib/libgnome-keyring.so /usr/lib/libstartup-notification-1.so /usr/lib/libbonoboui-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libgailutil.so /usr/lib/libgnome-2.so /usr/lib/libgnomevfs-2.so /usr/lib/libxml2.so -lssl -lcrypto /usr/lib/libavahi-glib.so /usr/lib/libavahi-client.so /usr/lib/libavahi-common.so -lresolv -lutil /usr/lib/libesd.so /usr/lib/libasound.so /usr/lib/libaudiofile.so /usr/lib/libpopt.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBitCosNaming-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libgconf-2.so /usr/lib/libORBit-2.so -lnsl /usr/lib/libgthread-2.0.so -lrt /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libcairo.so /usr/lib/libpixman-1.so /usr/lib/libglitz-glx.so /usr/lib/libGL.so /usr/lib/libXmu.so -luuid /usr/lib/libXt.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libXi.so /usr/lib/libXext.so -lpthread /usr/lib/libglitz.so /usr/lib/libpng12.so /usr/lib/libxcb-render-util.so /usr/lib/libxcb-render.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libpango-1.0.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lz /usr/lib/libexpat.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/liblcms.so -lm /usr/lib/libdbus-glib-1.so /usr/lib/libdbus-1.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -lpython2.5  
.libs/eog-scan.o: In function `main':
eog-scan.c:(.text+0x239a): undefined reference to `eog_exif_details_get_type'
collect2: ld returned 1 exit status
Linking of scanner failed: 
make[3]: *** [scan-build.stamp] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/doc/reference'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/eog-2.24.2-r1/work/eog-2.24.2'
make: *** [all] Error 2



emerge --info

Portage 2.1.6.5 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.27-gentoo-r7-ija1 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-ija1-i686-AMD_Duron-tm-_processor-with-glibc2.0
Timestamp of tree: Tue, 13 Jan 2009 17:15:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 /etc/udev/rules.d"
CXXFLAGS="-march=athlon -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
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="X aac acl acpi adns alsa avahi berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus doc dri dv dvd dvdr dvdread eds emboss encode esd evo expat fam firefox flac flash fortran gdbm gif glut gmp gnome gnome-keyring gpm gstreamer gtk gtkhtml hal iconv idn imagemagick imap imlib ipv6 isdnlog java jpeg kde lcms ldap libnotify mad midi mikmod mmx mng mono motif mozsvg mp3 mpeg mudflap ncurses nls no-helper nptl nsplugin offensive ogg opengl openmp pam pcre pdf perl plotutils png ppds pppd python qemu-fast qt3 qt3support qt4 quicktime readline reflection samba sdl session slang snmp softmmu spell spl sqlite ssl startup-notification svg sysfs tcltk tcpd tetex threads tiff truetype unicode usb vorbis win32codecs x264 x86 xcb xine xml xorg xulrunner xv zlib" ALSA_CARDS="ens1371" 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="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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ian Abbott 2009-01-14 17:54:44 UTC
I reported it upstream: http://bugzilla.gnome.org/show_bug.cgi?id=567770
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-14 20:31:36 UTC
this is strange, 2.24.2-r1 precisely has a fix for building with these use flags.
Can you tell where this definition is declared ?
Comment 3 Ian Abbott 2009-01-15 11:34:31 UTC
BTW, the upstream bug I posted has resolved as a duplicate of another (unresolved) bug: http://bugzilla.gnome.org/show_bug.cgi?id=557662 which in turn was linked to gentoo bug 242868.

The sed command in the eog-2.24.2-r1 ebuild is editing doc/reference/Makefile.am and doc/reference/Makefile.in okay (removing 'plugins' from the list of include directories), but it doesn't seem to fix this bug!

To answer Gille's question, eog_exif_details_get_type() is declared in src/eog-exif-details.h and defined (implemented) by the G_DEFINE_TYPE() macro in src/eog-exif-details.c.  However, src/eog-exif-details.c does not get compiled if the package is configured --without-libexif.
Comment 4 Arun Raghavan (RETIRED) gentoo-dev 2009-01-18 11:49:09 UTC
Okay, so you need to have both -xmp and -exif to be able to reproduce this. sed'ing out eog_exif_details_get_type() in doc/reference/eog.types works, but that still leaves empty a couple of empty EXIF-related sections in the documentation.

Spoke to upstream in #eog. One option we discussed was to convert eog.types and the sections file into a .in and generate them at compile time.
Comment 5 Arun Raghavan (RETIRED) gentoo-dev 2009-01-18 12:37:38 UTC
Posted a patch on upstream Bugzilla. Will commit with 2.24.3.1 bump if there are no objections.
Comment 6 Pacho Ramos gentoo-dev 2009-01-23 08:31:50 UTC
(In reply to comment #5)
> Posted a patch on upstream Bugzilla. Will commit with 2.24.3.1 bump if there
> are no objections.
> 

It is already in the tree, should maybe this bug be closed then?