Subject: Compile of ssh problem (linking PIC code ..)
To: None <port-pmax@netbsd.org>
From: Richard Michael <rmichael@oci.utoronto.ca>
List: port-pmax
Date: 01/29/2000 14:52:01
Hello,

	This probably isn't a netbsd specific problem, but I don't know how to
address this and I've just done a fairly standard (AFAIK) install of 1.4.1
..

	I'm having trouble compiling ssh 1.2.27, and get this error from ld:

gcc -pipe  -o ssh ssh.o sshconnect.o log-client.o readconf.o hostfile.o
readpass.o  tildexpand.o clientloop.o canohost.o  idea.o  rsa.o randoms.o
md5.o buffer.o emulate.o packet.o compress.o  xmalloc.o ttymodes.o
newchannels.o bufaux.o authfd.o authfile.o  crc32.o rsaglue.o cipher.o des.o
match.o arcfour.o mpaux.o  userfile.o signals.o blowfish.o deattack.o
-Lgmp-2.0.2-ssh-2 -lgmp -Lzlib-1.0.4 -lz -L/usr/local/lib -lwrap -lcrypt
-L/usr/local/lib  -lutil 
/usr/bin/ld: mpn_add_n.o: linking PIC files with non-PIC files
Bad value: failed to merge target specific data of file
gmp-2.0.2-ssh-2/libgmp.a(mpn_add_n.o)

--
More messages like that, and eventually:

collect2: ld returned 1 exit status
*** Error code 1
--

Can someone help me take a stab at this, or point me to some reading about
PIC code?
It seems me that libgmp.a might be the problem .. is this some kind of a
static/shared library issue?  (I'm not a programmer :( - _yet_ .)

I've checked usenet and have seen others with this problem, verbatim - but
no solutions were posted.

Thanks for any advice.

Cheers,
Richard