Any OpenSSH for sunos4? - SSH

This is a discussion on Any OpenSSH for sunos4? - SSH ; Hi, I've been working on building some version of OpenSSH (hopefully one that supports v2) on sunos4.1.4. I've managed to install all of the dependences, but am at a dead end when it comes to the most important part. The ...

+ Reply to Thread
Results 1 to 10 of 10

Thread: Any OpenSSH for sunos4?

  1. Any OpenSSH for sunos4?

    Hi,

    I've been working on building some version of OpenSSH (hopefully
    one that supports v2) on sunos4.1.4. I've managed to install
    all of the dependences, but am at a dead end when it comes to
    the most important part.

    The newer versions, 4.x and 3.x, hang silently for several
    minutes on the configure script and finally tell me that my C
    compiler cannot create executables (even though a working gcc is
    at the head of my PATH).

    The 2.x series gives me a variety of compiler errors, things
    like:

    In file included from bsd-misc.c:46:
    ssh.h:511: parse error before `atomicio'
    ssh.h:511: parse error before `('
    ssh.h:511: warning: type defaults to `int' in declaration of
    `atomicio'
    ssh.h:511: `atomicio' declared as function returning a function
    ssh.h:511: parse error before `int'
    *** Error code 1

    The oldest available portable version, 1.2.1pre18, wants me to
    install a PRNG or EGD, which I could do, but I'm stopping here
    because we really would rather have ssh2, if possible.

    Anyway, does anyone know of any version of OpenSSH that has been
    tested on sunos4? Any tips at all would be appreciated.

    Thanks!

    (There are valid reasons for not upgrading or changing the OS.
    Really.)

    --
    deanna


  2. Re: Any OpenSSH for sunos4?

    >>>>> "DP" == Deanna Phillips writes:

    DP> Hi, I've been working on building some version of OpenSSH
    DP> (hopefully one that supports v2) on sunos4.1.4...

    DP> (There are valid reasons for not upgrading or changing the OS.
    DP> Really.)

    I'm sure... but you might have trouble getting OpenSSH to compile on
    TOPS-20, or a Corvus Concept, or a LISP Machine...

    --
    Richard Silverman
    res@qoxp.net


  3. Re: Any OpenSSH for sunos4?

    In article Deanna Phillips
    writes:
    >
    >I've been working on building some version of OpenSSH (hopefully
    >one that supports v2) on sunos4.1.4. I've managed to install
    >all of the dependences, but am at a dead end when it comes to
    >the most important part.
    >
    >The newer versions, 4.x and 3.x, hang silently for several
    >minutes on the configure script and finally tell me that my C
    >compiler cannot create executables (even though a working gcc is
    >at the head of my PATH).


    This is typically a misinterpretation by the configure script - see the
    config*.log for what the actual problem is.

    >The 2.x series gives me a variety of compiler errors, things
    >like:
    >
    >In file included from bsd-misc.c:46:
    >ssh.h:511: parse error before `atomicio'
    >ssh.h:511: parse error before `('
    >ssh.h:511: warning: type defaults to `int' in declaration of
    >`atomicio'
    >ssh.h:511: `atomicio' declared as function returning a function
    >ssh.h:511: parse error before `int'
    >*** Error code 1


    Probably atomicio() is declared as returning some type that your OS
    doesn't know about. In current code it is ssize_t, which these days is
    the standard type of the return value from read()/write() (I think it's
    basically a signed size_t, to allow for the possible -1 return value).
    Putting a 'typedef int ssize_t' at the right place will probably be good
    enough on anything that can run SunOS 4.

    But if you don't have any experience with C programming, this will be
    probably be a tedious process (asking here about every error message:-)
    - and of course there may be some actually serious problems down the
    road.

    --Per Hedeland
    per@hedeland.org

  4. Re: Any OpenSSH for sunos4?

    On 2006-03-23, Deanna Phillips wrote:
    > I've been working on building some version of OpenSSH (hopefully
    > one that supports v2) on sunos4.1.4. I've managed to install
    > all of the dependences, but am at a dead end when it comes to
    > the most important part.
    >
    > The newer versions, 4.x and 3.x, hang silently for several
    > minutes on the configure script and finally tell me that my C
    > compiler cannot create executables (even though a working gcc is
    > at the head of my PATH).


    There were reports of 3.7x being able to be built on SunOS 4.1.4
    with some mods: http://bugzilla.mindrot.org/show_bug.cgi?id=735

    Those mods were included in 3.8x, so if nothing else works then I'd
    try 3.8.1p1.

    > Anyway, does anyone know of any version of OpenSSH that has been
    > tested on sunos4? Any tips at all would be appreciated.


    Take a look in config.log and see why it's the compiler isn't working.
    My guess would be it hits a recursive #include loop and and runs in
    little circles until it hits a memory limit.

    If the problem with current versions is fixable and the fix isn't too
    onerous then it would probably be accepted for the main tree.

    --
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.

  5. Re: Any OpenSSH for sunos4?

    Darren Tucker writes:

    > There were reports of 3.7x being able to be built on SunOS 4.1.4
    > with some mods: http://bugzilla.mindrot.org/show_bug.cgi?id=735
    >
    > Those mods were included in 3.8x, so if nothing else works then I'd
    > try 3.8.1p1.


    Perfect! This version built just fine. Here are the dep and
    tool versions I used, in case anyone else ever has to go through
    this.

    - GNU tar 1.11.8
    - binutils 2.9
    - gcc 2.95.2
    - zlib 1.2.3
    - perl-5.8.8
    - openssl-0.9a
    - openssh-3.8p1

    > Take a look in config.log and see why it's the compiler isn't
    > working. My guess would be it hits a recursive #include loop
    > and and runs in little circles until it hits a memory limit.


    Just in case you're curious:

    openssh-4.3p2/config.log:

    configure:1265: loading cache /dev/null
    configure:1412: checking for gcc
    configure:1428: found /home/x/local/bin/gcc
    configure:1438: result: gcc
    configure:1682: checking for C compiler version
    configure:1685: gcc --version &5
    2.95.2
    configure:1688: $? = 0
    configure:1690: gcc -v &5
    Reading specs from
    /home/x/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.95.2/specs
    gcc version 2.95.2 19991024 (release)
    configure:1693: $? = 0
    configure:1695: gcc -V &5
    gcc: argument to `-V' is missing
    configure:1698: $? = 1
    configure:1721: checking for C compiler default output file name
    configure:1724: gcc conftest.c >&5
    /lib/crt0.o(.text+0x44): undefined reference to `main'
    collect2: ld returned 1 exit status
    configure:1727: $? = 1
    configure: failed program was:
    |
    configure:1765: error: C compiler cannot create executables

    > If the problem with current versions is fixable and the fix
    > isn't too onerous then it would probably be accepted for the
    > main tree.


    Due to space considerations, and for neatness, I built static on
    an nfs partition. The only snag I ran into was that there
    doesn't seem to be any command line or config file option to set
    the location of ssh-rand-helper. Maybe this has already been
    fixed; if it has, and this 3.8p1 fix gets back in the tree, then
    the statically linked binaries it produced could be run from any
    location.

    Once again, thanks for the help.

    --
    deanna

  6. Re: Any OpenSSH for sunos4?

    On 2006-03-23, Deanna Phillips wrote:
    > Darren Tucker writes:
    >> Those mods were included in 3.8x, so if nothing else works then I'd
    >> try 3.8.1p1.

    >
    > Perfect! This version built just fine. Here are the dep and
    > tool versions I used, in case anyone else ever has to go through
    > this.

    [...]

    > /lib/crt0.o(.text+0x44): undefined reference to `main'
    > collect2: ld returned 1 exit status


    That's a linker error although I can't think of anything that might
    cause it (or at least any that might be present in the current versions
    that aren't in 3.8.1p1).

    [...]
    > Due to space considerations, and for neatness, I built static on
    > an nfs partition. The only snag I ran into was that there
    > doesn't seem to be any command line or config file option to set
    > the location of ssh-rand-helper. Maybe this has already been
    > fixed; if it has, and this 3.8p1 fix gets back in the tree, then
    > the statically linked binaries it produced could be run from any
    > location.


    The fix I referred to that was first in 3.8 is still in the current
    versions, so your problem with them is something else. If you have the
    inclination, you could try successive versions from 3.8.1p1 until you
    find the point where it stops working to narrow down the set of changes
    that might have caused it.

    > Once again, thanks for the help.


    You're welcome.

    --
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.

  7. Re: Any OpenSSH for sunos4?

    Darren Tucker writes:

    > On 2006-03-23, Deanna Phillips wrote:
    >
    >> /lib/crt0.o(.text+0x44): undefined reference to `main'
    >> collect2: ld returned 1 exit status

    >
    > That's a linker error although I can't think of anything that might
    > cause it (or at least any that might be present in the current versions
    > that aren't in 3.8.1p1).


    Well here is the thing, I ran into that same error with some of
    the dependencies, as well, and had to revert to older versions
    (GNU tar, for example). IANAP, I am a mere sysadmin, but I
    think this has to do with autoconf.

    > The fix I referred to that was first in 3.8 is still in the
    > current versions, so your problem with them is something else.
    > If you have the inclination, you could try successive versions
    > from 3.8.1p1 until you find the point where it stops working
    > to narrow down the set of changes that might have caused it.


    Sure, I'll give it a try.

    --
    deanna

  8. Re: Any OpenSSH for sunos4?

    Deanna Phillips wrote:
    > Hi,
    >
    > I've been working on building some version of OpenSSH (hopefully
    > one that supports v2) on sunos4.1.4. I've managed to install
    > all of the dependences, but am at a dead end when it comes to
    > the most important part.


    Oh my great ghod! A task near and dear to my heart! I was involved, way way
    back, in getting the ssh.com ssh1 and ssh2 stuff to compile under SunOS for
    a lab! My ghod, OpenSSH was a step up.

    > The newer versions, 4.x and 3.x, hang silently for several
    > minutes on the configure script and finally tell me that my C
    > compiler cannot create executables (even though a working gcc is
    > at the head of my PATH).


    Is it a *recent* gcc? Did you compile it yourself or grab an old binary from
    someone else? And look in "config.log" to see what broke, or run "sh -x
    configure" to track the failures.

    > The 2.x series gives me a variety of compiler errors, things
    > like:
    >
    > In file included from bsd-misc.c:46:
    > ssh.h:511: parse error before `atomicio'
    > ssh.h:511: parse error before `('
    > ssh.h:511: warning: type defaults to `int' in declaration of
    > `atomicio'
    > ssh.h:511: `atomicio' declared as function returning a function
    > ssh.h:511: parse error before `int'
    > *** Error code 1
    >
    > The oldest available portable version, 1.2.1pre18, wants me to
    > install a PRNG or EGD, which I could do, but I'm stopping here
    > because we really would rather have ssh2, if possible.
    >
    > Anyway, does anyone know of any version of OpenSSH that has been
    > tested on sunos4? Any tips at all would be appreciated.


    I haven't done it in at least 5 years: I'm sorry I can't offer you more
    recent news.



  9. Re: Any OpenSSH for sunos4?

    Deanna Phillips wrote:
    > Darren Tucker writes:
    >
    >> There were reports of 3.7x being able to be built on SunOS 4.1.4
    >> with some mods: http://bugzilla.mindrot.org/show_bug.cgi?id=735
    >>
    >> Those mods were included in 3.8x, so if nothing else works then I'd
    >> try 3.8.1p1.

    >
    > Perfect! This version built just fine. Here are the dep and
    > tool versions I used, in case anyone else ever has to go through
    > this.
    >
    > - GNU tar 1.11.8
    > - binutils 2.9
    > - gcc 2.95.2
    > - zlib 1.2.3
    > - perl-5.8.8
    > - openssl-0.9a
    > - openssh-3.8p1


    The gcc is *WAY* out of date. Can you compile and install a gcc-3.x, or
    gcc-4.x, perhaps in a different location so as not to interfere with your
    other systems?

    >> Take a look in config.log and see why it's the compiler isn't
    >> working. My guess would be it hits a recursive #include loop
    >> and and runs in little circles until it hits a memory limit.

    >
    > Just in case you're curious:
    >
    > openssh-4.3p2/config.log:
    >
    > configure:1265: loading cache /dev/null
    > configure:1412: checking for gcc
    > configure:1428: found /home/x/local/bin/gcc
    > configure:1438: result: gcc
    > configure:1682: checking for C compiler version
    > configure:1685: gcc --version &5
    > 2.95.2
    > configure:1688: $? = 0
    > configure:1690: gcc -v &5
    > Reading specs from
    > /home/x/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.95.2/specs
    > gcc version 2.95.2 19991024 (release)
    > configure:1693: $? = 0
    > configure:1695: gcc -V &5
    > gcc: argument to `-V' is missing
    > configure:1698: $? = 1
    > configure:1721: checking for C compiler default output file name
    > configure:1724: gcc conftest.c >&5
    > /lib/crt0.o(.text+0x44): undefined reference to `main'
    > collect2: ld returned 1 exit status
    > configure:1727: $? = 1
    > configure: failed program was:
    >>

    > configure:1765: error: C compiler cannot create executables
    >
    >> If the problem with current versions is fixable and the fix
    >> isn't too onerous then it would probably be accepted for the
    >> main tree.

    >
    > Due to space considerations, and for neatness, I built static on
    > an nfs partition. The only snag I ran into was that there
    > doesn't seem to be any command line or config file option to set
    > the location of ssh-rand-helper. Maybe this has already been
    > fixed; if it has, and this 3.8p1 fix gets back in the tree, then
    > the statically linked binaries it produced could be run from any
    > location.
    >
    > Once again, thanks for the help.




  10. Re: Any OpenSSH for sunos4?

    On 2006-03-23, Deanna Phillips wrote:
    > Well here is the thing, I ran into that same error with some of
    > the dependencies, as well, and had to revert to older versions
    > (GNU tar, for example). IANAP, I am a mere sysadmin, but I
    > think this has to do with autoconf.


    That's a good bet. OpenSSH used to use autoconf 2.52 (with a couple of
    patches) but switched to 2.59 around OpenSSH 3.9 or so.

    It would be interesting to compare the gcc invocations between a working
    and non-working version.

    --
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.

+ Reply to Thread