Compile of openssh 4.2 failed with openssl 0.9.8

Tim Rice tim at multitalents.net
Tue Sep 13 10:14:31 EST 2005


On Sun, 11 Sep 2005, Thomas Litsch wrote:

[snip]
> I'm not a programmer, but could it be a problem of an too old gcc?
> I'm using gcc Version 3.2.2.

Not too old. I compile on a 2.7.x.x just fine.

> 
> 
> Here's  the Output again:
> gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o 
> sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/  -lssh 
> -lopenbsd-compat -lresolv -lcrypto -lutil -lz -lnsl  -lcrypt
> ./libssh.a(rsa.o): In function `rsa_generate_additional_parameters':
> /root/openssh-4.2p1/rsa.c:136: undefined reference to `BN_mod'
> /root/openssh-4.2p1/rsa.c:139: undefined reference to `BN_mod'
                                                         ^^^^^^^
BN_mod is a define in openssl/bn.h
Maybe your openssl is messed up.
Use nm(1) to see if you have BN_div in libcrypto.0.9.8

> collect2: ld returned 1 exit status
> 
> 
> 

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list