🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6946

Re: nn port to DEC Alpha OSF/1 ?

#6946
From: Ofer Inbar
Date: Thu, 29 Dec 1994 22:30
94 lines
3701 bytes
rassilon@cs.simpson.edu (Bill Tutt) writes:
>I've had no trouble getting nn to work with OSF/1. In fact 
>here are my relavent.h files:

Thanks.  I tried the .h files you gave me, and it was an improvement,
although it still doesn't really work.  This one may be pretty easy to
fix, though...  I don't have time now, I will try again next week, but
I wanted to follow up before your article expired just in case... :)

During the make, I get a few of these (on several different files):
gcc -Iconf   -c macro.c
macro.c: In function `m_define':
macro.c:404: warning: cast to pointer from integer of different size

The offending line in this case is:
    return type == 0 ? (char *)macro[cur_m] : (char *)(K_MACRO | cur_m);

It finally dies on this:
gcc -Iconf   -c dir.c
dir.c: In function `list_directory':
dir.c:57: warning: assignment from incompatible pointer type
dir.c:58: dereferencing pointer to incomplete type
*** Exit 1
Stop.

It might work if I just went through and changed all the casts...
But there's probably some other type inconsistency I'd cause then.

>config.h:

>#define NOV

Hmm, I'm compiling without NOV, I wonder if that makes a difference
here.

>/* #define NETWORK_DATABASE */

On the other hand, I do need NETWORK_DATABASE...

>#define NNTP

Yup, both of us are using NNTP.

>#include "s-ultrix.h"

Strange that you're working from s-ultrix.h rather than the supplied
s-osf1.h, which is what I first tried.  Any reason for that?  Anyway,
I tried your s-ultrix.h this time.

>#include "m-template.h"

Again, any reason you started from the template rather than the
supplied m-alpha.h?  Anyway, I tried your m- file this time.

>m-template.h:

>/* NOTE!!!!!!!!!!!! */
>/* All I had to do basically was change long to int in the typedef of int32*/

>/*      MACHINE TYPE	DEFINED TYPE		VALUE RANGE	*/

>typedef unsigned char	int8;		/*        0 ..     255 */
>typedef short		int16;		/*  -10,000 ..  10,000 */
>typedef int		int32;		/* -100,000 .. 100,000 */
>typedef unsigned int	uint32;		/* 	  0 ..  2^31-1 */

The supplied m-alpha.h already had this.

> *	Define NETWORK_BYTE_ORDER if the machine's int32's are
> *	already in network byte order, i.e. m68k based.
> */

>#define NETWORK_BYTE_ORDER	/* */

Hmmm, the supplied m-alpha.h specifically had this:

#ifdef NETWORK_DATABASE
#undef NETWORK_BYTE_ORDER
#include <netinet/in.h>
#endif  /* NETWORK DATABASE */

Does anyone know what the byte sex of an Alpha's int is?

>Bill Tutt
>rassilon@cs.simpson.edu

Thanks for your help.

Anyone else got ideas?

  --  Cos (Ofer Inbar)  --  cos@cs.brandeis.edu
  --  WBRS (BRiS)  --  WBRS@binah.cc.brandeis.edu  WBRS@brandeis.bitnet
 Brandeis University Computer Science Department         (617) 736-2700
 415 South Street, Waltham MA, 02254-9110        System Admin: 736-2717
Technical Details
Message-ID: <3dvda7$c5q@news.cs.brandeis.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news2.near.net!news3.near.net!noc.near.net!news.cs.brandeis.edu!cos
References: <3d78td$1le@news.cs.brandeis.edu> <3d7rc4$c9p@larch.cc.swarthmore.edu> <3dcdfk$gqo@news.cs.brandeis.edu> <3dcgae$lh1@insosf1.infonet.net>

Show Full Headers
Complete Article Headers
Message-ID: <3dvda7$c5q@news.cs.brandeis.edu>
Subject: Re: nn port to DEC Alpha OSF/1 ?
Date: Thu, 29 Dec 1994 22:30:31 +0000
From: cos@cs.brandeis.edu (Ofer Inbar)
References: <3d78td$1le@news.cs.brandeis.edu> <3d7rc4$c9p@larch.cc.swarthmore.edu> <3dcdfk$gqo@news.cs.brandeis.edu> <3dcgae$lh1@insosf1.infonet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news2.near.net!news3.near.net!noc.near.net!news.cs.brandeis.edu!cos
Newsgroups: news.software.nn
Organization: Brandeis University
Lines: 94
NNTP-Posting-Host: cran.cs.brandeis.edu
X-Newsreader: NN version 6.5.0 #3