Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!opusc!snuffleupagus!bert From: bert@snuffleupagus.csd.scarolina.edu (Bert Still) Newsgroups: comp.windows.x Subject: Bug in Xaw/AsciiSink.h (X11R4) Message-ID: <263@opusc.CS.SCAROLINA.EDU> Date: 20 Mar 90 14:43:35 GMT Sender: usenet@opusc.CS.SCAROLINA.EDU Reply-To: bert@cs.scarolina.edu (Bert Still) Organization: Parallel Supercomputer Initiative, Univ. of South Carolina Lines: 50 In the file AsciiSink.h in X11R4/mit/lib/Xaw, there is the following section: #ifdef XAW_BC /************************************************************ * For Compatability Only. */ #define XtAsciiSinkCreate XawAsciiSinkCreate #define XtAsciiSinkDestroy XawAsciiSinkDestroy #define XawTextSink Widget #define XtTextSink XawTextSink extern XawTextSink XawAsciiSinkCreate(); /* parent, args, num_args */ /* Widget parent; */ /* ArgList args; */ /* Cardinal num_args; */ #define XawAsciiSinkDestroy XtDestroyWidget #endif /* XAW_BC */ The problem is that there is no routine XawAsciiSinkCreate(). However, there is a subroutine XwAsciiSinkCreate() which takes the same arguments as the supposed "XawAsciiSinkCreate." Hence, I suggest that the above two lines be changed to read as follows: #define XtAsciiSinkCreate XwAsciiSinkCreate extern XawTextSink XwAsciiSinkCreate(); /* parent, args, num_args */ Of course, this is only a problem with programs needing the backwardly compatible Xt routines. I ran into this while building xgdb, so I'm certain it has been noticed before. But just in case... bert __ bert@cs.scarolina.edu OR \----\ __/ | bert@vision1.ece.scarolina.edu | 4 | __ /---/ Fabi|-------__ __ Bert Still \----// \ _/-----------------___^/ \ Univ of South Carolina | () |:|#4|P O R S C H E | _| () |\__ Parallel Supercomputer \__/ ---------------------/ \__/ \--> Initiative ************************************************************************* -- __ bert@cs.scarolina.edu OR \----\ __/ | bert@vision1.ece.scarolina.edu | 4 | __ /---/ Fabi|-------__ __ Bert Still