Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263367 - gnome-extra/fast-user-switch-applet-2.24.0: compile error applet.c:55:35: error: libgnomeui/gnome-help.h: No such file or directory
Summary: gnome-extra/fast-user-switch-applet-2.24.0: compile error applet.c:55:35: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 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-03-22 14:23 UTC by Dan Warner
Modified: 2009-05-26 20:45 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,15.99 KB, text/plain)
2009-03-22 14:39 UTC, Dan Warner
Details
Use pkgconfig to get correct -I flags (fast-user-switch-applet-2.24.0-libgnomeuicflags.patch,702 bytes, patch)
2009-05-26 16:33 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Warner 2009-03-22 14:23:52 UTC
When compiling gnome-extra/fast-user-switch-applet-2.24.0 the compile fails with applet.c:55:35: error: libgnomeui/gnome-help.h: No such file or directory



Reproducible: Always

Steps to Reproduce:
emerge -1 gnome-extra/fast-user-switch-applet
Actual Results:  
Cannot compile.

make[2]: Leaving directory `/var/tmp/portage/gnome-extra/fast-user-switch-applet-2.24.0/work/fast-user-switch-applet-2.24.0/help'
Making all in src
make[2]: Entering directory `/var/tmp/portage/gnome-extra/fast-user-switch-applet-2.24.0/work/fast-user-switch-applet-2.24.0/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DG_LOG_DOMAIN=\""Fast-User-Switch-Applet"\" -DDATADIR=\""/usr/share"\" -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/panel-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/libglade-2.0     -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare  -Wcast-align -Wchar-subscripts -Wsign-compare -Wno-strict-aliasing -march=athlon64 -O2 -pipe -MT fast_user_switch_applet-applet.o -MD -MP -MF .deps/fast_user_switch_applet-applet.Tpo -c -o fast_user_switch_applet-applet.o `test -f 'applet.c' || echo './'`applet.c
applet.c:55:35: error: libgnomeui/gnome-help.h: No such file or directory
applet.c: In function 'applet_fill_cb':
applet.c:459: warning: implicit declaration of function 'getuid'
applet.c:459: warning: nested extern declaration of 'getuid'
applet.c: In function 'help_cb':
applet.c:1109: warning: implicit declaration of function 'gnome_help_display_on_screen'
applet.c:1109: warning: nested extern declaration of 'gnome_help_display_on_screen'
make[2]: *** [fast_user_switch_applet-applet.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-extra/fast-user-switch-applet-2.24.0/work/fast-user-switch-applet-2.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/fast-user-switch-applet-2.24.0/work/fast-user-switch-applet-2.24.0'
make: *** [all] Error 2


Expected Results:  
Should have compiled

emerge --info

Portage 2.2_rc26 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5
Timestamp of tree: Sun, 22 Mar 2009 13:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/ "
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en_US"
MAKEOPTS="-j1"
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 --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 apache2 audiofile avahi berkdb bzip2 cairo cdr cli cracklib crypt css cups dbus dri dts dvd dvdr dvdread encode exif expat ffmpeg fftw firefox flac fortran gd gdbm gif glut gnome gpm gstreamer gtk hal hddtemp iconv imagemagick ipv6 isdnlog jack java java6 jpeg jpeg2k libnotify lm_sensors mad midi mmx mp3 mpeg msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl php png pppd python readline reflection session simplexml spl sqlite3 sse sse2 sse3 ssl sysfs tcpd tiff unicode vorbis xml xorg xulrunner xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_US" USERLAND="GNU" VIDEO_CARDS="vga nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-22 14:35:14 UTC
which version of libgnomeui are you using ? Also please attach full build.log.
Comment 2 Dan Warner 2009-03-22 14:38:44 UTC
Using libgnomeui version

gnome-base/libgnomeui-2.24.0
Comment 3 Dan Warner 2009-03-22 14:39:58 UTC
Created attachment 185877 [details]
build.log
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-22 15:13:59 UTC
you might want to rebuild libgnomeui then because I definitively have this file on my 2.24 system.
Comment 5 Dan Warner 2009-03-22 15:26:07 UTC
Did a emerge -1avt libgnomeui
[ebuild   R   ] gnome-base/libgnomeui-2.24.0  USE="-debug -doc" 0 kB

Then emerge -1avt gnome-extra/fast-user-switch-applet
[ebuild  N    ] gnome-extra/fast-user-switch-applet-2.24.0  USE="-debug" 0 kB

But still fails. Yes i do have the include file located at
/usr/include/libgnomeui-2.0/libgnomeui/gnome-help.h

but a -I/usr/include/libgnomeui-2.0 isnt used when compiling that file...
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2009-03-22 18:03:09 UTC
could you paste the output of the following commands :

 - cat /usr/lib/pkgconfig/libpanelapplet-2.0.pc

 - pkg-config libgnomeui-2.0 --cflags

Thanks
Comment 7 Dan Warner 2009-03-22 20:48:33 UTC
cat /usr/lib/pkgconfig/libpanelapplet-2.0.pc

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include

Name: libpanel-applet-2
Description: libpanel-applet-2
Requires: gconf-2.0 gtk+-2.0 libbonoboui-2.0
Version: 2.25.92
Libs: -L${libdir} -lpanel-applet-2
Cflags: -I${includedir}/panel-2.0

pkg-config libgnomeui-2.0 --cflags

-DORBIT2=1 -pthread -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/gtk-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12  


I suppose since gnome-extra/fast-user-switch-applet is not required in gnome-panel 2.25.0 onwards that is why it wont compile?
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-03-22 21:34:59 UTC
(In reply to comment #7)
> Requires: gconf-2.0 gtk+-2.0 libbonoboui-2.0 <<<< there's no libgnomeui-2.0

So I think fusa needs to add libgnomeui to its own pkg-config dep list, as it probably used to rely on libgnome-applet providing it.

@gnome, or maybe fusa needs a revbump?

> I suppose since gnome-extra/fast-user-switch-applet is not required in
> gnome-panel 2.25.0 onwards that is why it wont compile?

That's probably another issue

Thanks
Comment 9 Dan Warner 2009-03-22 22:01:35 UTC
Seems related to http://bugs.gentoo.org/show_bug.cgi?id=263417
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-30 09:09:53 UTC
most probably similar to the issue we had with nautilus-open-terminal, missing pkg-config checks.
Comment 11 Eric Sandall 2009-04-14 23:18:01 UTC
I've filed an upstream bug at http://bugzilla.gnome.org/show_bug.cgi?id=578994 for our identical bug at http://bugs.sourcemage.org/show_bug.cgi?id=15172
Comment 12 peng shao 2009-05-26 13:23:49 UTC
I met exactly the same problem during a clean install :(
Comment 13 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-26 16:33:14 UTC
Created attachment 192512 [details, diff]
Use pkgconfig to get correct -I flags
Comment 14 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-26 20:45:04 UTC
Fixed without a bump.  Thanks for the patch.