After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 51973 - with XINPUT_GXI defined gdk.c will not compile
with XINPUT_GXI defined gdk.c will not compile
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
1.2.x
Other Solaris
: Normal blocker
: ---
Assigned To: gtk-bugs
gtk-bugs
: 51832 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-03-11 01:09 UTC by ra schmied
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ra schmied 2001-03-11 01:09:08 UTC
with XINPUT_GXI defined gdk.c will not compile because at line 340
equal_pos is not declared in the line:
	gdk_input_gxid_port = atoi (equal_pos + 1);

1) my use of XINPUT_GXI may be incorrect for my system!?
2) my very fast fix and totally untested workaround is to change
   line 340 of gdk.c as follows:
	gdk_input_gxid_port = atoi (option);
   this seems consistent with the code in the other #ifdef blocks
   in this function call (gdk_init_check).

i'd appreciate a quick email ras@acm.org note if my selection of
XINPUT_GXI is the correct choice for a stock solaris 2.5 cde 1.0.x

thanks

hope the work-around is corrent and helpful

ras
Comment 1 Owen Taylor 2001-03-11 17:13:32 UTC
The workaround is the correct fix, however I really
don't expect --with-xinput=gxi to work. I've never
had a succesful report of anybody using GTK+ XInput
support on anything but XFree; the gxid daemon
was developed on XFree before the extensions used
by --with-xinput=xfree were added.

Comment 2 Owen Taylor 2001-03-11 17:14:07 UTC
*** Bug 51832 has been marked as a duplicate of this bug. ***
Comment 3 Owen Taylor 2001-03-15 04:40:05 UTC
Fixed in CVS, will be in 1.2.10.