Thanks Geoff,
That thing worked...
But stuck again at another error..
-----------------------------------------------
make[1]: *** No rule to make target `/usr/lib/libXm.a', needed by `probe'. Stop.
make[1]: Leaving directory `/usr/local/epics/extensions/src/probe1_1_5_1/O.linux-x86_64'
make: *** [install.linux-x86_64] Error 2
-----------------------------------------------
Is this Fedora 12 or something I didn't do correct.
Now i am trying copying that file directly to the library from internet.. Hope it will work.
Hitesh Dhola
Power Supply Group
ITER-INDIA, Institute for Plasma Research
A-29, GIDC, Sector-25
Gandhinagar 382025, INDIA
Ph: +917923269614
WWW.ITER-India.org
----- Original Message -----
From: "Geoff Savage" <[email protected]>
To: "Hitesh Dhola" <[email protected]>
Sent: Thursday, March 4, 2010 8:41:48 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: Re: compile error with medm 3.1.3 on fedora 10
Hi Hitesh,
Your file names need a capital X, Xm.h and XmP.h.
> yum provides XmP.h
openmotif-devel.i386 2.2.3-10.2.el4 sl-base
Matched from:
/usr/X11R6/include/Xm/XmP.h
> yum provides Xm.h
openmotif-devel.i386 2.2.3-10.2.el4 sl-base
Matched from:
/usr/X11R6/include/Xm/Xm.h
As Michael Davidsaver wrote yesterday the headers you need are in
openmotif-devel. I am not a Linux expert so I don't know where the
header files on your system are located. Our linux computers use
RHEL4 built into Scientific Linux Fermi 4.
In your build line you look for X11 files in the -I/usr/include/X11
directory. But the files you need are not in this directory so you
need to modify your build configuration. In <top>/configure/os/
CONFIG_SITE.linux-x86_64.linux-x86_64 adjust the MOTIF_LIB and
MOTIF_INC to match your configuration. When you make a change in the
configure directory you need to gmake clean uninstall and then gmake.
Geoff
On Mar 3, 2010, at 10:53 PM, Hitesh Dhola wrote:
I have installed libxp-devel and openmotif-devel libraries, then
also xm.h and xmP.h is not available
Hitesh Dhola
Power Supply Group
ITER-INDIA, Institute for Plasma Research
A-29, GIDC, Sector-25
Gandhinagar 382025, INDIA
Ph: +917923269614
WWW.ITER-India.org
----- Original Message -----
From: "Geoff Savage" <[email protected]>
To: "Hitesh" <[email protected]>
Sent: Wednesday, March 3, 2010 8:24:41 PM GMT +05:30 Chennai,
Kolkata, Mumbai, New Delhi
Subject: Re: compile error with medm 3.1.3 on fedora 10
On Linux, to get header files you need to install the development
version of packages.
Geoff
On Mar 3, 2010, at 12:16 AM, Hitesh wrote:
I am getting same problem compiling MEDM .. at Caption.c .. and xm/
xmP.h ...
but could not solve using this solution given by tech talk I have
included
at bottom of this mail.
I have install all openmotif library and libxp libraries but.. xm/
xmP.h is
not in include folder or anywhere
And I am getting same error
If anyone can help. I am using Fedora 12 64 bit, EPICS base-3-14-11,
extension medm3_1_4
My errors...
----------------------------------------------------------------------------
---------------------
Make -C ./printUtils install
make[1]: Entering directory
`/usr/local/epics/extensions/src/medm/printUtils'
make -C O.linux-x86_64 -f ../Makefile TOP=../../../.. T_A=linux-
x86_64
install
make[2]: Entering directory
`/usr/local/epics/extensions/src/medm/printUtils/O.linux-x86_64'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory
`/usr/local/epics/extensions/src/medm/printUtils/O.linux-x86_64'
make[1]: Leaving directory `/usr/local/epics/extensions/src/medm/
printUtils'
make -C ./xc install
make[1]: Entering directory `/usr/local/epics/extensions/src/medm/xc'
make -C O.linux-x86_64 -f ../Makefile TOP=../../../.. T_A=linux-
x86_64
install
make[2]: Entering directory
`/usr/local/epics/extensions/src/medm/xc/O.linux-x86_64'
Can't delete Caption.depends: Permission denied
make[2]: [Caption.o] Error 13 (ignored)
/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
-D_XOPEN_SOURCE=500 -D_X86_64_ -DUNIX -D_BSD_SOURCE -
Dlinux
-D_REENTRANT -O3 -Wall -m64 -g -fPIC -I. -I../O.Common -
I. -I..
-I../../../../include/os/Linux -I../../../../include
-I../../../../../base-3-14-11/include/os/Linux
-I../../../../../base-3-14-11/include -I../../../../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 'typedef'
/usr/include/X11/Core.h:60: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'WidgetClass'
/usr/include/X11/Core.h:63: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'WidgetClass'
In file included from ../CaptionP.h:36,
from ../Caption.c:34:
../Caption.h:70: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'extern'
In file included from ../Caption.c:34:
../CaptionP.h:38:25: error: Xm/ManagerP.h: No such file or directory
In file included from ../Caption.c:34:
../CaptionP.h:45: error: expected specifier-qualifier-list before
'XtPointer'
../CaptionP.h:52: error: expected specifier-qualifier-list before
'CoreClassPart'
../CaptionP.h:66: error: expected specifier-qualifier-list before
'XmFontList'
../CaptionP.h:83: error: expected specifier-qualifier-list before
'CorePart'
../Caption.c:38: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'resources'
../Caption.c:77: error: expected ')' before 'greq'
../Caption.c:79: error: expected ')' before 'w'
../Caption.c:80: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'SetValues'
../Caption.c:82: error: expected ')' before 'gold'
../Caption.c:84: error: expected ')' before 'gcw'
../Caption.c:85: error: expected ')' before 'w'
../Caption.c:86: error: expected ')' before 'gcw'
../Caption.c:87: error: expected ')' before 'gcw'
../Caption.c:88: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'GeometryManager'
../Caption.c:90: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'QueryGeometry'
../Caption.c:97: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:98: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:98: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:98: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:99: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:100: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:101: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:101: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:101: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:102: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:103: error: expected declaration specifiers or '...'
before
'Boolean'
../Caption.c:104: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'CompareStrings'
../Caption.c:109: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'CvtStringToLabelAlignment'
../Caption.c:111: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'CvtStringToLabelPosition'
../Caption.c:115: error: extra brace group at end of initializer
../Caption.c:115: error: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:117: error: 'WidgetClass' undeclared here (not in a
function)
../Caption.c:117: error: 'xmManagerClassRec' undeclared here (not
in a
function)
../Caption.c:121: error: 'NULL' undeclared here (not in a function)
../Caption.c:122: error: 'False' undeclared here (not in a function)
../Caption.c:123: error: 'Initialize' undeclared here (not in a
function)
../Caption.c:125: error: 'XtInheritRealize' undeclared here (not in a
function)
../Caption.c:128: error: 'resources' undeclared here (not in a
function)
../Caption.c:129: warning: implicit declaration of function
'XtNumber'
../Caption.c:130: error: 'NULLQUARK' undeclared here (not in a
function)
../Caption.c:131: error: 'True' undeclared here (not in a function)
../Caption.c:132: error: 'XtExposeCompressMaximal' undeclared here
(not in a
function)
../Caption.c:136: error: 'Resize' undeclared here (not in a function)
../Caption.c:137: error: 'Redisplay' undeclared here (not in a
function)
../Caption.c:138: error: 'SetValues' undeclared here (not in a
function)
../Caption.c:140: error: 'SetValuesAlmost' undeclared here (not in a
function)
../Caption.c:141: error: 'GetValuesHook' undeclared here (not in a
function)
../Caption.c:143: error: 'XtVersion' undeclared here (not in a
function)
../Caption.c:145: error: 'XtInheritTranslations' undeclared here
(not in a
function)
../Caption.c:146: error: 'QueryGeometry' undeclared here (not in a
function)
../Caption.c:149: warning: excess elements in struct initializer
../Caption.c:149: warning: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:150: error: extra brace group at end of initializer
../Caption.c:150: error: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:152: error: 'GeometryManager' undeclared here (not in a
function)
../Caption.c:153: error: 'ChangeManaged' undeclared here (not in a
function)
../Caption.c:154: error: 'InsertChild' undeclared here (not in a
function)
../Caption.c:155: error: 'XtInheritDeleteChild' undeclared here (not
in a
function)
../Caption.c:157: warning: excess elements in struct initializer
../Caption.c:157: warning: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:158: error: extra brace group at end of initializer
../Caption.c:158: error: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:167: warning: excess elements in struct initializer
../Caption.c:167: warning: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:168: error: extra brace group at end of initializer
../Caption.c:168: error: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:175: error: 'XmInheritParentProcess' undeclared here
(not in a
function)
../Caption.c:177: warning: excess elements in struct initializer
../Caption.c:177: warning: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:178: error: extra brace group at end of initializer
../Caption.c:178: error: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:181: warning: excess elements in struct initializer
../Caption.c:181: warning: (near initialization for
'xbaeCaptionClassRec')
../Caption.c:184: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'xbaeCaptionWidgetClass'
../Caption.c: In function 'ClassInitialize':
../Caption.c:190: warning: implicit declaration of function
'XtSetTypeConverter'
../Caption.c:190: error: 'XmRString' undeclared (first use in this
function)
../Caption.c:190: error: (Each undeclared identifier is reported
only once
../Caption.c:190: error: for each function it appears in.)
../Caption.c:191: error: 'CvtStringToLabelAlignment' undeclared
(first use
in this function)
../Caption.c:192: error: 'XtCacheAll' undeclared (first use in this
function)
../Caption.c:195: error: 'CvtStringToLabelPosition' undeclared
(first use in
this function)
../Caption.c: At top level:
../Caption.c:200: error: expected ')' before 'greq'
../Caption.c:274: error: expected ')' before 'w'
../Caption.c:291: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'SetValues'
../Caption.c:431: error: expected ')' before 'w'
../Caption.c:437: error: expected ')' before 'gold'
../Caption.c:463: error: expected ')' before 'gcw'
../Caption.c:486: error: expected declaration specifiers or '...'
before
'Boolean'
../Caption.c: In function 'Layout':
../Caption.c:488: error: 'Position' undeclared (first use in this
function)
../Caption.c:488: error: expected ';' before 'label_x'
../Caption.c:489: error: expected ';' before 'user_x'
../Caption.c:490: error: 'Dimension' undeclared (first use in this
function)
../Caption.c:490: error: expected ';' before 'user_width'
../Caption.c:495: error: 'CompositeWidget' undeclared (first use in
this
function)
../Caption.c:495: error: expected ')' before 'cw'
../Caption.c:495: warning: implicit declaration of function
'XtIsManaged'
../Caption.c:495: error: expected ')' before 'cw'
../Caption.c:496: warning: implicit declaration of function
'XtMoveWidget'
../Caption.c:496: error: expected ')' before 'cw'
../Caption.c:503: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:507: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:509: error: 'label_y' undeclared (first use in this
function)
../Caption.c:512: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:513: error: expected ')' before 'cw'
../Caption.c:516: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:516: error: expected ')' before 'cw'
../Caption.c:519: error: 'user_y' undeclared (first use in this
function)
../Caption.c:524: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:526: error: 'label_x' undeclared (first use in this
function)
../Caption.c:529: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:530: error: expected ')' before 'cw'
../Caption.c:533: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:533: error: expected ')' before 'cw'
../Caption.c:536: error: 'user_x' undeclared (first use in this
function)
../Caption.c:544: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:547: error: expected ')' before 'cw'
../Caption.c:547: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:549: error: expected ')' before 'cw'
../Caption.c:550: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:553: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:559: error: expected ')' before 'cw'
../Caption.c:559: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:560: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:560: error: expected ')' before 'cw'
../Caption.c:562: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:562: error: expected ')' before 'cw'
../Caption.c:563: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:568: error: expected ')' before 'cw'
../Caption.c:568: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:570: error: expected ')' before 'cw'
../Caption.c:571: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:574: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:581: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:581: error: expected ')' before 'cw'
../Caption.c:583: error: expected ')' before 'cw'
../Caption.c:583: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:584: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:584: error: expected ')' before 'cw'
../Caption.c:586: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:587: error: expected ')' before 'cw'
../Caption.c:587: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:595: error: expected ')' before 'cw'
../Caption.c:598: error: 'configure' undeclared (first use in this
function)
../Caption.c:602: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:602: error: 'struct _XbaeCaptionRec' has no member
named 'core'
../Caption.c:603: error: 'user_width' undeclared (first use in this
function)
../Caption.c:603: error: 'user_height' undeclared (first use in this
function)
../Caption.c:604: error: expected ')' before 'cw'
../Caption.c:604: error: too many arguments to function
'ComputeUserChildSize'
../Caption.c:612: warning: implicit declaration of function
'_XmConfigureObject'
../Caption.c:612: error: 'Widget' undeclared (first use in this
function)
../Caption.c:612: error: expected ')' before 'cw'
../Caption.c:615: error: expected ')' before 'cw'
../Caption.c: At top level:
../Caption.c:620: error: expected ')' before 'gcw'
../Caption.c:632: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:632: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:633: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:633: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:634: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c: In function 'ComputeUserChildSize':
../Caption.c:636: error: 'cwWidth' undeclared (first use in this
function)
../Caption.c:636: error: 'childBorderWidth' undeclared (first use in
this
function)
../Caption.c:637: error: 'cwHeight' undeclared (first use in this
function)
../Caption.c:649: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:652: error: 'CompositeWidget' undeclared (first use in
this
function)
../Caption.c:652: error: expected ')' before 'cw'
../Caption.c:652: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:653: error: expected ')' before 'cw'
../Caption.c:654: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:658: error: expected ')' before 'cw'
../Caption.c:658: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:659: error: expected ')' before 'cw'
../Caption.c:660: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:665: error: 'childWidth' undeclared (first use in this
function)
../Caption.c:670: error: 'childHeight' undeclared (first use in this
function)
../Caption.c: At top level:
../Caption.c:681: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:681: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:682: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:682: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c:682: error: expected declaration specifiers or '...'
before
'Dimension'
../Caption.c: In function 'ComputeSize':
../Caption.c:684: error: 'childWidth' undeclared (first use in this
function)
../Caption.c:684: error: 'childBorderWidth' undeclared (first use in
this
function)
../Caption.c:685: error: 'childHeight' undeclared (first use in this
function)
../Caption.c:691: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:694: error: 'CompositeWidget' undeclared (first use in
this
function)
../Caption.c:694: error: expected ')' before 'cw'
../Caption.c:694: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:695: error: 'cwWidth' undeclared (first use in this
function)
../Caption.c:695: error: expected ')' before 'cw'
../Caption.c:696: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:700: error: 'cwHeight' undeclared (first use in this
function)
../Caption.c:700: error: expected ')' before 'cw'
../Caption.c:702: error: expected ')' before 'cw'
../Caption.c:707: error: expected ')' before 'cw'
../Caption.c:707: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:708: error: expected ')' before 'cw'
../Caption.c:709: error: 'struct _XbaeCaptionRec' has no member named
'caption'
../Caption.c:713: error: expected ')' before 'cw'
../Caption.c:715: error: expected ')' before 'cw'
../Caption.c: At top level:
../Caption.c:721: error: expected ')' before 'gcw'
../Caption.c:760: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'GeometryManager'
../Caption.c:904: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'QueryGeometry'
../Caption.c:1041: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'CompareStrings'
../Caption.c:1066: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'CvtStringToLabelPosition'
../Caption.c:1112: error: expected '=', ',', ';', 'asm' or
'__attribute__'
before 'CvtStringToLabelAlignment'
make[2]: *** [Caption.o] Error 1
make[2]: Leaving directory
`/usr/local/epics/extensions/src/medm/xc/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory `/usr/local/epics/extensions/src/medm/xc'
make: *** [xc.install] Error 2
-----------------------------------------------------------------
Hitesh Dhola
Power Supply Group
ITER-INDIA, Institute for Plasma Research
A-29, GIDC, Sector-25
Gandhinagar 382025, INDIA
Ph: 079-23269614
www.iter-india.org
I have referred this Tech talk,
############################################################################
###
To:
[email protected]
Subject:
compile error with medm 3.1.3 on fedora 10
From:
Kazimierz Gofron <[email protected]>
Date:
Sat, 09 May 2009 22:18:43 -0500
Cc:
[email protected]
If you see the following error when trying to compile medm 3.1.3 on
fedora
10:
------------------------
/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
-W
all -m32 -g -fPIC -I. -I../O.Common -I. -I..
-I../../../../include/os/L
inux -I../../../../include -I../../../../../base/include/os/Linux
-I../../../../
../base/include -I../../../../include -I/usr/include
-I/usr/include/X11
../Caption.c
In file included from /usr/include/Xm/XmP.h:58,
from ../Caption.c:30:
/usr/include/Xm/Xm.h:76:34: error: X11/extensions/Print.h: No such
file or
direc
tory
In file included from /usr/include/Xm/XmP.h:58,
from ../Caption.c:30:
/usr/include/Xm/Xm.h:858: error: expected specifier-qualifier-list
before
'XPCon
text'
gmake[2]: *** [Caption.o] Error 1
-----------------------
Just install the missing libraries:
yum install libXp libXp-devel <enter>
The libXp-devel rpm does not seem to be in openmotif dependencies
list.
openmotif-2.3.2-1.i386
openmotif-devel-2.3.2-1.i386
Kazimierz,
########################################################################