RE: Problem compiling openssh 3.9p1 on Solaris 8

From: Tay, Gary (
Date: 01/27/05

  • Next message: Darren Tucker: "Re: PAM and keyboard-interactive"
    Date: Thu, 27 Jan 2005 15:59:24 +0800
    To: "Mattias Larsson" <>

    I suggest:

    1) Do a "make distclean" (or remove config.cache and config.status),
    then rerun "./configure ..." and "make"
    2) if 1) fails, follow the sunfreeware doc and redo install/config,
    please note that sunfreeware doc assumes "STANDARD" locations for all
    packages, i.e. usually --prefix=/usr/local.


    -----Original Message-----
    From: Mattias Larsson []
    Sent: Thursday, January 27, 2005 3:27 PM
    To: Tay, Gary
    Subject: Re: Problem compiling openssh 3.9p1 on Solaris 8

    Hi there, after further checking I can see that I use gcc 3.3.2, zlib
    1.2.1 but openssl 0.9.7e which here is a difference. We do have the
    random patch applied and openssl works as expected.

    I have tried with several different configure parameters including
    with-ssl-dir but no difference. I'm just lost here.

    // Mattias

    Tay, Gary wrote:

    >The error line seems to say something about random device.
    >For Solaris8, have you applied 112438-3 (or 102439-02?) random device
    >patch which is required by OpenSSL? or use prngd instead? has documentation of building OpenSSH:
    >(Note: sunfreeware doc seems to suggest the use of libgcc 3.3.X)
    >Your "configure" line for OpenSSH should also have
    >"--with-ssl-dur=/usr/local/ssl" specified. A typical example:
    > ./configure --with-pam --sysconfdir=/etc/ssh
    > --with-ssl-dir=/usr/local/ssl
    >For the latest OpenSSH source compilation, usually I also try to use
    >the latest zlib, though not a real MUST.
    >I have OpenSSH 3.9p1 built on Solaris8 box, I am using gcc 3.3.2,
    >OpenSSL 0.9.7d, zlib 1.2.1.
    > -----Original Message-----
    > From: Mattias Larsson []
    > Sent: Thu 1/20/2005 10:58 PM
    > To:
    > Cc:
    > Subject: Problem compiling openssh 3.9p1 on Solaris 8
    > Hello.
    > I just downloaded the source for OpenSSH 3.9p1 and tried to
    compile it
    > on our Solaris 8 machines.
    > We have gcc 3.2.2 and gcc 3.4.1 which I have tried both, on
    > servers. Both yield the same result.
    > We have OpenSSL 0.9.7d in all our systems, compiled with shared
    > echo
    > --------
    > if test ! -z ""; then \
    > /usr/local/bin/perl ./fixprogs ssh_prng_cmds ; \ fi (cd
    > openbsd-compat && make) gcc -O3 -mtune=ultrasparc -Wall
    > -Wno-uninitialized -I. -I.. -I. -I./.. -I/usr/local/ssl/include
    > -DHAVE_CONFIG_H -c bsd-arc4random.c In file included from
    > bsd-arc4random.c:18:
    > ../log.h: In function `fatal':
    > ../log.h:56: warning: empty declaration
    > ../log.h:65: error: parse error before "volatile"
    > ../log.h:65: error: old-style parameter declarations in
    > function definition
    > ../log.h:56: error: parameter name omitted
    > bsd-arc4random.c:20: error: `rcsid' undeclared (first use in
    this function)
    > bsd-arc4random.c:20: error: (Each undeclared identifier is
    reported only
    > once
    > bsd-arc4random.c:20: error: for each function it appears in.)
    > bsd-arc4random.c:20: warning: left-hand operand of comma
    expression has
    > no effect
    > bsd-arc4random.c:20: error: parse error before '}' token
    > *** Error code 1
    > make: Fatal error: Command failed for target `bsd-arc4random.o'
    > Current working directory
    > *** Error code 1
    > make: Fatal error: Command failed for target
    > `openbsd-compat/libopenbsd-compat.a'
    > ----------
    > My first guess was something wrong with perl but I'm not that
    good a
    > programmer to understand the works of makefiles, which sais
    alot. =)
    > Does anyone have a ide why this happenes?
    > // Regards Mattias Larsson

  • Next message: Darren Tucker: "Re: PAM and keyboard-interactive"

    Relevant Pages

    • Re: sshd dies with compression
      ... Dan Million wrote: ... >> were cured by compiling and installing the current zlib ... OpenSSH to the shareable zlib available from IBM as an RPM for AIX, ...
    • Re: Problems with OpenSSH and X11 forwarding
      ... > I'm just trying to move some machines from SSH1 to OpenSSH ... Compiling and installing worked just fine but now I have some ... Concerning X11 forwarding I get the following scenario: ... > environment that fails is the one with both client and server are ...
    • Proving OpenSSH 3.4p1 is using /dev/urandom (Solaris 9 ossh Vs OpenBSD ossh)
      ... I've had my battles with using a randomness generator under Solaris. ... Over the years while compiling up OpenSSH I've used AndiRAND, egd, ... OpenSSH ... However lsof does not show it being used as above. ...
    • Re: Error when changing expired password during login
      ... FYI, I had been compiling my SSH installs for years, but had some ... the problem since the install apparently did not include the header ... and OpenSSH will not compile without them. ... October with OpenSSH 4.1 on AIX 5.2, and as yet there is no indication ...
    • RE: upcoming release 6.1: old version of some core components
      ... Alex, you would lose that bet, zlib 1.2.2 has a hole in it, it ... and security-/functionality-fixes come to my mind here. ... At least for openssl and openssh you can get latest versions ... don't believe there's a standard cvs port either. ...