Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!oliveb!sun!gorodish!guy From: guy@gorodish.Sun.COM (Guy Harris) Newsgroups: comp.windows.x Subject: Re: X11R2 on Sun 4/110 Keywords: X11, Sun-4 Message-ID: <62577@sun.uucp> Date: 3 Aug 88 04:09:50 GMT References: <12140@duke.cs.duke.edu> Sender: news@sun.uucp Lines: 51 > I'm trying to install X11R2 on a 4/110, and I'm getting some strange > error messages from makedepend: > > xpr.c, line 103: unknown directive == "#pragma unknown_control_flow(setjmp)" Nothing strange about that at all; the Sun compiler implements the "#pragma" directive that appears in recent ANSI C drafts, in order to permit code to provide "hints" to the optimizer, such as "setjmp can return from another galaxy, so don't assume you know what values are in the registers when it does return." This hint is, in fact, provided in . "makedepend" doesn't know about this directive, so it pukes. The following change to "makedepend", which teaches it that "#pragma" exists (but isn't interesting to it), seemed to work when I built X11R2: ------- def.h ------- *** /tmp/da2147 Tue Aug 2 21:03:05 1988 --- def.h Sun Mar 6 16:22:44 1988 *************** *** 45,52 **** #define UNDEF 6 #define INCLUDE 7 #define LINE 8 ! #define IFFALSE 9 /* pseudo value --- never matched */ ! #define INCLUDEDOT 10 /* pseudo value --- never matched */ #ifdef DEBUG extern int debug; --- 45,53 ---- #define UNDEF 6 #define INCLUDE 7 #define LINE 8 ! #define PRAGMA 9 ! #define IFFALSE 10 /* pseudo value --- never matched */ ! #define INCLUDEDOT 11 /* pseudo value --- never matched */ #ifdef DEBUG extern int debug; ------- main.c ------- *** /tmp/da2150 Tue Aug 2 21:03:05 1988 --- main.c Fri Jun 10 23:00:14 1988 *************** *** 69,74 **** --- 69,75 ---- "undef", "include", "line", + "pragma", NULL };