Re: OpenSSH-2.9.X and GCC-2.95.3

From: David Foster (
Date: 10/25/01

Message-Id: <>
Date: Wed, 24 Oct 2001 16:02:46 -0700 (PDT)
From: David Foster <>
Subject: Re: OpenSSH-2.9.X and GCC-2.95.3

> > Has anyone else run into similar problems?
> >
> And here I thought it was just something I screwed up! I'm having exactly the
same problem, no clue as to why. My configuration is almost the same as yours,
building OpenSSH 2.9.9p2:
> ./configure --prefix=/usr/local --with-pam \
> --without-rsh --disable-suid-ssh \
> --sysconfdir=/etc --with-tcp-wrappers \
> --with-prngd-socket=/var/spool/prngd/pool
> -heather f.
> --

I've compiled OpenSSH 2.9.9p2 using the SunWorkshop 5.0 C/C++ compiler
under Solaris 2.6, with no problems. I did have to make a slight tweak to
get things to compile:

  BUG FIX: OpenSSH 2.9.9p2
  Add the following function definition to ./session.c:

      /* Added DSFoster 9-27-01 */
      static void do_pre_login(Session *s);

  to avoid the following compiler error:

      "session.c", line 628: identifier redeclared: do_pre_login
        current : static function(pointer to struct Session {int used, int self,
       pointer to struct passwd {..} pw, pointer to struct Authctxt ...
        previous: function() returning int : "session.c", line 581
      cc: acomp failed for session.c
      make: *** [session.o] Error 2

I also made the following changes to the Makefiles to support
files > 2GB:

    **** FOR Solaris SYSTEMS ************************************************
    For large-file support add to CFLAGS in ./Makefile and
    ./openbsd-compat/Makefile :


Dave Foster

   << All opinions expressed are mine, not the University's >>

   David Foster National Center for Microscopy and Imaging Research
    Programmer/Analyst University of California, San Diego Department of Neuroscience, Mail 0608
    (858) 534-7968

   "The reasonable man adapts himself to the world; the unreasonable one
   persists in trying to adapt the world to himself. Therefore, all progress
   depends on the unreasonable." -- George Bernard Shaw

Relevant Pages

  • Re: OpenSSH Password Aging/Expiration on UW2.1.3
    ... Try using gcc compiler. ... >difficulties with UnixWare and not Solaris. ... >> Look at the thread 'OpenSSH and forced password change' ... >>> When user bob attempts to login, ...
  • Re: openssh 3.1p1 Solaris 8 problem
    ... I'm trying to install openssh 3.1p1 on ... The ssh client can't match keys. ... > Has anyone else been able to get OpenSSH_2.3.0p1 working on Solaris 8 ... > using Sun's compiler and zlib-1.1.4 with openssl-0.9.6c? ...
  • openssh build problem: Unresolved: xcrypt shadow_pw *** Exit 1 Stop.
    ... *** Exit 1 ... Compiler Driver V6.5-003 cc Driver ... OpenSSH has been configured with the following options: ...
  • Re: openssh 3.1p1 Solaris 8 problem
    ... with gcc under Solaris 8 running the 64 bit kernel. ... The only time I use Sun's compiler is when the application ... The other option is to build OpenSSH as a 64 bit application ...
  • Re: Most elegant way to read to allocatable array?
    ... Beliavsky's advice to avoid opening units 5 and 6 (or any unit numbers ... In order to avoid conflicts with hard-wired unit ... Note that this pretty much has to be a compiler function in order to ... get unused unit numbers have problems. ...