While emerging gnome-2.6.0-rc3 with all related hard masks unmasked, gnome-applets-2.6.0 fails to compile. Here is the last gcc command followed by emerge's usual failure rigamarole. gcc -DHAVE_CONFIG_H -I. -I. -I.. -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/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/panel-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../screen-exec -DDATA_DIR=\"/usr/share\" -DGLADE_DIR=\"/usr/share/battstat_applet\" -DG_LOG_DOMAIN=\"battstat_applet\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -O3 -mcpu=7400 -maltivec -mabi=altivec -fomit-frame-pointer -pipe -c `test -f 'properties.c' || echo './'`properties.c properties.c:36:17: apm.h: No such file or directory properties.c: In function `prop_cb': properties.c:352: invalid use of undefined type `struct apm_info' make[3]: *** [properties.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/gnome-applets-2.6.0/work/gnome-applets-2.6.0/battstat' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gnome-applets-2.6.0/work/gnome-applets-2.6.0/battstat' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-applets-2.6.0/work/gnome-applets-2.6.0' make: *** [all] Error 2 !!! ERROR: gnome-base/gnome-applets-2.6.0 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure Reproducible: Always Steps to Reproduce: 1. Unmask gnome-2.6.0-rc3 and all dependent hard masks in /etc/portage/package.unmask 2. ACCEPT_KEYWORDS="~ppc" emerge gnome Actual Results: gcc barfed. Expected Results: The software should have compiled ;-) Portage 2.0.50-r1 (default-ppc-2004.0, gcc-3.2.3, glibc-2.3.3_pre20040207-r0, 2.6.1-benh1) ================================================================= System uname: 2.6.1-benh1 ppc 7410, altivec supported Gentoo Base System version 1.4.3.13p1 distcc[20114] (dcc_trace_version) distcc 2.12.1 powerpc-unknown-linux-gnu; built Mar 10 2004 15:41:55 [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=7400 -maltivec -mabi=altivec -fomit-frame-pointer -pipe" CHOST="powerpc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=7400 -maltivec -mabi=altivec -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X alsa arts berkdb cdr cups dvd esd flac foomaticdb gdbm gif gnome gnome-libs gpm gtk gtk2 imlib jpeg kde libwww mitshm motif mozilla nls oggvorbis opengl oss pam perl png ppc python qt readline samba sdl slang ssl tcpd tetex truetype xv"
likely ppc
ppc doesn't have apm (apm is just for x86) Emerging now to see if I can reproduce the issue
I worked around this by setting build_battstat...=yes to =no in the configure. This also made gnome-applets compile with 2.6 headers.
Created attachment 28223 [details, diff] disable battstat_applet for ppc patch you'll also need to add autoconf; automake in the gnome-applet ebuild. there doesn't seem to be a point in installing battstat_applet on ppc since it only supprots apm (and maybe acpi)
Are you sure battstat requires apm and not pmud or some such? The 2.4 applet works fine on my Apple laptops and if apm is x86 only then older versions of the applet must not need it. I hope the applet wasn't rewritten that doesn't work on my PowerBooks and iBook ;-( I will test the patch and see how it goes. Thanks.
Iirc there is an apm emulation layer available in the kernel for at least PowerBooks.
I succeeded in disabling the battstat applet by applying Alastair Tse's patch and rerunning autoconf. I do, in fact, have apm emulation enabled in my kernel so shouldn't this applet work? I noticed that the error occurred in importing apm.h. Perhaps because the ppc apm emulation is part of the kernel the header files are in a different location than someone running apmd on an x86 box. Maybe the compiler isn't looking for the headers in the right place. Can someone check this? The battstat applet includes the apm headers in the apmlib subdirectory. I tried importing those and the applet compiled but failed with link errors. Thanks.
hi. battstat_applet worked fine for me on ppc in 2.5.2 there was a change in the battstat_applet section in configure.in somewhere between 2.5.2 and 2.6.0 as the bonsai frontend of gnome.org is still down, i couldnt check when and why this happened. (i will try to find out in the cvs history) i created a simple patch for the configure.in file which reenables battstat_applet on all linux platforms. this is maybe not the perfect way to go as there may be other linux platforms that dont support APM at all. (sparc,mips)
Created attachment 28524 [details, diff] reenable battstat_applet on all linux platforms
Ok, I just emerged gnome 2.6 on an Aluminium PowerBook G4 15" 1.25GHz and the build failed at the same spot while compiling the battstat applet. I applied Christoph's patch, reran autoconf, and the battstat applet compiled and works! So, yeah, the patch works. Hopefully the ebuild can be fixed without it breaking on other platforms.
Sorry, I can't confirm any of the solutions. gnome-applets still fail to compile at the battstat-applet on my iBook. But the error is slightly different (with patch by liquidx applied): battstat_applet.o(.text+0x178): In function `apm_readinfo': : undefined reference to `apm_read' battstat_applet.o(.text+0x2b84): In function `battstat_applet_fill': : undefined reference to `apm_exists' collect2: ld returned 1 exit status make[3]: *** [battstat-applet-2] error 1 make[3]: Leaving directory `/var/tmp/portage/gnome-applets-2.6.0/work/gnome-applets-2.6.0/battstat' make[2]: *** [all-recursive] error 1 make[2]: Leaving directory `/var/tmp/portage/gnome-applets-2.6.0/work/gnome-applets-2.6.0/battstat' make[1]: *** [all-recursive] error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-applets-2.6.0/work/gnome-applets-2.6.0' make: *** [all] error 2
reenabling apm on battstat is the right way to solve the problem, I'm sorry to be in late but I was hoping that upstream come with a fix before, I'm about to commit some fix and workaround for gnome-2.6 in this hours.
Solved