Subject: Re: Compile of ssh problem (linking PIC code ..)
To: None <static@mail.velenje.cx>
From: NetBSD Mailing list <netbsd@mrynet.com>
List: port-pmax
Date: 01/29/2000 12:23:03
> Use the SSH port in the pkgsrc tree, it patches it so this doesn't happen.
> 
> Claudio

The pmax pkgsrc setup didn't work for me.  It still bailed on the PIC issues.
Additionally, 6 of the makefile's "install:" rule patches failed.

I What I did was simply manually change every makefile, after configuration,
and added '-fPIC' to the CFLAGS lines.  ssh is working just dandy on my pmax
now.

Regards,
-skots

> > 
> > 	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
> > --
> > 
> > Cheers,
> > Richard
> > 
> 

--
Scott G. Akmentins-Taylor     InterNet: staylor@mrynet.com
MRY Systems			        staylor@mrynet.lv
    (Skots Gregorijs Akmentins-Teilors -- just call me "Skots")
		----- Labak miris neka sarkans -----