PGP won't compile under Slackware 3.0

PGP won't compile under Slackware 3.0

Post by Richard Bro » Thu, 20 Jun 1996 04:00:00



I just downloaded PGP262.  I was able to get it to compile under
Slackware 2.3, but not under Slackware 3.0.  It gave a couple of
screenfuls of errors really fast, before it bombed.  Is there
something inherently incompatible with the new GCC, or maybe a
simple fix?  

I can post the error messages here if that helps, but first I have to
remember how to direct them to a file (2&>1 or something).

Thanks in advance for your help

Richard

--
If scientific reasoning were limited to the logical processes of
arithmetic, we should not get very far in our understanding of the
physical world.  One might as well attempt to grasp the game of poker
entirely by the use of the mathematics of probability.
                -- Vannevar Bush

 
 
 

PGP won't compile under Slackware 3.0

Post by Richard Bro » Thu, 20 Jun 1996 04:00:00


Ok, I got the bash man page to tell me how to save error messages.
Here are the messages I get when I try to compile PGP under
Slackware 3.0:

        make all CC=gcc LD=gcc OBJS_EXT="_80386.o _zmatch.o" \
        CFLAGS="-I../rsaref/source -I../rsaref/test -DUSEMPILIB -O6 -g3 -DUNIX
        -DIDEA32 -DASM" make[1]: Entering directory `/pgp/src'
        gcc -o pgp pgp.o crypto.o keymgmt.o fileio.o mdfile.o more.o armor.o
        mpilib.o mpiio.o genprime.o rsagen.o random.o idea.o passwd.o md5.o
        system.o language.o getopt.o keyadd.o config.o keymaint.o charset.o
        randpool.o noise.o zbits.o zdeflate.o zfile_io.o z
        globals.o zinflate.o zip.o zipup.o ztrees.o zunzip.o  rsaglue2.o
        _80386.o _zmatch.o   ../rsaref/install/unix/rsaref.a
        crypto.o(.text+0xab4): undefined reference to `P_SETP'
        crypto.o(.text+0xf15): undefined reference to `P_SETP'
        crypto.o(.text+0x1536): undefined reference to `P_SETP'
        crypto.o(.text+0x158f): undefined reference to `P_SETP'
        crypto.o(.text+0x1a8f): undefined reference to `P_SETP'
        crypto.o(.text+0x1def): more undefined references to `P_SETP' follow
        mpilib. o(.text+0x363): undefined reference to `P_ROTL'
        mpilib.o(.text+0x3d6): undefined reference to `P_SUBB'
        mpilib.o(.text+0x546): undefined reference to `P_ROTL'
        mpilib.o(.text+0x5c9): undefined reference to `P_SUBB'
        mpilib.o(.text+0x9d3): undefined reference to `P_ROTL'
        mpilib.o(.text+0xa46): undefined reference to `P_SUBB'
        mpilib.o(.text+0xc37): undefined reference to `P_ROTL'
        mpilib.o(.text+0xc50): undefined reference to `P_ADDC'
        mpilib.o(.text+0xccf): undefined reference to `P_SMULA'
        mpilib.o(.text+0xd86): undefined reference to `P_SETP'
        mpilib.o(.text+0xf8d): undefined reference to `p_setrecip'
        mpilib.o(.text+0xfa2): undefined reference to `P_SETP'
        mpilib.o(.text+0x1022): undefined reference to `P_SMULA'
        mpilib.o(.text+0x104e): undefined reference to `P_SETP'
        mpilib.o(.text+0x1103): undefined reference to `P_SETP'
        mpilib.o(.text+0x114a): undefined reference to `p_quo_digit'
        mpilib.o(.text+0x115e): undefined reference to `P_SMULA'
        mpilib.o(.text+0x1173): undefined reference to `P_SUBB'
        mpilib.o(.text+0x11a2): undefined reference to `P_SETP'
        mpilib.o(.text+0x1226): undefined reference to `P_SETP'
        mpilib.o(.text+0x12ec): undefined reference to `p_setrecip'
        mpilib.o(.text+0x15f1): undefined reference to `P_SETP'
        mpilib.o(.text+0x1621): undefined reference to `P_SETP'
        mpilib.o(.text+0x17f1): undefined reference to `p_setrecip'
        mpilib.o(.text+0x1814): undefined reference to `P_SETP'
        mpilib.o(.text+0x18c8): undefined reference to `P_SUBB'
        mpilib.o(.text+0x18db): undefined reference to `P_ADDC'
        mpilib.o(.text+0x190e): undefined reference to `P_ADDC'
        genprime.o(.text+0x1cd): undefined reference to `P_SETP'
        genprime.o(.text+0x380): undefined reference to `P_SETP'
        genprime.o(.text+0x818): undefined reference to `P_SUBB'
        genprime.o(.text+0x89a): undefined reference to `P_ADDC'
        rsagen.o(.text+0x248): undefined reference to `P_SETP'
        rsagen.o(.text+0x32d): undefined reference to `P_SUBB'
        keymaint.o(.text+0x24ca): undefined reference to `P_SETP'      
        zdeflate.o(.text+0x21): undefined reference to `match_init'
        zdeflate.o(.text+0x305): undefined reference to `longest_match'
        rsaglue2.o(.text+0xf0b): undefined reference to `P_SETP'
        rsaglue2.o(.text+0x10b3): undefined reference to `P_SETP'
        _zmatch.o(.text+0xb): undefined reference to `_max_chain_length'
        _zmatch.o(.text+0x11): undefined reference to `_strstart'
        _zmatch.o(.text+0x23): undefined reference to `_window'
        _zmatch.o(.text+0x29): undefined reference to `_prev_length'
        _zmatch.o(.text+0x38): undefined reference to `_good_match'
        _zmatch.o(.text+0x5a): undefined reference to `_prev'
        _zmatch.o(.text+0x66): undefined reference to `_window'
        _zmatch.o(.text+0x6f): undefined reference to `_window'
        _zmatch.o(.text+0x77): undefined reference to `_window'
        _zmatch.o(.text+0x94): undefined reference to `_window'
        _zmatch.o(.text+0xa4): undefined reference to `_match_start'
        make[1]: *** [pgp] Error 1
        make[1]: Leaving directory `/pgp/src'
        make: *** [linux] Error 2

I am going to hazzard a guess that gcc isn't using some library.
If this is the case, how can I tell which one, and how can I
correct it?

Thanks in advance.

Richard
--
If scientific reasoning were limited to the logical processes of
arithmetic, we should not get very far in our understanding of the
physical world.  One might as well attempt to grasp the game of poker
entirely by the use of the mathematics of probability.
                -- Vannevar Bush

 
 
 

PGP won't compile under Slackware 3.0

Post by Jason Whi » Fri, 21 Jun 1996 04:00:00




>I just downloaded PGP262.  I was able to get it to compile under
>Slackware 2.3, but not under Slackware 3.0.  It gave a couple of
>screenfuls of errors really fast, before it bombed.  Is there
>something inherently incompatible with the new GCC, or maybe a
>simple fix?  

  I had the same problem compiling it as an ELF binary.  Check out the
"PGP 2.6.2: Frequently Asked Questions, Known Bugs, and Improvements" web
page at http://www.mit.edu:8001/people/warlord/pgp-faq.html

  There's a very simple fix for this problem.  I applied the fix and
compiled it with no problems whatsoever.

Here's the relevent snippit from the document:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New Improvements

Linux/ELF changes

THe PGP 2.6.2 sources do not build under Linux/ELF. If you want to build
2.6.2 as an ELF binary, you need to make two changes, one each to 80386.S
and zmatch.S. Near the beginning of the file you will find a #if
directive for SYSV. Apply the appropriate change to the appropriate file
to get it to work 13 Oct 95:

   #ifndef SYSV ==> #if !defined(SYSV) && !defined(__ELF__)

   #ifdef SYSV ==> #if defined(SYSV) || defined(__ELF__)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Good luck!
-Jason
--
       Jason D. White                http://www.public.iastate.edu/~jdwhite

    Iowa State University            (PGP pub key, Anon FTP, US Mail Addr)
Durham Center Operations Staff       Strive for excellence, not perfection.

 
 
 

PGP won't compile under Slackware 3.0

Post by mumfo » Sat, 22 Jun 1996 04:00:00




>I just downloaded PGP262.  I was able to get it to compile under
>Slackware 2.3, but not under Slackware 3.0.  It gave a couple of
>screenfuls of errors really fast, before it bombed.  Is there
>something inherently incompatible with the new GCC, or maybe a
>simple fix?  

>I can post the error messages here if that helps, but first I have to
>remember how to direct them to a file (2&>1 or something).

>Thanks in advance for your help

>Richard

If I recall, this is a problem with SYSV type assembling (either having
or not having a _ in front of the symbols)... edit src/makefile and
change the linux: part to

linux:
        $(MAKE) all CC=gcc LD=gcc OBJS_EXT="_80386.o _zmatch.o" \
        CFLAGS="$(RSAINCDIR) -O6 -g3 -DUNIX -DIDEA32 -DASM" \
        ASMDEF=-DSYSV

and recompile, it _should_ work then.

--

PGPprint = E3 0F DE CC 94 72 D1 1A  2D 2E A9 08 6B A0 CD 82
Why did the mathematician name his dog Cauchy?
Because he left residue at every pole.

 
 
 

PGP won't compile under Slackware 3.0

Post by Richard Bro » Sat, 22 Jun 1996 04:00:00


Thanks go to several people who responded privately with solutions.
For any one else with this problem, the easiest solution I received
is to add the following to the end of the linux entry in the makefile:

 ASMDEF=-DSYSV

Richard

--
If scientific reasoning were limited to the logical processes of
arithmetic, we should not get very far in our understanding of the
physical world.  One might as well attempt to grasp the game of poker
entirely by the use of the mathematics of probability.
                -- Vannevar Bush

 
 
 

1. help with compiling PGP w slackware 3.0

     Hello everyone.
     I was wondering if anyone has successfully compiled PGP 262 under
SlackWare 3.0.
When I try and compile it, I get errors durring the linking when it trys
to link the asm files zmatch.o and the other asm files.
I did compile it under SlackWare 2.3, but I figured I just would
recompile it for ELF.
Can any one give me any help?

Thanks in advance.

<<<Kelly Prescott>>>

2. ?How to aboart loading of modules?

3. Does PGP Compile on Slackware 3.0 System?

4. SUNWssadv Location for FC100 Card Install

5. Compile PGP on Slackware 3.0?

6. Tools for IRQ and IO address

7. compiling pgp with slackware 3.0 (elf)

8. Q: ICMP: Source Route Failed.

9. pgp doesn't compile under slackware

10. Installing 'X' from SlackWare 2.2.0 in a SlackWare 3.0 system?

11. Slackware 3.0 commands won't run using Linux 1.2.13 ramdisk

12. When I setup Linux Slackware 3.0, it won't mount my Wearnes 6X CDROM

13. Slackware 3.0 installs but won't config