al@crucible.UUCP (Al Evans) (09/05/89)
Is anybody still having a problem getting rn to compile and run under ISC 2.0.2? I finally got it running -- I wish it were because I am so clever, but actually I just found a previously-unnoticed file of diffs which came on the disk from which I procured rn. There was no attribution, so I asked the guy I got it from, and he didn't know its provenance. So if the person who originally posted this is out there, please accept my apology for reposting it without your permission. Anyway, sh this, then use patch to apply the diffs (answer yes when it asks if you want to assume "R" -- they look reversed to patch). Then rn should compile and operate correctly under 2.0.2. -----cut here----- #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # Makefile.SH.di # art.c.diff # common.h.diff # ndir.h.diff # ngdata.c.diff # util.c.diff # This archive created: Tue Mar 7 09:43:45 1989 export PATH; PATH=/bin:/usr/bin:$PATH echo shar: "extracting 'Makefile.SH.di'" '(581 characters)' if test -f 'Makefile.SH.di' then echo shar: "will not over-write existing file 'Makefile.SH.di'" else sed 's/^ X//' << \SHAR_EOF > 'Makefile.SH.di' X*** Makefile.SH Tue Mar 7 08:42:54 1989 X--- Makefile.SH.orig Tue Mar 7 08:41:52 1989 X*************** X*** 21,32 **** X rnlib = $rnlib X mansrc = $mansrc X manext = $manext X! CFLAGS = $iandd -O -DI386 X! LDFLAGS = $iandd -s X NDIRC = $ndirc X NDIRO = $ndiro X X! libs = $ndirlib $termlib $jobslib -lc_s X !GROK!THIS! X cat >>Makefile <<'!NO!SUBS!' X X--- 21,32 ---- X rnlib = $rnlib X mansrc = $mansrc X manext = $manext X! CFLAGS = $iandd -O X! LDFLAGS = $iandd X NDIRC = $ndirc X NDIRO = $ndiro X X! libs = $ndirlib $termlib $jobslib X !GROK!THIS! X cat >>Makefile <<'!NO!SUBS!' X SHAR_EOF if test 581 -ne "`wc -c < 'Makefile.SH.di'`" then echo shar: "error transmitting 'Makefile.SH.di'" '(should have been 581 characters)' fi fi echo shar: "extracting 'art.c.diff'" '(975 characters)' if test -f 'art.c.diff' then echo shar: "will not over-write existing file 'art.c.diff'" else sed 's/^ X//' << \SHAR_EOF > 'art.c.diff' X*** art.c Tue Mar 7 09:31:12 1989 X--- art.c.orig Tue Mar 7 09:41:53 1989 X*************** X*** 701,707 **** X notincl("g"); X return PS_ASK; X #endif X! case ' ': /* one line */ X special = TRUE; X slines = 2; X return PS_NORM; X--- 701,707 ---- X notincl("g"); X return PS_ASK; X #endif X! case '\n': /* one line */ X special = TRUE; X slines = 2; X return PS_NORM; X*************** X*** 826,832 **** X case Ctl('v'): /* I like emacs -- PWP */ X /* Leaving it undocumented in case */ X /* I want to steal the key--LAW */ X! case '\n': /* continue current article */ X if (erase_screen) { /* -e? */ X #ifndef CLEAREOL X clear(); /* clear screen */ X--- 826,832 ---- X case Ctl('v'): /* I like emacs -- PWP */ X /* Leaving it undocumented in case */ X /* I want to steal the key--LAW */ X! case ' ': /* continue current article */ X if (erase_screen) { /* -e? */ X #ifndef CLEAREOL X clear(); /* clear screen */ SHAR_EOF if test 975 -ne "`wc -c < 'art.c.diff'`" then echo shar: "error transmitting 'art.c.diff'" '(should have been 975 characters)' fi fi echo shar: "extracting 'common.h.diff'" '(365 characters)' if test -f 'common.h.diff' then echo shar: "will not over-write existing file 'common.h.diff'" else sed 's/^ X//' << \SHAR_EOF > 'common.h.diff' X*** common.h Tue Mar 7 08:49:41 1989 X--- common.h.orig Tue Mar 7 08:49:07 1989 X*************** X*** 670,678 **** X char *getenv(); X char *strcat(); X char *strcpy(); X- #ifndef I386 X char *sprintf(); X- #endif X X EXT char buf[LBUFLEN+1]; /* general purpose line buffer */ X EXT char cmd_buf[CBUFLEN]; /* buffer for formatting system commands */ X--- 670,676 ---- SHAR_EOF if test 365 -ne "`wc -c < 'common.h.diff'`" then echo shar: "error transmitting 'common.h.diff'" '(should have been 365 characters)' fi fi echo shar: "extracting 'ndir.h.diff'" '(341 characters)' if test -f 'ndir.h.diff' then echo shar: "will not over-write existing file 'ndir.h.diff'" else sed 's/^ X//' << \SHAR_EOF > 'ndir.h.diff' X*** ndir.h Tue Mar 7 07:58:23 1989 X--- ndir.h.orig Tue Mar 7 07:56:18 1989 X*************** X*** 10,20 **** X # include <ndir.h> X #else X # ifndef USENDIR X- # ifdef I386 X- # include <dirent.h> X- # else /* ! I386 */ X # include <sys/dir.h> X- # endif /* I386 */ X # else X X #ifndef DEV_BSIZE X--- 10,16 ---- SHAR_EOF if test 341 -ne "`wc -c < 'ndir.h.diff'`" then echo shar: "error transmitting 'ndir.h.diff'" '(should have been 341 characters)' fi fi echo shar: "extracting 'ngdata.c.diff'" '(369 characters)' if test -f 'ngdata.c.diff' then echo shar: "will not over-write existing file 'ngdata.c.diff'" else sed 's/^ X//' << \SHAR_EOF > 'ngdata.c.diff' X*** ngdata.c Tue Mar 7 07:59:27 1989 X--- ngdata.c.orig Tue Mar 7 07:58:37 1989 X*************** X*** 185,195 **** X ART_NUM floor; X { X register DIR *dirp; X- #ifdef I386 X- register struct dirent *dp; X- #else X register struct direct *dp; X- #endif X register ART_NUM min = 1000000; X register ART_NUM maybe; X register char *p; X--- 185,191 ---- SHAR_EOF if test 369 -ne "`wc -c < 'ngdata.c.diff'`" then echo shar: "error transmitting 'ngdata.c.diff'" '(should have been 369 characters)' fi fi echo shar: "extracting 'util.c.diff'" '(1810 characters)' if test -f 'util.c.diff' then echo shar: "will not over-write existing file 'util.c.diff'" else sed 's/^ X//' << \SHAR_EOF > 'util.c.diff' X*** util.c Tue Mar 7 08:40:50 1989 X--- util.c.orig Tue Mar 7 07:59:39 1989 X*************** X*** 32,41 **** X char *s, *shl; X { X int status, pid, w; X- #ifndef I386 X register int (*istat)(), (*qstat)(); X int (*signal())(); X- #endif X char *shell; X X #ifdef SIGTSTP X--- 32,39 ---- X*************** X*** 54,66 **** X _exit(127); X } X #ifndef lint X- #ifdef I386 X- sighold(SIGINT); X- sighold(SIGQUIT); X- #else X istat = signal(SIGINT, SIG_IGN); X qstat = signal(SIGQUIT, SIG_IGN); X- #endif X #else X istat = Null(int (*)()); X qstat = Null(int (*)()); X--- 52,59 ---- X*************** X*** 71,83 **** X if (w == -1) X status = -1; X waiting = FALSE; X- #ifdef I386 X- sigrelse(SIGINT); X- sigrelse(SIGQUIT); X- #else X signal(SIGINT, istat); X signal(SIGQUIT, qstat); X- #endif X #ifdef SIGTSTP X sigset(SIGTSTP,stop_catcher); X sigset(SIGCONT,cont_catcher); X--- 64,71 ---- X*************** X*** 250,260 **** X static DIR *dirp; X static int off; X static struct stat d, dd; X- #ifdef I386 X- static struct dirent *dir; X- #else X static struct direct *dir; X- #endif X X char * X getwd(np) X--- 238,244 ---- X*************** X*** 281,300 **** X if(d.st_ino == dd.st_ino) X goto done; X do X- #ifdef I386 X- if ((dir = readdir(dirp)) == Null(struct dirent *)) X- #else X if ((dir = readdir(dirp)) == Null(struct direct *)) X- #endif X prexit("getwd: read error in ..\n"); X while (dir->d_ino != d.st_ino); X } X else do { X- #ifdef I386 X- if ((dir = readdir(dirp)) == Null(struct dirent *)) X- #else X if ((dir = readdir(dirp)) == Null(struct direct *)) X- #endif X prexit("getwd: read error in ..\n"); X stat(dir->d_name, &dd); X } while(dd.st_ino != d.st_ino || dd.st_dev != d.st_dev); X--- 265,276 ---- SHAR_EOF if test 1810 -ne "`wc -c < 'util.c.diff'`" then echo shar: "error transmitting 'util.c.diff'" '(should have been 1810 characters)' fi fi exit 0 # End of shell archive ----cut here----- -- Al Evans "You'd grep to know what ...uunet!execu!sequoia!crucible!al you really sed." --Referent Blob