Re: halp?



On 20/06/07, Joseph Sacco <jsacco gnome org> wrote:
Dan,

The way you hack around something like this is to manually add the
missing macro definition to the HAL source file that wants to use it.
For example,

     #define HID_MAX_USAGES 1024

OK, I added the above line to
"work/main.d/hal-0.5.8.1/hald/linux/probing/probe-hiddev.c", which
seems to fix something... however I now get the following error...

make[6]: Entering directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1/hald/linux/probing'
/bin/sh ../../../libtool --tag=CC --mode=link cc
-I/project/StruPPi/bolser/build/include
-L/project/StruPPi/bolser/build/lib -O2 -pipe -Wall -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer
-arith -Wcast-align -Wsign-compare  -Wl,--export-dynamic
-L/project/StruPPi/bolser/build/lib -o hald-probe-volume
probe-volume.o linux_dvd_rw_utils.o logger.o ../../../libhal/libhal.la
../../../partutil/libpa
rtutil.la -L/project/StruPPi/bolser/build/lib -ldbus-glib-1 -ldbus-1
-lgobject-2.0 -lglib-2.0 -liconv   -L/project/StruPPi/bolser/build/lib
-lvolume_id
cc -I/project/StruPPi/bolser/build/include -O2 -pipe -Wall
-Wchar-subscripts -Wmissing-declarations -Wnested-externs
-Wpointer-arith -Wcast-align -Wsign-compare -Wl,--export-dynamic -o
.libs/hald-probe-volume
probe-volume.o linux_dvd_rw_utils.o logger.o
-L/project/StruPPi/bolser/build/lib ../../../libhal/.libs/libhal.so
../../../partutil/.libs/libpartutil.a
/project/StruPPi/bolser/build/lib/libdbus-glib-1.so -lnsl
/project/StruPPi/bolser/build/lib/libdbus-1.so
/project/StruPPi/bolser/build/lib/libgobject-2.0.so
/project/StruPPi/bolser/build/lib/libglib-2.0.so /usr/lib/libiconv.so
-lvolume_id -Wl,--rpath -Wl,/project/St
ruPPi/bolser/build/lib
collect2: ld returned 1 exit status
make[6]: *** [hald-probe-volume] Error 1
make[6]: Leaving directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1/hald/linux/probing'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1/hald/linux'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1/hald'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1/hald'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.8.1'
make: *** [build-work/main.d/hal-0.5.8.1/Makefile] Error 2


collect2: ld returned 1 exit status ?

Thanks for all the support, its good to see that this isn't just me
being silly... I seem to remember that I got this working previously
though, but I forget how :(

Cheers,

Dan.





-Joseph

=========================================================
On Wed, 2007-06-20 at 12:13 +0200, Dan Bolser wrote:
> On 19/06/07, Joseph Sacco <jsacco gnome org> wrote:
> > Dan,
> >
> > Can you fake it? If by "it" you mean the absence of kernel header files,
> > the answer is "no".  You will need to install the kernel header files
> > for your distro.
> >
> > I don't believe that the 2.6.16.1 kernel is new enough to support the
> > recent changes in HAL.
> >
> > What to do...
> >
> > There are choices:
> > * update your kernel
> > [I believe 2.6.17.1 will work]
> >
> > * retreat to the previous versions of hal and dbus.
>
> I found that hal-0.5.7.1 had sufficiently low 'Linux kernel'
> dependencies for my system. From;
>
> http://lists.freedesktop.org/archives/hal/2006-February/004622.html
>
>
> > Requirements for HAL 0.5.7 "Dead as Dillinger."
> >
> >  - Linux kernel     >= 2.6.15
>
>
> However, my build still fails with the following errors;
>
> /tmp/garnome-2.18.2/freedesktop/hal$ make install
> [===== NOW BUILDING:    hal-0.5.7.1     =====]
>         [fetch] complete for hal.
>         [checksum] complete for hal.
>         [extract] complete for hal.
>         [patch] complete for hal.
>         [fixup] complete for hal.
>         [configure] complete for hal.
>  ==> Running make in work/main.d/hal-0.5.7.1
> make[1]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1'
> make  all-recursive
> make[2]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1'
> Making all in volume_id
> make[3]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/volume_id'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/volume_id'
> Making all in libhal
> make[3]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/libhal'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/libhal'
> Making all in libhal-storage
> make[3]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/libhal-storage'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/libhal-storage'
> Making all in hald
> make[3]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald'
> make  all-recursive
> make[4]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald'
> Making all in dummy
> make[5]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald/dummy'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald/dummy'
> Making all in linux2
> make[5]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald/linux2'
> Making all in probing
> make[6]: Entering directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald/linux2/probing'
> if cc -DHAVE_CONFIG_H -I. -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/StruPPi/bolser/build/share/locale"\"
> -DPACKAGE_LOCALSTATEDIR=\""/project/StruPPi/bolser/build/var"\"
> -I../../.. -I/project/StruPPi/bolser/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
> -I/project/StruPPi/bolser/build/include
> -L/project/StruPPi/bolser/build/lib -O2 -pipe -Wall -Wchar-subscripts
> -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
> -Wsign-compare -MT probe-hiddev.o -MD -MP -MF ".deps/probe-hiddev.Tpo"
> -c -o probe-hiddev.o probe-hiddev.c; \
> then mv -f ".deps/probe-hiddev.Tpo" ".deps/probe-hiddev.Po"; else rm
> -f ".deps/probe-hiddev.Tpo"; exit 1; fi
> In file included from probe-hiddev.c:42:
> /usr/include/linux/hiddev.h:133: error: `HID_MAX_USAGES' undeclared
> here (not in a function)
> make[6]: *** [probe-hiddev.o] Error 1
> make[6]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald/linux2/probing'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald/linux2'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1/hald'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/tmp/garnome-2.18.2/freedesktop/hal/work/main.d/hal-0.5.7.1'
> make: *** [build-work/main.d/hal-0.5.7.1/Makefile] Error 2
>
>
> I see that this problem isn't new (for example hits to garnome 2.12),
> however, I don't see a way to fix this given that I don't have root.
>
> I don't really need hal, but a lot of stuff seems to depend on it
> being around. Can I try removing some deps?
>
> Dan.
>
>
>
> > -Joseph
> >
> > =====================================================================
> >
> >
> > On Tue, 2007-06-19 at 16:57 +0200, Dan Bolser wrote:
> > >
> > >
> > > On 19/06/07, Joseph Sacco <jsacco gnome org> wrote:
> > >         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?
> > >
> > > Yeah, I can't find that file on my system... can I fake it?
> > >
> > >
> > >
> > >         -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
> > >
> > >         --
> > >         garnome-list mailing list
> > >         garnome-list gnome org
> > >         http://mail.gnome.org/mailman/listinfo/garnome-list
> > >
> > >
> > >
> > > --
> > > hello
> > --
> > jsacco [at] gnome [dot] org
> >
> > --
> > garnome-list mailing list
> > garnome-list gnome org
> > http://mail.gnome.org/mailman/listinfo/garnome-list
> >
>
>
>
--
jsacco [at] gnome [dot] org

--
garnome-list mailing list
garnome-list gnome org
http://mail.gnome.org/mailman/listinfo/garnome-list



--
hello



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