Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!ucbvax!osf.org!dbrooks From: dbrooks@osf.org Newsgroups: comp.windows.x.motif Subject: Re: Problems Building Motif on Sparc running X11R4.18 and 4.0.3 Message-ID: <9101181543.AA10278@osf.osf.org> Date: 18 Jan 91 15:43:15 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 23 John Cavanaugh wrote: > 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' This is a problem with the intricate relationships around ANSI C, prototypes and varargs. If you are compiling with an ANSI C compiler (or at least a compiler that defines __STDC__) and without prototypes, a quick fix is to add this to VaSimple.h: #define va_dcl int va_alist; (the semicolon is correct). A slightly better solution will be in 1.1.1. David Brooks Systems Engineering Open Software Foundation