[comp.unix.i386] problems installing rn under ISC 2.0.2

kevin@litle.litle.COM (kevin p burke) (06/04/90)

I'm trying to install rn...and I cannot get past ngdata.c...I remember 
someone having a similar problem several months ago, could anyone who
has solved this problem please help?
thanx
-k

-- 
===============================================================================
Kevin P. Burke, Corporate Mystic, Litle & Co. | POB C26, Hanover, NH 03755-6000
+1 603 643 5558 (home)       +1 603 643 1834 (off.)       +1 603 643 6723 (fax)
-------------------------------------------------------------------------------
   "The game is afoot"  - _Young Sherlock Holmes_
-------------------------------------------------------------------------------
kevin@litle.com  kevin@litle.uucp  {backbone}!dartvax.dartmouth.edu!litle!kevin
===============================================================================

michael@fts1.uucp (Michael Richardson) (06/13/90)

In article <4840@litle.litle.COM> kevin@litle.litle.COM (kevin p burke) writes:
>I'm trying to install rn...and I cannot get past ngdata.c...I remember 
>someone having a similar problem several months ago, could anyone who
>has solved this problem please help?

  First, I think that patch #46 or so tries to fix the problem.
  The problem is that AT&T and/or ISC has some screw ups when it comes
to direct vs dirent, and where they stick the include files. It
confuses the Configure program.
  This was my old ndir.h, until it got patched:

/* $Header: ndir.h,v 4.3 85/05/01 11:43:00 lwall Exp $
 *
 * $Log:	ndir.h,v $
 * Revision 4.3  85/05/01  11:43:00  lwall
 * Baseline for release with 4.3bsd.
 * 
 */

#ifdef LIBNDIR
#   include <ndir.h>
#else
#   ifdef USEDIRENT
#       include <dirent.h>
#define direct dirent
#   else
#     ifndef USENDIR
#	include <sys/dir.h>
#     else

 ...  rest of file.


  The patch changes this to:

/* $Header: ndir.h,v 4.3.2.1 90/04/17 15:28:13 sob Exp $
 *
 * $Log:	ndir.h,v $
 * Revision 4.3.2.1  90/04/17  15:28:13  sob
 * Altered to include correct directory include file.
 * 
 * Revision 4.3  85/05/01  11:43:00  lwall
 * Baseline for release with 4.3bsd.
 * 
 */

#ifdef LIBNDIR
#   include <ndir.h>
#else
#   ifndef USENDIR
#     include DIRINC
#   else


  I don't recall if Configure actually worked or if I had to 
patch things up again afterward. I also had problems with 
TIOCGWINSIZ being defined (because I have hbtcp loaded) but
not having winsize defined. (It is in /usr/include/ptem.h 
or /usr/include/sys/ptem.h I think.)
  A diff of term.c and term.c~ [which would be the previous
version, before the patch #46.] gives:

1c1
< /* $Header: term.c,v 4.3.2.7 90/04/21 16:54:29 sob Exp $
---
> /* $Header: term.c,v 4.3.2.6 90/04/13 23:48:17 sob Exp $
4,6d3
<  * Revision 4.3.2.7  90/04/21  16:54:29  sob
<  * Installed patches provided by SCO for SCO Xenix
<  * 
139,149d135
< #if defined(TIOCGWINSZ) 
< #if defined(u3b2) || defined(i386)
< struct winsize {
< 	unsigned short ws_row;       /* rows, in characters*/
< 	unsigned short ws_col;       /* columns, in character */
< 	unsigned short ws_xpixel;    /* horizontal size, pixels */
< 	unsigned short ws_ypixel;    /* vertical size, pixels */
< };
< #endif
< #endif
< 
159a146,153
> #ifdef u3b2
> struct winsize {
> 	unsigned short ws_row;       /* rows, in characters*/
> 	unsigned short ws_col;       /* columns, in character */
> 	unsigned short ws_xpixel;    /* horizontal size, pixels */
> 	unsigned short ws_ypixel;    /* vertical size, pixels */
> };
> #endif

  I'm sorry that I didn't keep better track of what I did.
I made it work... Another solution is to #undef TIOCGWINSIZ.


-- 
   :!mcr!:               | Tellement de lettres, si peu de temps.
   Michael Richardson    |  If Meech passes, no one will understand that.
 Play: mcr@julie.UUCP Work: michael@fts1.UUCP Fido: 1:163/109.10 1:163/138
    Amiga----^     - Pay attention only to _MY_ opinions. -   ^--Amiga--^