Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!radar!bluebell!bluebell.aca.mcc.com!loeffler From: loeffler@bluebell.aca.mcc.com (David D. Loeffler) Newsgroups: comp.windows.interviews Subject: Need help compiling InterViews 3.0-beta Message-ID: Date: 21 Jun 91 16:13:00 GMT Sender: loeffler@bluebell.ACA.MCC.COM Reply-To: "David D. Loeffler" Distribution: comp.windows.interviews Organization: MCC, Austin, TX 78759, U.S.A Lines: 59 I am using Sun's CC (C++ compiler version 2.0) Sun3/110 with attached hard disk for swap OS 4.0.3 I have applied all 10 fix files. I get a strange Bus error when compiling xwindow.c. Has anyone else seen this? Or am I doing something wrong. I have include the error messsage and some extra info. Thanks, Dave From the directory .../iv/src/lib/IV-X11 ... -r--r--r-- 1 loeffler 16856 Apr 9 17:40 xworld.c.orig -rw-r--r-- 1 loeffler 693 Apr 12 01:50 Imakefile -r--r--r-- 1 loeffler 36243 Apr 16 14:42 xcanvas.c -r--r--r-- 1 loeffler 28883 Apr 16 14:47 xwindow.c <<<< PATCHED by fix1 ... I get this error when compiling .../iv/src/lib/IV-X11/xworld.c compiling ../xwindow.c rm -f xwindow.o xwindow..c /usr/CC/sun3/CC -O -pic -Dcplusplus_2_0 -I.. -I../../../.././src/include -I/usr/ local/X/include -c ../xwindow.c CC ../xwindow.c: cc -c -I/usr/CC/incl -I.. -I../../../.././src/include -I/usr/local/X/include -O -pic xwindo w.c cc: Fatal error in cpp: Bus error *** Error code 1 make: Fatal error: Command failed for target `xwindow.o' Any idea of what the problem might be???? A diff shows: daystar.DDL [140]: diff ../xworld.c ../xworld.c.orig 148a149,152 > case StaticGray: > rgbtable_ = nil; > white_ = (1 << visual_->bits_per_rgb) - 1; > break; 151d154 < break; 394a398,406 > break; > case StaticGray: > unsigned long gray = rescale( > (30 * red + 59 * green + 11 * blue) / 100, 0xffff, white_ > ); > xc.pixel = gray; > xc.red = (unsigned short)rescale(gray, white_, 0xffff); > xc.green = (unsigned short)rescale(gray, white_, 0xffff); > xc.blue = (unsigned short)rescale(gray, white_, 0xffff); daystar.DDL [141]: