Subject: Re: problem with ssh-1.2.27
To: Jan Satko <satko@quanto.uniag.sk>
From: Paul Mather <paul@gromit.dlib.vt.edu>
List: port-pmax
Date: 08/16/1999 10:15:34
On Mon, 16 Aug 1999, Jan Satko wrote:

=> I have problem with compiling ssh-1.2.27 on netbsd-1.4.
=> 
=> make
=> .
=> .
=> /usr/bin/ld: mpn_sub_n.o: linking PIC files with non-PIC files
=> Bad value: failed to merge target specific data of file
=> gmp-2.02-ssh-2/libgmp.a (mnp_sub_n.o)
=> .
=> .
=> collect2: ld returned 1 exit status
=> *** Error code 1

I had this problem, too.  I solved it by applying "patch-am" and
"patch-ap" from pkgsrc/security/ssh/patches.  That allows ssh-1.2.27 to
compile cleanly.

I think the problem is that some of the GMP library files are supplied
as assembler files, and so I think "-KPIC" needs to be passed onto the
assembler to keep everything happy.

I'd also conjecture that "--without-asm" as an option to configure would
solve the compilation problem, too.

Cheers,

Paul.