Bug 659 - sshd failure on IRIX
Summary: sshd failure on IRIX
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 3.7.1p1
Hardware: MIPS IRIX
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
: 677 691 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-18 03:02 AEST by bugzilla-openssh
Modified: 2004-04-19 23:30 AEST (History)
4 users (show)

See Also:


Attachments
Fix sshd on 3.7.1p1, gai_strerror prototype mismatch (2.16 KB, patch)
2003-09-18 03:03 AEST, bugzilla-openssh
no flags Details | Diff
Debug messages (Irix 6.5.21) (8.51 KB, text/plain)
2003-09-26 02:19 AEST, Luc Lalonde
no flags Details
Debug messages (Irix 6.5.21) (795 bytes, text/plain)
2003-09-26 02:19 AEST, Luc Lalonde
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla-openssh 2003-09-18 03:02:42 AEST
IRIX now requires the following defines:
  BROKEN_GETADDRINFO
  SETEUID_BREAKS_SETUID
  BROKEN_SETREUID
  BROKEN_SETREGID

The BROKEN_GETADDRINFO definition should probably be tested for as it has been
reported on the mailing list that 6.5.20+ might not need it. However, if it is
defined, the openbsd-compat gai_strerror() function is used and its prototype
conflicts with the definition on IRIX (const char * vs char *). Patch attached
to fix this.
Comment 1 bugzilla-openssh 2003-09-18 03:03:41 AEST
Created attachment 414 [details]
Fix sshd on 3.7.1p1, gai_strerror prototype mismatch
Comment 2 Barry K. Nathan 2003-09-18 03:47:09 AEST
AFAICT BROKEN_GETADDRINFO is not needed on IRIX 6.5.17 either.
Comment 3 Barry K. Nathan 2003-09-18 04:26:23 AEST
BTW, for anyone else like me who is/was wondering if any of the other (than
BROKEN_GETADDRINFO) three options can be left out, no, they all seem to be
required as far as I can tell.
Comment 4 Darren Tucker 2003-09-18 19:01:29 AEST
*** Bug 677 has been marked as a duplicate of this bug. ***
Comment 5 Darren Tucker 2003-09-19 22:53:25 AEST
Patch #414 looks pretty good, but I have one question: is BROKEN_GETADDRINFO
appropriate for all IRIXes?  It'll disable IPv6 support.
Comment 6 bugzilla-openssh 2003-09-20 00:11:05 AEST
According to the mailing list, BROKEN_GETADDRINFO isn't required on all IRIX
systems. How about we leave it out for now. I'll try to come up with an
automated test for a broken getaddrinfo.
Comment 7 Darren Tucker 2003-09-20 12:02:27 AEST
*** Bug 691 has been marked as a duplicate of this bug. ***
Comment 8 Darren Tucker 2003-09-22 12:11:40 AEST
Patch applied to HEAD and the 3.7 branch, with the exception of the
BROKEN_GETADDRINFO part.  Please update this bug when you have a working test.

Can someone confirm whether or not those defines are required for IRIX 5?  It's
not included in the patch.
Comment 9 Al Smith 2003-09-22 17:42:26 AEST
I just wanted to note that patch 414 does not address the issue that was
reported in bugs 677 and 691.

Given the situation that the 3.7 releases correct a security issue, it would be
nice if us folks running IRIX were able to upgrade from 3.6.1p2. 677 and 691 are
arguably duplicates of each other, but, in my humble opinion, neither are
duplicates of 659.
Comment 10 Al Smith 2003-09-22 18:24:28 AEST
...or at least it doesn't address the issue, until the realisation dawns that a
patched configure.ac has no effect whatsoever on re-running ./configure && make,
unless the changes introduced by the patch to configure.ac have been applied by
some means to 'configure' itself. This was not obvious, but has now been filed
away as an insight into the autoconfig stuff.

Anyway, please disregard my earlier statement. :) Everything is now working as
it should.
Comment 11 Darren Tucker 2003-09-22 22:46:45 AEST
*** Bug 699 has been marked as a duplicate of this bug. ***
Comment 12 Jean-Christophe Penalva 2003-09-25 18:09:27 AEST
No good news for the daily snapshot (25/09/2003). There's still the problem on
Irix (6.5.18f). We can connect on root account, but when it's another uid, it
stop after the password and remains unavailable.
Comment 13 Darren Tucker 2003-09-25 19:12:18 AEST
Please attach a server-side debug (eg sshd -ddd -p 2022) for your IRIX 6.5.18f 
box.
Comment 14 Luc Lalonde 2003-09-26 02:19:01 AEST
Created attachment 466 [details]
Debug messages (Irix 6.5.21)

Server-side debug messages for Irix-6.5.21 running openssh-SNAP-20030924.tar.gz
Comment 15 Luc Lalonde 2003-09-26 02:19:33 AEST
Created attachment 467 [details]
Debug messages (Irix 6.5.21)

Client-side debug messages for Irix-6.5.21 running openssh-SNAP-20030924.tar.gz
Comment 16 Darren Tucker 2003-10-07 20:59:20 AEST
Luc, do you see the same problem without X forwarding?
Comment 17 Damien Miller 2004-04-14 13:33:04 AEST
no reply in 6 months == closed bug

Reopen this if you want to restart the process with 3.8.1p1 when it is released.
Comment 18 Damien Miller 2004-04-19 23:30:18 AEST
Closed with release of portable OpenSSH 3.8.1p1