Article View: news.software.nn
Article #2999Compiling NN 6.5#16 with SCO Unix 3.2.4 Problems
From: Kevin W. Reed
Date: Sun, 30 Aug 1992 23:51
Date: Sun, 30 Aug 1992 23:51
76 lines
2677 bytes
2677 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 == ®dummy)
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
Technical Details
Message-ID:
<1992Aug30.235126.16612@telesys.tnet.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-biz.sco.general.mbox.zip!sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ennews!telesys!kreedShow Full Headers
Complete Article Headers
Message-ID: <1992Aug30.235126.16612@telesys.tnet.com> Subject: Compiling NN 6.5#16 with SCO Unix 3.2.4 Problems Date: Sun, 30 Aug 1992 23:51:26 GMT From: kreed@telesys.tnet.com (Kevin W. Reed) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-biz.sco.general.mbox.zip!sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ennews!telesys!kreed Newsgroups: news.software.nn,news.software.readers,comp.unix.xenix.sco,biz.sco.general Organization: TeleSys Development Systems, Mesa AZ Followups-To: news.software.nn Keywords: CNEWS, SCO, UNIX, NN Lines: 75