Failure to compile OpenSSH.

Atro Tossavainen atossava at cc.helsinki.fi
Wed Jun 6 21:31:58 EST 2001


Hello guys.

Following Dug's withdrawal of the SSH1 AFS patches, I'm trying to give
OpenSSH installation another shot. It fails.

The setting:

* Platforms: Linux (Immunix 6.2), Solaris 7, IRIX 6.5, OSF1 4.0F, HP-UX 10.20.

* Compilers: StackGuard egcs on Linux, vendor-supplied native on others
  (Workshop 5.0 Sun; MIPSpro 7.3 SGI; OSFCMPLRS440 package; HP ANSI C
  compiler B3899BA B.10.20.07)

* Kerberos: KTH krb4 1.0.8 on all platforms, installed on AFS, /usr/athena
  linked to /afs/biocenter.helsinki.fi/v/@sys/libraries/kth-krb4/latest
  on all

* AFS: AFS 3.6 Patch #2 (Base configuration 2.14) on all but HP-UX (3.4a).

* Zlib: 1.1.3 on all platforms. Installed locally on IRIX and Linux, on
  AFS on others. -I and -L given in CFLAGS and LDFLAGS where needed.

* OpenSSL: 0.9.6a on all platforms, installed on AFS, at
  /afs/biocenter.helsinki.fi/v/@sys/libraries/openssl/latest

* Configure line: ./configure --with-ssl-dir=/afs/biocenter.helsinki.fi/v/@sys/libraries/openssl/latest --with-kerberos4=/usr/athena --with-afs=/usr/afsws

Results:

Linux:		Configure fails to find OpenSSL. (1)
Solaris:	Configure fails to find OpenSSL. (2)
SGI:		Configure fails to find OpenSSL. (3)
Alpha:		Configure succeeds, build fails. (4)
HP:		Configure succeeds, build fails. (5)

(1)
configure:4411: gcc -o conftest -g -O2 -Wall -I/afs/bi/v/@sys/libraries/openssl/latest/include  -L/afs/bi/v/@sys/libraries/openssl/latest/lib conftest.c -lz -lnsl  -lutil -lcrypto 1>&5
/afs/bi/v/@sys/libraries/openssl/latest/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0x9e): undefined reference to `dlopen'
dso_dlfcn.o(.text+0xb4): undefined reference to `dlopen'
dso_dlfcn.o(.text+0x10a): undefined reference to `dlclose'
/afs/bi/v/@sys/libraries/openssl/latest/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.o(.text+0x1f3): undefined reference to `dlsym'
/afs/bi/v/@sys/libraries/openssl/latest/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.o(.text+0x2f3): undefined reference to `dlsym'
/afs/bi/v/@sys/libraries/openssl/latest/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.o(.text+0x472): undefined reference to `dlclose'
collect2: ld returned 1 exit status

(2)
configure:4354: checking for OpenSSL directory
configure:4411: cc -o conftest -I/afs/bi/p/include -I/afs/bi/v/@sys/libraries/openssl/latest/include -I/usr/local/include -R/afs/bi/v/@sys/libraries/openssl/latest/lib -L/afs/bi/v/@sys/libraries/openssl/latest/lib -L/afs/bi/p/lib -ldl -L/usr/local/lib -R/usr/local/lib conftest.c -lz -lsocket -lnsl -lgen -lcrypto 1>&5
configure: failed program was:
#line 4397 "configure"
#include "confdefs.h"

#include <string.h>
#include <openssl/rand.h>
int main(void) 
{
        char a[2048];
        memset(a, 0, sizeof(a));
        RAND_add(a, sizeof(a), sizeof(a));
        return(RAND_status() <= 0);
}

(3)
configure:4354: checking for OpenSSL directory
configure:4411: cc -o conftest -g  -I/usr/local/include  conftest.c -lz -lgen -lcrypto 1>&5
cc-1005 cc: ERROR File = configure, Line = 4400
  The source file "openssl/rand.h" is unavailable.

  #include <openssl/rand.h>
                           ^

1 catastrophic error detected in the compilation of "conftest.c".
Compilation terminated.
configure: failed program was:
#line 4397 "configure"
#include "confdefs.h"

#include <string.h>
#include <openssl/rand.h>
int main(void) 
{
        char a[2048];
        memset(a, 0, sizeof(a));
        RAND_add(a, sizeof(a), sizeof(a));
        return(RAND_status() <= 0);
}

(4)
cc: Info: /usr/athena/include/ktypes.h, line 18: In this declaration,
"u_int32_t" has a duplicate typedef at line number 189 in file
defines.h.  This might not be portable. (duptypedef)
typedef unsigned int u_int32_t;         /* 32 bits */
---------------------^
gmake: *** [radix.o] Error 1

(5)
cc -Ae -I/afs/bi/p/include -Ae -I. -I.. -I. -I./.. -I/afs/bi/v/@sys/libraries/openssl/latest/include  -D_HPUX_SOURCE -I/usr/athena/include -I/usr/afsws/include -DHAVE_CONFIG_H -c strmode.c
cc: "../openbsd-compat/glob.h", line 48: warning 617: Redeclaration of tag "stat" ignored.
cc: "strmode.c", line 45: error 1711: Inconsistent parameter list declaration for "strmode".
gmake[1]: *** [strmode.o] Error 1
gmake[1]: Leaving directory `/scratch/openssh-2.9p1/openbsd-compat'
gmake: *** [openbsd-compat/libopenbsd-compat.a] Error 2

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . iki . fi / atro . tossavainen / >



More information about the openssh-unix-dev mailing list