error making utouch-geis without XI2.1

Bug #741404 reported by Serge Buglakov
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Geis
Fix Released
Low
Stephen M. Webb
Frugalware Linux
New
Undecided
Unassigned

Bug Description

with version 2.0.4 and higher I can't compile utouch-geis.

In file included from ../../../libutouch-geis/geis_backend.h:24:0,
                 from geis_xcb_backend.h:24,
                 from geis_xcb_backend.c:21:
../../../include/geis/geis.h:696:4: warning: declaration does not declare anything
geis_xcb_backend.c: In function '_map_xi2_mode_to_geis_device_attrs':
geis_xcb_backend.c:113:19: error: 'XIDirectTouch' undeclared (first use in this function)
geis_xcb_backend.c:113:19: note: each undeclared identifier is reported only once for each function it appears in
geis_xcb_backend.c:128:19: error: 'XIIndependentPointer' undeclared (first use in this function)
geis_xcb_backend.c: In function '_report_an_xcb_device':
geis_xcb_backend.c:730:22: error: 'XITouchClass' undeclared (first use in this function)
geis_xcb_backend.c:732:7: error: 'XITouchClassInfo' undeclared (first use in this function)
geis_xcb_backend.c:732:25: error: 'v' undeclared (first use in this function)
geis_xcb_backend.c:732:48: error: expected expression before ')' token
geis_xcb_backend.c:750:27: error: 'XITouchValuatorClass' undeclared (first use in this function)
geis_xcb_backend.c:755:7: error: 'XITouchValuatorClassInfo' undeclared (first use in this function)
geis_xcb_backend.c:755:64: error: expected expression before ')' token
geis_xcb_backend.c: In function '_report_xcb_devices':
geis_xcb_backend.c:832:24: error: 'XITouchClass' undeclared (first use in this function)

My OS is Archlinux.

[rd@rdbook ~]$ pacman -Q | grep utouch
utouch-evemu 1.0.5-1
utouch-frame 1.1.2-1
utouch-geis 2.0.3-1
utouch-grail 1.0.20-2
[rd@rdbook ~]$ pacman -Q libxi
libxi 1.4.2-1

What's wrong? :(

Related branches

Stephen M. Webb (bregma)
Changed in utouch-geis:
status: New → Triaged
Revision history for this message
Stephen M. Webb (bregma) wrote :

The problem is your version of the libxi-dev package does not contain XI2.1 support.

The use of XI2.1 in the XCB back end of libutouch-geis is isolated to device detection functions. It is simple enough to make those code lines optional on the presence of XI2.1, at the price of a lack of hardware detection. See the attached patch.

The lack of proper device detection can have serious consequences going forward, since the interpretation of gestures can vary according to the nature of the originating device.

Changed in utouch-geis:
importance: Undecided → Low
Revision history for this message
Serge Buglakov (registration-e) wrote :

thanx a lot!
can you also help me with this error?

[rd@rdbook ~]$ geistest
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 6 requests (6 known processed) with 0 events remaining.

Revision history for this message
Serge Buglakov (registration-e) wrote :

I can gather any info, e.g. with gdb, I just want to get it working

Revision history for this message
Chase Douglas (chasedouglas) wrote :

Hi Serge,

If I had to guess, your X server probably does not have the XInput 2.1 patches that we have added to Ubuntu's package. The patches are a prototype of the XInput 2.1 work, but we hope to merge a full XInput 2.1 implementation to upstream X.org soon.

Stephen M. Webb (bregma)
Changed in utouch-geis:
milestone: none → 2.0.11
assignee: nobody → Stephen M. Webb (bregma)
Stephen M. Webb (bregma)
Changed in utouch-geis:
status: Triaged → Fix Committed
Stephen M. Webb (bregma)
Changed in utouch-geis:
status: Fix Committed → Fix Released
Revision history for this message
Serge Buglakov (registration-e) wrote :

okay, now error raising during compiling grail_gestures.c lines 139-145:
>> error: 'GRAIL_TYPE_TOUCH1' undeclared here (not in a function)
I have latest utouch-grail (v1.0.20).
p.s. Should I post this issue in other bug or I can just correct caption of this one?

Also, can you say when the X2.1 will be commited to the upstream? eg milestone

Revision history for this message
Devil505 (devil505) wrote :
Download full text (13.4 KiB)

FYI, with 2.0.11, I still have the error:

usermod : le groupe << ccache >> n'existe pas
==> Entering fakeroot environment
==> Making package: utouch-geis 2.0.11-1 (Thu May 5 19:03:35 CEST 2011)
==> Checking Runtime Dependencies...

==> Missing Dependencies:
==>
requires: utouch-grail>=1.0.19
requires: libxi
requires: dbus
==>
==> Installing missing dependencies...
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: utouch-evemu-1.0.5-1 mtdev-1.1.0-1 utouch-frame-1.1.2-1
         utouch-grail-1.0.20-1 xproto-7.0.21-1 libxdmcp-1.1.0-1 xtrans-1.2.6-1
         kbproto-1.0.5-1 libxau-1.0.6-1 libpthread-stubs-0.3-1 xcb-proto-1.6-3
         libgpg-error-1.10-1 libgcrypt-1.4.6-1 libxslt-1.1.26-3 libxcb-1.7-1
         libx11-1.4.3-1 xextproto-7.2.0-1 libxext-1.2.0-1 inputproto-2.0.1-1
         libxi-1.4.2-1 dbus-1.4.6-2

Total Package Size: 4.3 MB

Total Uncompressed Package Size: 21.5 MB
checking package integrity... done.
checking for file conflicts... done.
installing utouch-evemu... done.
installing mtdev... done.
installing utouch-frame... done.
installing utouch-grail... done.
installing xproto... done.
installing libxdmcp... done.
installing xtrans... done.
installing kbproto... done.
installing libxau... done.
installing libpthread-stubs... done.
installing xcb-proto... done.
installing libgpg-error... done.
installing libgcrypt... done.
installing libxslt... done.
installing libxcb... done.
installing libx11... done.
installing xextproto... done.
installing libxext... done.
installing inputproto... done.
installing libxi... done.
installing dbus... done.

==> Checking Buildtime Dependencies...
==> Estimated build time: 10 seconds
==> Retrieving Sources...
   -> Using local copy of utouch-geis-2.0.11.tar.gz
==> Validating source files with SHA1sums
    utouch-geis-2.0.11.tar.gz ... Passed
==> Extracting Sources...
==> tar --use-compress-program=gzip -xf utouch-geis-2.0.11.tar.gz
==> WARNING: The fst user is not in the ccache group, ccache will be disabled.
==> Starting build()...
==> Going to the source directory...
==> Configuring...
==> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --docdir=/usr/share/doc/utouch-geis-2.0.11 --mandir=/usr/share/man --build=i686-frugalware-linux
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a Python interpreter with version ...

Revision history for this message
Serge Buglakov (registration-e) wrote :

yeah, I have same error too, but this is already not geis_xcb_backend.c.
okay, there is too new many error info to create new bug. I'll change caption.

summary: - error making geis_xcb_backend.c
+ error making utouch-geis without XI2.1
Changed in utouch-geis:
status: Fix Released → New
Stephen M. Webb (bregma)
Changed in utouch-geis:
status: New → Fix Committed
milestone: 2.0.11 → 2.1.1
Stephen M. Webb (bregma)
Changed in utouch-geis:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.