🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Kevin W. Reed Sun, 30 Aug 1992 23:51
Compiling NN 6.5#16 with SCO Unix 3.2.4 Problems
#2070
Author: Kevin W. Reed
Date: Sun, 30 Aug 1992 23:51
76 lines
2794 bytes
[followups to news.software.nn]

Hmmm.  Having a bit of a problem compiling NN.

Configuration:

	SCO Unix 3.2.4 and
	Development System 3.2.4s.
	#include "s-scoV386.h" 	<--- from config.h
	#include "m-i80386.h"	<--- from config.h
	NN Version 6.4 PL 16

The problem has occured in one other location (variable.c), but I was able
to code around it (was a different circumstance).  When compiling using
cc, I get the following errors:

regexp.c
Compiler error (assertion): file @(#)expandMD.c:1.14, line 1019 source=681
Compiler error (assertion): file @(#)expand.c:1.13, line 271 source=681
Compiler error (assertion): file @(#)csize.c:1.44, line 643 source=681

The module effected is below:

/* located in file regexp.c */

/*
 - regtail - set the next-pointer at the end of a node chain
 */
static void regtail(p, val)
char           *p;
char           *val;
{
    register char  *scan; 
    register char  *temp;
    register int    offset;

    if (p == &regdummy)
	return;

    /* Find last node. */
    scan = p;
    for (;;) {
	temp = regnext(scan);
	if (temp == NULL)
	    break;
	scan = temp;
    }

    if (OP(scan) == BACK)
	offset = scan - val;
    else
	offset = val - scan;
    *(scan + 1) = (offset >> 8) & 0377;    <- this is the offending line
    *(scan + 2) = offset & 0377;
}

Take out the  >> 8  and all is well.

I can't seem to figure out how to get around this problem.  Is there
a switch for the cc compiler that might change its behaviour so 
that it can compile it correctly?

Cnews, Elm and others compiled and ran with few warnings.  

Same exact settings and source code compiles without any problems with
SCO Unix 3.2.2, Dev system 3.2.??  (Not 4)

Any ideas??


-- 
================== TELESYS DEVELOPMENT SYSTEMS ==================
Kevin W. Reed                Public *NIX Site and Newsfeed Source
kreed@tnet.com           UUCP: ...!ncar!noao!enuucp!telesys!kreed
SCO Xenix/Unix Support              Data/UUCP/BBS +1 602 64
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