Re: halp?



The missing definitions are found in the kernel headers. For example,

        <linux/input.h>
        
        /*
         * Switch events
         */
        
        #define SW_LID      0x00  /* set = lid shut */
        #define SW_TABLET_MODE    0x01  /* set = tablet mode */
        #define SW_HEADPHONE_INSERT 0x02  /* set = inserted */
        #define SW_MAX      0x0f


Might you be missing some kernel header packages?


-Joseph

========================================================================
On Tue, 2007-06-19 at 15:43 +0200, Dan Bolser wrote:
> 
> 
> On 19/06/07, Joseph Sacco <jsacco gnome org> wrote:
>         Dan,
>         
>         What version of the kernel are you running?  The 0.5.9 version
>         of HAL
>         requires a fairly new version of the 2.6.x kernel.
>         
>         -Joseph
> 
> Hey Joe, 
> 
> I am running "2.6.16.1.i686.1 #23 SMP" / "i686 GNU/Linux"
> 
> I read that it can be a dbus / hal version matching problem? 
> 
> I am trying garnome-2.19.3.
> 
> 
> Dan.
>  
> 
>         ==========================================================================
>         
>         On Tue, 2007-06-19 at 14:30 +0200, Dan Bolser wrote:
>         > make[11]: Entering directory
>         > `/tmp/garnome-2.19.3/freedesktop/hal/work/main.d/hal-
>         0.5.9/hald/linux'
>         > Making all in probing
>         > make[12]: Entering directory
>         >
>         `/tmp/garnome-2.19.3/freedesktop/hal/work/main.d/hal-0.5.9/hald/linux/probing'
>         > gcc -DHAVE_CONFIG_H -I. -I../../.. -DPACKAGE_SYSCONF_DIR= 
>         > \""/project/StruPPi/bolser/build/etc"\" -DPACKAGE_DATA_DIR=
>         \""/project
>         > /StruPPi/bolser/build/share"\" -DPACKAGE_BIN_DIR=
>         > \""/project/StruPPi/bolser/build/bin"\"
>         -DPACKAGE_LOCALE_DIR= 
>         > \""/project/StruP
>         > Pi/bolser/build/share/locale"\" -DPACKAGE_LOCALSTATEDIR=
>         > \""/project/StruPPi/bolser/build/var"\" -I../../..
>         > -I/project/StruPPi/b
>         > olser/build/include/glib-2.0
>         -I/project/StruPPi/bolser/build/lib/glib-
>         > 2.0/include -I/project/StruPPi/bolser/build/include/dbus-
>         > 1.0 -I/project/StruPPi/bolser/build/lib/dbus-1.0/include
>         > -I/project/StruPPi/bolser/build/include/dbus- 1.0
>         -I/project/StruPPi/
>         > bolser/build/lib/dbus-1.0/include
>         > -I/project/StruPPi/bolser/build/include      -g -O2 -Wall
>         > -Wchar-subscripts -Wmissing-decla
>         > rations -Wnested-externs -Wpointer-arith -Wcast-align
>         -Wsign-compare 
>         > -MT probe-input.o -MD -MP -MF .deps/probe-input.Tpo -c -o
>         > probe-input.o probe-input.c
>         > probe-input.c: In function 'main':
>         > probe-input.c :61: error: 'SW_MAX' undeclared (first use in
>         this 
>         > function)
>         > probe-input.c:61: error: (Each undeclared identifier is
>         reported only
>         > once
>         > probe-input.c:61: error: for each function it appears in.)
>         > probe-input.c :74: error: 'SW_LID' undeclared (first use in
>         this 
>         > function)
>         > probe-input.c:76: error: 'SW_TABLET_MODE' undeclared (first
>         use in
>         > this function)
>         > probe-input.c:78: error: 'SW_HEADPHONE_INSERT' undeclared
>         (first use
>         > in this function) 
>         > probe-input.c:102: warning: implicit declaration of function
>         > 'EVIOCGSW'
>         > probe-input.c:102: warning: nested extern declaration of
>         'EVIOCGSW'
>         > probe-input.c:61: warning: unused variable 'bitmask' 
>         > make[12]: *** [probe-input.o] Error 1
>         > make[12]: Leaving directory
>         >
>         `/tmp/garnome-2.19.3/freedesktop/hal/work/main.d/hal-0.5.9/hald/linux/probing'
>         > make[11]: *** [all-recursive] Error 1
>         > make[11]: Leaving directory `/tmp/garnome-
>         > 2.19.3/freedesktop/hal/work/main.d/hal-0.5.9/hald/linux'
>         > make[10]: *** [all-recursive] Error 1
>         > make[10]: Leaving directory
>         > `/tmp/garnome-
>         2.19.3/freedesktop/hal/work/main.d/hal-0.5.9/hald'
>         >
>         >
>         > --
>         > hello
>         --
>         jsacco [at] gnome [dot] org
>         
>         --
>         garnome-list mailing list
>         garnome-list gnome org
>         http://mail.gnome.org/mailman/listinfo/garnome-list
> 
> 
> 
> -- 
> hello
-- 
jsacco [at] gnome [dot] org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]