Experimental Physics and Industrial Control System
Hi Chris,
On Friday 13 February 2009 15:46:02 Dropp, Christopher wrote:
>
> I get the following error when trying to compile medm 3.1.3 on fedora 10:
>
> ../utils.c: In function ?parseAndExecCommand?:
> ../utils.c:4288: warning: the address of ?command? will always evaluate as
> ?true? ../utils.c:4763:2: error: #error getEventType only works for
> LASTEvent=35 (See X.h)
>
> Then it exits with 9 make statements. Has anyone seen this or tried using
> medm 3.1.3 on f10?
Yes, the X.org guys added a new event type, for the first time since almost
never. Apply the attached patch to the medm/utils.c file to get something
that builds on both old and new versions of X11.
- Andrew
--
The best FOSS code is written to be read by other humans -- Harold Welte
Index: utils.c
===================================================================
RCS file: /net/phoebus/epicsmgr/cvsroot/epics/extensions/src/medm/medm/utils.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -d -u -b -B -p -r1.134 -r1.135
--- utils.c 18 Nov 2008 17:52:32 -0000 1.134
+++ utils.c 4 Feb 2009 18:11:41 -0000 1.135
@@ -4759,8 +4759,8 @@ void printWindowAttributes(Display *disp
char *getEventName(int type)
{
-#if LASTEvent != 35
-#error getEventType only works for LASTEvent=35 (See X.h)
+#if ((LASTEvent < 35) || (LASTEvent > 36))
+#error getEventType only works for LASTEvent=35 or 36 (See X.h)
#endif
/* These types are from X11/X.h */
static char *eventNames[LASTEvent+2]={
@@ -4799,6 +4799,9 @@ char *getEventName(int type)
"ColormapNotify",
"ClientMessage",
"MappingNotify",
+#if (LASTEvent == 36)
+ "GenericEvent",
+#endif
"LASTEvent",
"Unknown"
};
- Replies:
- RE: compile error with medm 3.1.3 on fedora 10 Dropp, Christopher
- References:
- compile error with medm 3.1.3 on fedora 10 Dropp, Christopher
- Navigate by Date:
- Prev:
RE: compile error with medm 3.1.3 on fedora 10 Mark Rivers
- Next:
Re: compile error with medm 3.1.3 on fedora 10 J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: compile error with medm 3.1.3 on fedora 10 Mark Rivers
- Next:
RE: compile error with medm 3.1.3 on fedora 10 Dropp, Christopher
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024