cavanaug@lees.cogsci.uiuc.edu (John Cavanaugh) (01/18/91)
To all,
Im having problems building motif on my sparc. Im currently
running SunOs 4.0.3 and I am at patch level 18 of X11R4.
The main problem is I cant build the ./lib/Xm library. Here
is an output of a make all in ./lib/Xm.
lees-root /usr/local/src/Motif 568# cd lib/Xm
lees-root /usr/local/src/Motif/lib/Xm 569# make all
rm -f VaSimple.o
gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -c -O -D_NO_PROTO -DSTRING
S_ALIGNED -DNO_REGEX -DNO_ISDIR -DUSE_RE_COMP -DUSE_GETWD -I/usr/local/X11/inclu
de -I../../. -I. -I../.././lib/Xt -I../../. -I../.././lib -I../.././X11 -DR4_
INTRINSICS -DXAW_BC VaSimple.c
VaSimple.c: In function XmVaCreateSimpleMenuBar:
VaSimple.c:511: parse error before `va_dcl'
VaSimple.c: In function XmVaCreateSimplePulldownMenu:
VaSimple.c:586: parse error before `va_dcl'
VaSimple.c: In function XmVaCreateSimplePopupMenu:
VaSimple.c:665: parse error before `va_dcl'
VaSimple.c: In function XmVaCreateSimpleOptionMenu:
VaSimple.c:747: parse error before `va_dcl'
VaSimple.c: In function XmVaCreateSimpleRadioBox:
VaSimple.c:830: parse error before `va_dcl'
VaSimple.c: In function XmVaCreateSimpleCheckBox:
VaSimple.c:909: parse error before `va_dcl'
*** Error code 1
make: Fatal error: Command failed for target `VaSimple.o'
The whole problem seems to rotate around the following sort of
declaration in VaSimple.c.
#ifndef _NO_PROTO
Widget
XmVaCreateSimpleMenuBar(Widget parent, String name, ...)
#else
/*VARARGS3*/
Widget XmVaCreateSimpleMenuBar(parent, name, va_alist)
Widget parent;
String name;
va_dcl // This is line 511!!!
#endif
If someone could please tell what I am doing wrong, am I
missing a compiler option or something.
Any help would be greatly appreciated.................
Thanks in advance...
-----------------------------------------------------------------------
John Cavanaugh University of Illinois
at Urbana-Champaign
Cognitive Science Lab
2124 Beckman Institute Internet: j-cavanaugh@uiuc.edu
217-244-3666 Bitnet: cavanah@UIUCVMD
-----------------------------------------------------------------------
In a perfect world, all machines would have infinite swap........
-----------------------------------------------------------------------
--
-----------------------------------------------------------------------
John Cavanaugh University of Illinois
at Urbana-Champaign
Cognitive Science Lab
2124 Beckman Institute Internet: j-cavanaugh@uiuc.edu
217-244-3666 Bitnet: cavanah@UIUCVMD