Using a custom 2.4.19 kernel (for the latest ACPI
support), gcc-3.2.7, make-3.79.1-14 and Gnome 2 under
RH 8, I receive the following error after executing the
command make. Yes, I gave the proper RH prefix=/usr
flag upon configuring.
I am guessing this is a gcc-3.2.x problem and that
compiling battstat has not been tested against this
version. Can anyone confirm this and offer an
alternative configuration that I might be able to
switch to that will enable me to compile the battstat
src with latest ACPI capabilities?
Or am I doing something else wrong?
Thanks,
Andrew...
cc1: warning: changing search order for system
directory "/usr/include"
cc1: warning: as it has already been specified as a
non-system directory
properties.c:53:27: applet-widget.h: No such file or
directory
properties.c:54:28: status-docklet.h: No such file or
directory
In file included from properties.c:56:
battstat.h:45: parse error before "GnomeClient"
battstat.h:45: warning: no semicolon at end of struct
or union
battstat.h:74: parse error before '*' token
battstat.h:74: warning: type defaults to `int' in
declaration of `prop_win'
battstat.h:74: warning: data definition has no type or
storage class
battstat.h:115: parse error before "orienttype"
battstat.h:115: warning: type defaults to `int' in
declaration of `orienttype'
battstat.h:115: warning: data definition has no type or
storage class
battstat.h:135: parse error before '}' token
battstat.h:135: warning: type defaults to `int' in
declaration of `ProgressData'battstat.h:135: warning:
data definition has no type or storage class
battstat.h:140: conflicting types for `statusmask'
battstat.h:85: previous declaration of `statusmask'
battstat.h:146: parse error before '*' token
battstat.h:152: parse error before '*' token
battstat.h:155: parse error before '*' token
battstat.h:158: parse error before "PanelOrientType"
battstat.h:161: parse error before '*' token
battstat.h:162: parse error before '*' token
battstat.h:164: parse error before '*' token
properties.c: In function `prop_apply':
properties.c:71: `battstat' undeclared (first use in
this function)
properties.c:71: (Each undeclared identifier is
reported only once
properties.c:71: for each function it appears in.)
properties.c:82: warning: implicit declaration of
function `GTK_TOGGLE_BUTTON'
properties.c:82: invalid type argument of `->'
properties.c:85: warning: implicit declaration of
function `gnome_font_picker_get_font_name'
properties.c:85: warning: implicit declaration of
function `GNOME_FONT_PICKER'
properties.c:95: invalid type argument of `->'
properties.c:96: invalid type argument of `->'
properties.c💯 invalid type argument of `->'
properties.c:101: invalid type argument of `->'
properties.c:102: invalid type argument of `->'
properties.c:103: invalid type argument of `->'
properties.c:115: warning: implicit declaration of
function `applet_widget_callback_set_sensitive'
properties.c:115: warning: implicit declaration of
function `APPLET_WIDGET'
properties.c:118: warning: implicit declaration of
function `gnome_warning_dialog'
properties.c:122: warning: implicit declaration of
function `_'
properties.c:131: warning: implicit declaration of
function `applet_widget_sync_config'
properties.c: At top level:
properties.c:148: parse error before '*' token
properties.c: In function `prop_cb':
properties.c:150: `battstat' undeclared (first use in
this function)
properties.c:150: `data' undeclared (first use in this
function)
properties.c:185: warning: implicit declaration of
function `GNOME_PROPERTY_BOX'properties.c:188: warning:
implicit declaration of function `gnome_dialog_close_hides'
properties.c:188: warning: implicit declaration of
function `GNOME_DIALOG'
properties.c:194: warning: implicit declaration of
function `gtk_signal_connect'properties.c:227: warning:
implicit declaration of function `gtk_pixmap_new'
properties.c:230: warning: implicit declaration of
function `gtk_box_pack_start'properties.c:230: warning:
implicit declaration of function `GTK_BOX'
properties.c:238: warning: implicit declaration of
function `gtk_range_get_adjustment'
properties.c:238: warning: implicit declaration of
function `GTK_RANGE'
properties.c:238: warning: comparison between pointer
and integer
properties.c:249: warning: implicit declaration of
function `gtk_toggle_button_set_state'
properties.c:275: warning: implicit declaration of
function `gnome_font_picker_set_font_name'
properties.c:290: warning: implicit declaration of
function `gtk_toggle_button_set_active'
properties.c:329: warning: assignment makes pointer
from integer without a cast
properties.c:330: warning: implicit declaration of
function `gtk_table_attach'
properties.c:330: warning: implicit declaration of
function `GTK_TABLE'
properties.c:334: warning: assignment makes pointer
from integer without a cast
make[2]: *** [properties.o] Error 1
make[2]: Leaving directory
`/home/awaite/battstat_applet-2.0.13/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/awaite/battstat_applet-2.0.13'
make: *** [all-recursive-am] Error 2