Article View: news.software.nn
Article #9399Re: compiling nn 6.5.5 on Solaris 7
From: Michael T Pins
Date: Sat, 08 Jan 2000 00:00
Date: Sat, 08 Jan 2000 00:00
76 lines
3050 bytes
3050 bytes
jpc@drum.msfc.nasa.gov (J. Porter Clark) writes: >jeff@cjsa.com (Jeffery Small) writes: >>When compiling nn 6.5.5 on my Sparcstation 20/Solaris 7 machine, I get the >>following problems with the file term.c using the standard s-sunos5.h and >>m-sparc.h include files. Since the Solaris platform is so standard, I was >>surprosed to dee this type of error. Before I dig too deeply into this I >>was wondering if anyone else was having trouble like this on a Solaris 7. >Me too. >What I ended up doing was something like this, which is really utterly >bad, stupid, silly, wrong, but it made the compile work for Sol 7 and >nothing else. The problem is that termio.h doesn't get included. >Didn't need this kludgery for Sol 2.6. And with that helpful tip, I found it. Sun rewrote sys/ptem.h, and added an #include <sys/termios.h>, which doesn't include <sys/termio.h>, but does add the define for VINTR. %$@$# Sun. Actual patch for this (which also stops a few warnings added by more Sun screwups): diff -rc nn-6.5.5/term.c nn-sol7/term.c *** nn-6.5.5/term.c Wed Jun 9 13:19:01 1999 --- nn-sol7/term.c Sat Jan 8 00:13:51 2000 *************** *** 14,24 **** #ifdef RESIZING #include <sys/ioctl.h> /* for TIOCGWINSZ */ - #ifdef SYSV_RESIZING - #include <sys/stream.h> - #include <sys/ptem.h> - #endif /* SYSV_RESIZING */ - extern int s_resized; #endif /* RESIZING */ --- 14,19 ---- *************** *** 52,57 **** --- 47,57 ---- #endif /* __FreeBSD__ */ #endif + #ifdef SYSV_RESIZING + #include <sys/stream.h> + #include <sys/ptem.h> + #endif /* SYSV_RESIZING */ + /* SYSV curses.h clash */ #undef raw diff -rc nn-6.5.5/conf/s-sunos5.h nn-sol7/conf/s-sunos5.h *** nn-6.5.5/conf/s-sunos5.h Sat Apr 29 00:34:14 1995 --- nn-sol7/conf/s-sunos5.h Sat Jan 8 00:09:56 2000 *************** *** 17,19 **** --- 17,21 ---- #include "s-sys5-4.h" /* add and Solaris/SunOS5 *specific* stuff here */ + + #define COMPILER_FLAGS -D_MSE_INT_H -- ************************************************************************** * Michael T Pins | mtpins@visi.com * * keeper of the nn sources | mtpins@icaen.uiowa.edu * * ftp://ftp.visi.com/users/mtpins | #include <std.disclaimer> *
Technical Details
Message-ID:
<qLAd4.2145$v31.221551@ptah.visi.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<Fny6rL.15I@cjsa.com> <855ie1$3g1$1@hammer.msfc.nasa.gov>Show Full Headers
Complete Article Headers
Message-ID: <qLAd4.2145$v31.221551@ptah.visi.com> Subject: Re: compiling nn 6.5.5 on Solaris 7 Date: Sat, 08 Jan 2000 00:00:00 +0000 From: mtpins@visi.com (Michael T Pins) References: <Fny6rL.15I@cjsa.com> <855ie1$3g1$1@hammer.msfc.nasa.gov> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 569877177 X-Complaints-To: abuse@visi.com X-Trace: ptah.visi.com 947312726 209.98.143.84 (Sat, 08 Jan 2000 00:25:26 CST) NNTP-Posting-Date: Sat, 08 Jan 2000 00:25:26 CST Newsgroups: news.software.nn