palmer@fcs50b.UUCP (08/26/87)
We're trying to bring XV10R4 up on an Apollo DSP80 (DN560 display) running SR9.5.1. As a start, we're only trying to compile X, Xlib, uwm, and xterm. We're having problems. First the good news. Good news: - The new preprocessor doesn't seem to have problems with B16 or UBPS as indicated in the V10R4 X Window System Installation document. Tractable problems: - The include file sys/un.h is missing. - In several uwm source code files a WindowInfo structure (NOT pointer!) is declared as a register variable. The WindowInfo structure is ~18 bytes long. Some compilers treat this declaration as a hint and ignore it. The Apollo compiler doesn't like it. (And it seems to be a bizarre programming habit.) - In Xlib/Xttylib.c references are made to the _file member of a FILE structure. In the Apollo version of stdio.h this member is named _fd. If the programmer had used the "fileno" macro in stdio.h, Apollo's renaming would have been transparent ... Serious problems: - In Xlib/Xtextlib.c and Xlib/Xttylib.c the constants _IOSTRG and _IOWRT are used. They're missing from Apollo's stdio.h. I substituted the values from another stdio.h (0100 and 02 respectively). Does anyone know if this will cause any problems? - In xterm/main.c two routines are used that can't be found in Apollo's standard C library: "vhangup" and "ttyslot". The last problem is the only one standing in the way of compilation. Any help is greatly appreciated. -Tom Thomas C. Palmer Thomas C. Palmer NCI Supercomputer Facility c/o PRI, Inc. Phone: (301) 698-5797 PO Box B, Bldg. 430 Uucp: ...!uunet!mimsy!elsie!ncifcrf!palmer Frederick, MD 21701 Arpanet: mimsy!elsie!ncifcrf!palmer@uunet.uu.net Bitnet: uunet!mimsy!elsie!ncifcrf!palmer@psuvax1.bitnet