How do you get PGP 2.6.2 to compile on Solaris/x86?

How do you get PGP 2.6.2 to compile on Solaris/x86?

PGP, or Pretty-good Privacy, is strong-encryption software
for encrypting, decrypting, and digitally-signing files and data.
I would steer clear of PGP 5 as it has compatibility problems.


First, check to see if your version of PGP 2.6.2 has a bug.
In file src/crypto.c, function make_signature_certificate(),
the line:
"byte . . . outbuf[MAX_BYTE_PRECISION];"
should be changed to:
"byte . . . outbuf[MAX_BYTE_PRECISION+2];"


To compile, change file makefile, at around line 116, as follows:


$(CPP) $(ASMDEF) 80386.S > _80386.s
  to


$(CPP) $(ASMDEF) 80386.S | grep -v '^# ' > _80386.s


(Don't forget the leading tab character, cntl-i).
Next, type:
cd rsaref/install/unix; make; cd ../../../src; make solx86gcc
(if you're using the Sun WorkShop compilers, change "gcc" to "cc"
and remove "-traditional-cpp" in file makefile).


I recommend you consider using GPG instead of PGP. GPG, Gnu Privacy Guard, is
actively being maintained and is compatible with PGP.


As a reminder, the US Government considers PGP, GPG,
and other strong-encryption
software a "munition" and prohibits the export of PGP software to
countries other than the US and Canada without an export license.
Certain other governments (e.g., France or Russia) even prohibit possession of
encryption software.


To use PGP, I hightly recommend Garfinkel's book,

PGP: Pretty Good Privacy


[Makefile patch from Joe Shamblin]






Home
FAQ