🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Doug Sewell Tue, 21 Jan 1992 01:21
Tin 1.07, SIGSEGV answer, a few fixes
#1064
Author: Doug Sewell
Date: Tue, 21 Jan 1992 01:21
86 lines
4315 bytes
Recently I posted that I couldn't get tin V1.07 to run on a NeXT, but
I got 1.04 to run fine.  Others wrote that they couldn't get tin 1.07
to run at all, couldn't get 1.06 to run on a NeXT, etc.  Here's the
answer I found  along with another bugfix, and some NeXT, RS6000,
and NCR Tower fixes.  There's also a bugfix for followup that Jim 
Jim Robinson (robinson@mdivax1.mdd.comm.mot.com) posted in midDecember.

I'd ftp'd tin 1.07 from a site (long since forgotten) that had merged
all of the patches together into a tarZ, rather than as the separate
patches.  Because of this, I missed this note in the head of one of the
patchfiles  kindof a lastminute notice:

                                    ************************************
                                    * Attention:                       *
                                    *  install patch06 and patch07 !  *
                                    *                                  *
                                    *  a minor bugs has been found:   *
                                    *   after installation of the      *
                                    *   patches change:                *
                                    *   patchlevel.h:                  *
                                    *     #define VERSION "1.0"        *
                                    *     #define PATCHLEVEL 7         *
                                    ************************************

The original patchlevel.h that I had had no VERSION line, and PATCHLEVEL
was set to 6.

I noticed I was getting "VERSION undefined" error messages at compile
time, I threw in a quick, unresearched "DVERSION=1" into the Makefile.
That didn't cut it, since it was expecting a string, not an integer.
Hence the SIGSEGV and other errors as I experienced.  I feel kindof
stupid about not catching this.

I found one other error  the prototype for post_base in proto.h was
int post_base(char *group, int posted);

when it should have been
int post_base(char *group, int *posted);

Without this you got type/prototype conflict errors at compile time, and
according to the code you really want it to be *posted.

Once these were fixed, I did a 'make bsd' and it built with a couple of
niggly warnings that I didn't want to be bothered with, and it ran just
fine.

A couple of systemspecific fixes:

NeXT:

With /bin/rmail as the DEFAULT_MAILER, mail from me came as from /dev/null.
I'm not sure whether this is standard practice, a bug, or a "feature".
Since __NeXT__ is defined, I decided to put /usr/lib/sendmail in instead
of rmail, if __NeXT__ was defined.

(inside #ifdef BSD)
#ifdef __NeXT__
#define DEFAULT_MAILER "/usr/lib/sendmail"
#else
#define DEFAULT_MAILER "/bin/rmail"
#endif

RS6000:

DAUTO_RESIZE shouldn't be used if you don't have /usr/include/sys/ttold.h.
The code surrounding it in art.c looks to be Xspecific (SIGWINCH, for
example), our RS6000 doesn't have X, that might be why we don't have this.

NCR Tower:

It looks like we lost something... there's no <sys/ioctl.h> on a Tower
(at least the one we have).  Around the #ifndef MINIX/#endif, put a
#ifndef NCR/#endif pair.  I thought I fixed this when I ported 1.04 ?

You can tell we like tin here... but we have no history or experience
with other unix newsreaders, either... we're mostly a VM shop, using
a combination of PSU NetNews and NNR.

Followups to news.software.readers.

Doug
 
Doug Sewell, tech support, Youngstown State University computer center
doug@yfn2.ysu.edu, doug@ysu.edu, doug@ysub.bitnet, uunet!ysu.edu!doug
Please don't send NeXTmail, I telnet in too often.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads