[3032] in Athena Bugs

home help back first fref pref prev next nref lref last post

schain botch

daemon@ATHENA.MIT.EDU (jstravis@ATHENA.MIT.EDU)
Tue Aug 29 09:48:46 1989

From: <jstravis@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Date: Tue, 29 Aug 89 09:48:25 EDT

	Hi.  You had a problem with an 'schain botch' when you compiled a C
	program.  This error indicates a bug in the compiler you were using.
	Would you please mail a report of this to 'bugs'?  Be sure to include
	the compiler you were using, the workstation type, and the athena
	release, as well as much information about your code as necessary in
	order that the people responsible for the compiler can isolate the bug.

	--Beth

Ok, here's the report. I'm coding a graphics editor using HP widgets,
X11R3, on a VAX2000 in the student center. When i compile
with gcc in this manner:

/mit/gnu/vaxbin/gcc -I. -L/mit/neur/Xhp/lib draw.c -lXw -lXmu -lXt -lX11

the program compiles and runs.(no XtNresize redefined either)

Originally i tried cc in the same manner and I get this:

./Xw/Xw.h: 584: XtNresize redefined
"draw.c", line 213: compiler error: schain botch

Line 213 is:
XSetTile(dpy,data->gc,tile);
but I don't think that has a problem since the error
"floats" to other lines, depending on what i comment out.
Here is the function in total that includes the line 213
One of the OLC members sent me a bug report saying that
perhaps, a void decalration is the problem. Article 3012
of Athena bugs discuss group. Any confirmation would be helpful

Thanks,
John Travis

void set_fill_pattern(w,data,call_data)
     Widget     w;
     graphics_data     *data;
     void     *call_data;
{
  Display *dpy = XtDisplay(w);
  Pixmap    tile;
  int   i;
  XGCValues  values;
  int    mask = GCForeground | GCBackground | GCTile | GCFillStyle;

  XFindContext(XtDisplay(w), w ,TileContext, &tile);

/* modify GC using this tile pattern*/
  XSetTile(dpy,data->gc,tile);
    
}

home help back first fref pref prev next nref lref last post