Subject: SUMMARY: problems compiling ssh-1.2.17
To: None <port-pmax@NetBSD.ORG>
From: Anne Bennett <anne@alcor.concordia.ca>
List: port-pmax
Date: 05/22/1997 18:38:41
I wrote:

> Has anyone successfully installed ssh-1.2.17 (or any other version)
> under netbsd/pmax, either 1.2 or current?
> 
> I'm running the mid-March snapshot of netbsd/pmax on a DECstation
> 2100, and I'm having trouble compiling ssh.  [...]
[bombs in ld stage for ssh with:]
>    ld: mpn_add_n.o: linking PIC files with non-PIC files
[etc., and]
>    /usr/lib/libwrap.so: undefined reference to `allow_severity'
>    /usr/lib/libwrap.so: undefined reference to `deny_severity'

I received lots of explanations and good advice.  Thanks to:

   TW = "Tracy J. Di Marco White" <gendalia@iastate.edu>
   TL = Ted Lemon <mellon@hoffman.vix.com>
   MH = "Michael L. Hitch" <mhitch@lightning.oscs.montana.edu>
   JS = Jonathan Stone <jonathan@DSG.Stanford.EDU>:


Here some particularly helpful extracts from the conversation:

TL> The snapshot didn't work for me, though, so I did actually have
TL> to build a complete tree - maybe something that was fixed after the
TL> snapshot was made is causing you trouble.

MH> The PIC stuff has to do with the shared library support on the pmax. [...]

JS> My first guess is that the Makefile rules to build ssh libraries from
JS> assembler sources don't work with a NetBSD ELF target.  If ssh works
JS> properly on IRIX 6, then the relevant assembler magic
JS> (.cprestore/.cpsave, and assembling with .abicalls or -DABICALLS) are
JS> probably in there somewhere.

MH> I added .abicalls to all the mips2 assembly source files and got rid of
MH> the PIC/non-PIC messages.
MH> 
MH> The problem with the libwrap stuff seems to be caused by ld unconditionally
MH> including the libwrap shared library, [...] clean build by removing
MH> the -lwrap from the library options in the Makefile
MH> and adding it explicitly to the comand to build sshd (which is the only
MH> program using libwrap).


I think I can manage to change the Makefile by myself :-), but I must
admit that I have little experience with assembly language, none
recent, and none at all for the MIPS chip. (6502, anyone?)  Could you
post your diffs or explain where I should add ".abicalls"?


(BTW, I eventually got a clean compile on a stock NetBSD 1.2 system,
without libwrap, but I'd like to do this "right", and maybe learn a
thing or two in the process.)


Anne.
-- 
Ms. Anne Bennett, Computing Services, Concordia University, Montreal H3G 1M8
anne@alcor.concordia.ca                                       (514) 848-7606