Subject: Re: compiling pgp
To: =?ISO-2022-JP?B?GyRCTCcxOhsoQiAbJEI/PxsoQg==?= / MINOURA Makoto <minoura@kawasaki.flab.fujitsu.co.jp>
From: Aaron Brown <abrown@eecs.harvard.edu>
List: port-sparc
Date: 06/27/1996 09:07:54
> 
> > Has anyone got pgp2.6.2 running under NetBSD 1.1 or 1.2_BETA? I
> > first tried to compile it with `make netbsd', only to discover that
> > it was trying to assemble i386 code when I did this. :-/ So I tried
> > the sun4gcc option, which compiles, but gets a premature end of
> > file when it tries to decrypt (or decompress?) anything.
> 
> I simply added a new entry :-
> 
> netbsd_sparc:
> 	$(MAKE) all CC=gcc LD=gcc OBJS_EXT="sparc.o" \
> 	CFLAGS="$(RSAINCDIR) -O -DUNIX -DHIGHFIRST -DIDEA32 -DMAX_NAMELEN=255"

But you also have to go through the code and cast all of the offset arguments 
to lseek to off_t because NetBSD uses 64-bit file offsets and the code passes 
32-bit offsets.

--Aaron