Patch to make openssh-2.1.1p3 compile on SunOS 4.1.4

Gordon Atwood gordon at
Sat Jul 15 06:44:42 EST 2000


For the last few weeks I've been struggling to get openSSL/openSSH compiled
and running under SunOS.

Specfically, openssh-2.1.1p3:
  SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0.
  Compiled with SSL (0x00905820).

on SunOS 4.1.4.

Happily I can say there is only one small change so I'm not going to even
try to generate all the associated noise you'd expect.

The function 'strtod' in entropy.c requires '#include <floatingpoint.h>' to
work.  Without it your entropy rate from the prng_cmds file doesn't get
converted into the correcting floating-point number.

The symptom shows up during the make as:
  $ ./ssh-keygen -b 1024 -f /usr/host/etc/ssh/ssh_host_key -N "" 
  Not enough entropy in RNG

SOLUTION:  (mine :-)  Insert '#include <floatingpoint.h>' into entropy.c

Note that this is just under SunOS.  


Of less importance:  you need to compile with '-liberty' in order to get the
system call for 'strerror' to work.

In order to do that I need to do the following 'configure' command:

  LIBS="-liberty" ./configure --prefix=/usr/local/openssh --sysconfdir=\
    /usr/host/etc/ssh --bindir=/usr/host/bin --sbindir=/usr/host/sbin \
    --with-tcp-wrappers --with-xauth --without-pam --with-ssl-dir=\
    /usr/local/openssl --with-cflags=-I/usr/local/include \


Finally, is there some way to turn of the debugging compile option from the
configure line?  The only 'easy' way I could find was to edit the
'config.cache' and change

Just curious.

Hope this is useful.
Gordon H. Atwood		                  E-mail:  gordon at
Research System Administrator	              Phone:  (780) 492-9930
Department of Computing Science           Fax:  (780) 492-1071
University of Alberta                 WWW:

More information about the openssh-unix-dev mailing list