Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!geog.ubc.ca!hook From: hook@geog.ubc.ca Newsgroups: comp.windows.x Subject: Re: Xconsole Message-ID: <51*hook@geog.ubc.ca> Date: 18 Jan 90 18:45:00 GMT References: <6284@ubc-cs.UUCP> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 95 >Errors-To: /dev/null@poseur.jpl.nasa.gov >Newsgroups: comp.windows.x >Errors-To: nobody@poseur.jpl.nasa.gov >Precedence: junk >Organization: Sun Microsystems - JPL on-site Software Support Hi, you sent me a request for a fix to xconsole, if I were to get one. Here I am simply forwarding you a fix I was sent. There are actually a few places in the xconsole .c files that have the same line splits in them (i.e., function parameters cut in half sort of thing). They're east to find, because the compiler will stop, and you'll get a make error at the place where the improper line split is. Also, you should put in the Imakefile a line DEFINES = -DXAW_BC near the top, if you didn't build X11R4 with that flag enabled (its set in mit/config/site.def). Its these lines #ifndef InstallOldHeaderFiles #define InstallOldHeaderFiles YES /* set to YES for compat with R3 Xaw */ #endif Next you may have to go into some of the .c files and add some include files, and change the include file paths. In particular, console.c should have the include files as follows: #include #include #include #include #include #include #include #include #include #include which complies with X11R4. After all that, it should build (I've built all the contrib stuff, and most are at least this much trouble. Some MUCH more!!) but I don't know if you'll find it all that useful. I have'nt. Good Luck, Chris Hook. In comp.windows.x article <6284@ubc-cs.UUCP> you write: >I seem to remember that some people had already discussed not being >able to build the contrib client (with X11R4) xconsole. I'm wondering >if anyone out there can send me the fix for building it, and right now, >using gcc 1.36 on a Sun 3/60, SunOS 4.0 (lib's from X11R4), I get to: > >gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -O -I/nfs/leghorn/home/local/src/X/R4/mit > -DXAW_BC -sun3 -c console.c >console.c: In function CreateConsole: >console.c:189: `ca' undeclared (first use this function) >console.c:189: (Each undeclared identifier is reported only once >console.c:189: for each function it appears in.) >console.c:189: parse error before `ddr_t' >*** Error code 1 >make: Fatal error: Command failed for target `console.o' [Sorry that this sounds arrogant, but sheesh ... ] If you had looked at line 189 in console.c for more than 5 seconds, you would have realized that one of the positional parameters is being cast to a caddr_t, but somehow the line got split right after the `ca' and before the `ddr_t' (a newline snuck in somehow), which makes the compiler wonder where these 2 strange alien variables came from. Apply this patch: - Greg Earle Sun Microsystems, Inc. - JPL on-site Software Support earle@poseur.JPL.NASA.GOV (Direct) earle@Sun.COM (Indirect) Disclaimer: Don't even THINK that my opinions have anything to do with Sun's. *** contrib/clients/xconsole/console.c.orig Wed Dec 13 15:03:13 1989 --- contrib/clients/xconsole/console.c Tue Jan 16 03:02:11 1990 *************** *** 185,192 **** Debug("creating console."); ! XtAddEventHandler(console->shell,StructureNotifyMask,False,HandleMap,(ca ! ddr_t)console); frame = XtCreateWidget("consoleFrame", formWidgetClass, console->shell, args, 0); --- 185,191 ---- Debug("creating console."); ! XtAddEventHandler(console->shell,StructureNotifyMask,False,HandleMap,(caddr_t)console); frame = XtCreateWidget("consoleFrame", formWidgetClass, console->shell, args, 0);