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
-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 \
--with-tcp-wrappers \
--with-ldflags=-ldl
#EOF
I also tried with "--with-ssl-dir=/usr/lib" becaus ethis is, where
libcrypto.so lives:
-rw-r--r-- 1 root root 2015040 2005-09-10 07:53
/usr/lib/libcrypto.a
lrwxrwxrwx 1 root root 18 2005-09-10 07:53
/usr/lib/libcrypto.so -> libcrypto.so.0.9.8
lrwxrwxrwx 1 root root 21 2005-09-10 12:25
/usr/lib/libcrypto.so.0 -> /usr/lib/libcrypto.so
-r-xr-xr-x 1 root root 853655 2004-03-31 11:33
/usr/lib/libcrypto.so.0.9.6
-r-xr-xr-x 1 root root 1398303 2005-09-10 07:53
/usr/lib/libcrypto.so.0.9.8
But the error remains the same.
A few words to my background:
I'm involved in maintaining a special Linux Distribution for german
Schools, so what we have here is something based on SuSE 9.0 with a lot
of self-compiled programs.
Can anybody help me?
--
Gruss, /"\
Thomas Litsch \ / ASCII ribbon campain
www.linux-schule.de X against HTML mailing
skype Kontakt: tlitsch / \ and posting