Bug 506656 - X11/extensions/XTest.h cannot be included
Summary: X11/extensions/XTest.h cannot be included
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-proto-devel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 507328 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-18 07:48 UTC by Mamoru TASAKA
Modified: 2009-07-22 20:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-22 20:11:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mamoru TASAKA 2009-06-18 07:48:08 UTC
Description of problem:
Compiling the following code:
----------------------------------------------------
#include <stdio.h>
#include <X11/extensions/XTest.h>

int foo(void){
	return XTestQueryExtension(NULL, NULL, NULL, NULL, NULL);
}
----------------------------------------------------
fails like:
$ LANG=C gcc -c test.c -Wall 
In file included from test.c:2:
/usr/include/X11/extensions/XTest.h:50:35: error: X11/extensions/XInput.h: No such file or directory
In file included from test.c:2:
/usr/include/X11/extensions/XTest.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XTestQueryExtension'
/usr/include/X11/extensions/XTest.h:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XTestCompareCursorWithWindow'
/usr/include/X11/extensions/XTest.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XTestCompareCurrentCursorWithWindow'
/usr/include/X11/extensions/XTest.h:74: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:81: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:88: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:96: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:103: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:113: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:123: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:132: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:142: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:152: error: expected ')' before '*' token
/usr/include/X11/extensions/XTest.h:156: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XTestDiscard'
test.c: In function 'foo':
test.c:5: warning: implicit declaration of function 'XTestQueryExtension'

Version-Release number of selected component (if applicable):
xorg-x11-proto-devel-7.4-17.fc12.noarch

How reproducible:
100%

Steps to Reproduce:
1. See above
2.
3.
  
Actual results:
With -17.fc12 this does not compile.

Expected results:
With -15.fc12 this compiles.

Comment 1 Rex Dieter 2009-06-19 03:44:24 UTC
confirmed, induces build failures, ie,
http://koji.fedoraproject.org/koji/buildinfo?buildID=107008

Comment 2 Rex Dieter 2009-06-22 13:54:04 UTC
*** Bug 507328 has been marked as a duplicate of this bug. ***

Comment 3 Rex Dieter 2009-06-22 13:57:40 UTC
According to,
https://www.redhat.com/archives/fedora-devel-list/2009-June/msg01764.html

XInput.h has moved from xorg-x11-proto-devel to libXi, so shouldn't

xorg-x11-proto-devel
Requires: libXi-devel
?

Or is something else expected?

Comment 4 Rex Dieter 2009-06-22 15:06:20 UTC
My previous kdebase-workspace build failure now ran to completion, but I'm explicitly pulling in libXi-devel somewhere (via qt-devel), so I'm not sure if *this* particular issue is addressed yet or not.

Comment 5 Adam Jackson 2009-07-22 20:11:48 UTC
This should be fixed in rawhide now.  That these headers were ever in -proto-devel at all was a mistake.


Note You need to log in before you can comment on or make changes to this bug.