EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: fedora core 7 medm (was >> Re: MEDM compile - update :)
From: Heinrich du Toit <[email protected]>
To: Mauro Giacchini <[email protected]>, TechTalk EPICS <[email protected]>
Date: Mon, 15 Oct 2007 08:19:54 +0200
Hi

I'm really not the expert but with lesstif I found some other problems
later on. Like menu's nog working or buttons not reacting and things
like that.

So I found the motif packages somewhere and compiled with that.
works much better.

You thing is not finding some header files it seems....
Xm.h ect
On my system: (ubuntu feisty)
Xm.h & XmP.h is inside libmotif-dev
It seems Label.h is inside libxaw-headers

Obviously I can't really say where these files are under Fedora..
But it seems like you are missing some required files to compile MEDM.



On Sun, 2007-10-14 at 05:19 +0200, Mauro Giacchini wrote:
> Heinrich du Toit wrote:
> > Recently libmotif-dev has been replaced with lesstif2-dev 
> > (under ubuntu anyways)
> > therefore...
> >
> > in the file medm/xc/Matrix.c there is a line (44 about):
> > /* Internal Motif functions not defined in header files */
> > void _XmDrawShadow();
> >
> > Well under ubuntu we used to have libmotif-dev package for which this
> > was needed.
> > This has been replaced with lesstif2-dev
> > Now the line is no longer needed.
> > Infact it gives a compile error if it is there
> >
> >
> > Further:
> >
> > in medm/xc/WheelSwitch.c:
> > line 232:
> > Widget _XmGetTabGroup();
> >
> > Change this to:
> > /*Widget _XmGetTabGroup();*/
> > #define _XmGetTabGroup XmGetTabGroup
> >
> > As XmGetTabGroup is defined now!
> >
> >
> >
> > I'm still getting these warnings inside xc folder compile:
> >
> > gcc -ansi -pedantic -D_POSIX_C_SOURCE=199506L -O3 -Wall -D_X86_
> > -Dlinux -fPIC -D_REENTRANT  -DUNIX -D_BSD_SOURCE -I. -I..
> > -I/usr/X11R6/include -I/usr/X11R6/include/X11
> > -I../../../../include/os/Linux -I../../../../include
> > -I/epics/base/include/os/Linux -I/epics/base/include
> > -c   ../WheelSwitch.c
> > ../WheelSwitch.c: In function âInitializeâ:
> > ../WheelSwitch.c:687: warning: passing argument 1 of
> > â_XmGetFocusPolicyâ
> > from incompatible pointer type
> > ../WheelSwitch.c: In function âbtn1DownProcâ:
> > ../WheelSwitch.c:2831: warning: passing argument 1 of
> > â_XmDispatchGadgetInputâ from incompatible pointer type
> > ../WheelSwitch.c: In function âenterWindowProcâ:
> > ../WheelSwitch.c:3040: warning: passing argument 1 of
> > â_XmGetFocusPolicyâ from incompatible pointer type
> > ../WheelSwitch.c: In function âleaveWindowProcâ:
> > ../WheelSwitch.c:3066: warning: passing argument 1 of
> > â_XmGetFocusPolicyâ from incompatible pointer type
> >
> >
> > But medm compiles and seems to work :)
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >   
> Using your instruction the medm compile but when starts:
> 
>  Trying default (fixed) instead
> MEDM Version 3.1.2.1: Loading aliased fonts.................
> 
> SIGSEGV
> Aborted
> 
> then crash. I'm using openmotif-2.3.0-0 ..fc7.ccmra.i386.rpm
> and lesstif-devel-0.95-0-20.fc7.i386.rpm
> 
> Reading old emails about this (to fc6) I've removed lesstif and install
> openmotif-devel-2....7.cmra.i386.rpm ; in this case it didn't compile:
> 
> /usr/bin/gcc -c   -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS 
> -D_XOPEN_SOURCE=500        -D_X86_  -DUNIX  -D_BSD_SOURCE -Dlinux  
> -D_REENTRANT -ansi  -O3  -Wall          -g -fPIC -I. -I.. 
> -I../../../../include/os/Linux -I../../../../include 
> -I/opt/epics/modules/asyn4-8/include/os/Linux 
> -I/opt/epics/modules/asyn4-8/include 
> -I/opt/epics/base-3.14.9/include/os/Linux 
> -I/opt/epics/base-3.14.9/include -I/usr/include -I/usr/include/X11
> ../Caption.c
> ../Caption.c:30:20: error: Xm/XmP.h: No such file or directory
> ../Caption.c:33:22: error: Xm/Label.h: No such file or directory
> In file included from ../CaptionP.h:36,
>                  from ../Caption.c:34:
> ../Caption.h:36:19: error: Xm/Xm.h: No such file or directory
> In file included from ../Caption.h:37,
>                  from ../CaptionP.h:36,
>                  from ../Caption.c:34:
> /usr/include/X11/Core.h:58: error: expected â=â, â,â, â;â, âasmâ or 
> â__attribute__â before âWidgetClassâ
> 
> 
> what is wrong?
> Mauro.
> 
> 



Replies:
Re: fedora core 7 medm (was >> Re: MEDM compile - update :) Robert Soliday
References:
fedora core 7 medm (was >> Re: MEDM compile - update :) Mauro Giacchini

Navigate by Date:
Prev: RE: genSub Szalata, Zenon M.
Next: Re: softioc crashes CAS (gateway) when using port number in EPICS_CA_ADDR_LIST Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: fedora core 7 medm (was >> Re: MEDM compile - update :) Mauro Giacchini
Next: Re: fedora core 7 medm (was >> Re: MEDM compile - update :) Robert Soliday
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·