EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: compile error with medm 3.1.3 on fedora 10
From: "J. Lewis Muir" <[email protected]>
To: "Dropp, Christopher" <[email protected]>
Cc: [email protected]
Date: Fri, 13 Feb 2009 17:10:03 -0500
On 2/13/09 4:46 PM, Dropp, Christopher wrote:
> Greetings,
>
> 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?

Hi, Chris.

I've seen something similar on Mac OS X.

When building MEDM 3.1.3, it failed for me with the following error:

----
/usr/bin/cc -c               -DUNIX  -Ddarwin   -ansi   -O3 -g   -Wall
   -DSCIPLOT -DMOTIF -DEDITRES     -fno-common  -I. -I../O.Common -I.
-I.. -I../../../../include/os/Darwin -I../../../../include
-I../../../../../base/include/os/Darwin -I../../../../../base/include
-I../../../../include      -I../../printUtils -I../../xc -I/opt3/include
-I/usr/X11R6/include/X11  -I/opt3/include   ../utils.c
../utils.c:4763:2: error: #error getEventType only works for
LASTEvent=35 (See X.h)
make[4]: *** [utils.o] Error 1
make[3]: *** [install.darwin-x86] Error 2
make[2]: *** [medm.install] Error 2
make[1]: *** [medm.install] Error 2
make: *** [src.install] Error 2
----

Upon investigation, this appears to be because my X.h supports the X
Generic Event extension (XGE) <http://www.x.org/wiki/Development/
Documentation/XGE>.  If it's helpful, here's a commit against an
xorg/proto/x11proto Git tree showing the change to X.h:

  http://cgit.freedesktop.org/xorg/proto/x11proto/commit/
  ?id=44e458285bb2e7771963a9ab9b5f03d2fb48e611

With XGE, a new event opcode has been added, GenericEvent=35, and
LASTEvent became 36 instead of 35.  Attached is a patch against MEDM
3.1.3 that will make it work if LASTEvent is 35 or 36.

I sent this patch to Ken Evans and Janet Anderson on January 7, 2009,
but have not heard a response from either.  Are they still maintaining
MEDM or should I have sent it to someone else?

Lewis

-- 
J. Lewis Muir
Software Engineer
IMCA-CAT/CARS
--- medm/utils.c.orig	2008-11-18 12:52:32.000000000 -0500
+++ medm/utils.c	2009-01-07 19:23:48.000000000 -0500
@@ -4759,8 +4759,8 @@
 
 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 LASTEvent=36 (See X.h)
 #endif
   /* These types are from X11/X.h */
     static char *eventNames[LASTEvent+2]={
@@ -4799,6 +4799,9 @@
 	"ColormapNotify",
 	"ClientMessage",
 	"MappingNotify",
+#if LASTEvent == 36
+	"GenericEvent",
+#endif
 	"LASTEvent",
 	"Unknown"
     };

Replies:
Re: compile error with medm 3.1.3 on fedora 10 Andrew Johnson
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 Andrew Johnson
Next: Re: compile error with medm 3.1.3 on fedora 10 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  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 Dropp, Christopher
Next: Re: compile error with medm 3.1.3 on fedora 10 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·