Compile of openssh 4.2 failed with openssl 0.9.8

Tim Rice tim at multitalents.net
Sun Sep 11 09:36:54 EST 2005


On Sat, 10 Sep 2005, Thomas Litsch wrote:

> Hi,
> 
> I tried to compile openssh 4.2 with gcc 3.2.2 and openssl 0.9.8 on linux 
> running Kernel 2.4.29.
> 
> The error I get is:
> 
> make[1]: Verlassen des Verzeichnisses 
> »/home/tlitsch/openssh-4.2p1/openbsd-compat«
> gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o 
> sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/include/openssl 
                                                    ^^^^^^^^^^^^^^^^^^^^^^
I suspect this is your problem

>   -ldl -lssh -lopenbsd-compat -lresolv -lcrypto -lutil -lz -lnsl -lcrypt
> ./libssh.a(rsa.o): In function `rsa_generate_additional_parameters':
> rsa.o(.text+0x2b4): undefined reference to `BN_mod'
> rsa.o(.text+0x2e6): undefined reference to `BN_mod'
> collect2: ld returned 1 exit status
> make: *** [ssh] Fehler 1
> 
> I did the ./configure with this Shell-Script:
> 
> #! /bin/bash
> #
> # Build or openssh
> 
> export CFLAGS="-O3 -pipe"
> export CXXFLAGS="-O3 -pipe"
> 
> ./configure --prefix=/usr --sysconfdir=/etc/ssh \
>          --libexecdir=/usr/lib/ssh \
>          --localstatedir=/var/state --mandir=/usr/share/man \
>          --with-pam --with-zlib \
>          --with-ssl-dir=/usr/include/openssl \

Try droping the --with-ssl-dir= line.

>          --with-tcp-wrappers \
>          --with-ldflags=-ldl
> 
> #EOF

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


More information about the openssh-unix-dev mailing list