stevens@paris.hep.anl.gov (Andy Stevens) (07/20/90)
I am trying to compile the InterViews package and I can't seem to get any of the files which begin with "X11" to build, i.e. InterViews/src/libInterviews/X11-*.c. I dozens of errors like this: (here is where the make craps out:) CC -c -I.. -I../Generated -I../../.././src/InterViews/Std -I../../.././src ../X11-bitmap.c In file included from ../../.././src/InterViews/X11/painterrep.h:31, from ../X11 -bitmap.c:30: ../../.././src/InterViews/X11/Xlib.h:244: conflicting types for `void XCloseDisp lay (struct _XDisplay *)' ../../.././src/InterViews/X11/Xlib.h:253: conflicting types for `void XSetScreen Saver (struct _XDisplay *, int, int, int, int)' . . . ...ad infinitum. I am using X11R4 and g++-1.37.1. Any suggestions appreciated!!! Thanks. --andy s.
harp@cadillac.Berkeley.EDU (Christopher North-Keys) (07/20/90)
| I am trying to compile the InterViews package and I can't seem to get | any of the files which begin with "X11" to build, i.e. | InterViews/src/libInterviews/X11-*.c. You haven't a snowball's chance in hell (not even a big one) until you correct: /usr/include/X11/Xlib.h /usr/include/InterViews/X11/Xlib.h /usr/include/InterViews/X11/Xutil.h CAVEAT: NO SUPPORT, NO RESCUE, ETC... (but they work perfectly here :-) This will get you to the point of catching the few source code errors in InterViews itself. Once compiled, InterViews runs just fine, and you should look in particular at alert, idraw, istat, ifc, iclass, and mailbox. I have these corrected files. They compare as follows /usr/include/InterViews/X11 22 -r--r--r-- 1 harp source 22033 Jul 8 01:07 Xlib.h 3 -rw-r--r-- 1 harp source 2662 Jul 7 23:09 Xlib.h.diff 22 -r--r--r-- 1 harp source 21971 Jul 8 00:07 Xlib.h.orig 6 -r--r--r-- 1 harp source 5148 Jul 8 01:08 Xutil.h 1 -rw-r--r-- 1 harp source 307 Jul 7 23:09 Xutil.h.diff 6 -r--r--r-- 1 harp source 5121 Jul 8 00:07 Xutil.h.orig /usr/include/X11 94 -r--r--r-- 1 harp netadm 95918 Jul 7 22:54 Xlib.h 15 -rw-r--r-- 1 harp netadm 15116 Jul 7 23:10 Xlib.h.diff 91 -r--r--r-- 1 root staff 92580 Mar 29 09:31 Xlib.h.orig Warning: I have not backchecked all the X11/Xlib.h function types with the manual pages. So far, however, nothing has broken. We have InterViews running on both Sun3's and Sun4's. From reading the manual pages, it was clear that most of the problems in the X11R4/Xlib.h file were simply omissions. I have placed a tar(1) file into: Uunet.Uu.Net:~ftp/tmp/X11R4-IV2.6-Xincludes containing the altered includes and a short README. }-1.498-> wc * 645 2363 22033 IV-Xlib.h 166 580 5148 IV-Xutil.h 32 125 1207 README 4804 16388 131072 X11R4-IV2.6-Xincludes 3857 12900 95918 Xlib.h 9504 32356 255378 total }-1.497-> sum * 14628 22 IV-Xlib.h 64475 6 IV-Xutil.h 01535 2 README 21376 128 X11R4-IV2.6-Xincludes 53487 94 Xlib.h I WOULD GREATLY APPRECIATE SOMEONE CONTACTING MIT WITH THESE CORRECTIONS! I haven't had the chance to verify them thoroughly myself. Good Luck. ______________________________________________________________________________ Christopher North-Keys Assoc. Systems Analyst Group Talisman Harp[@Mcc.Com] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~