Mailing List Archive

[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO
http://bugzilla.mindrot.org/show_bug.cgi?id=748

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |japs@adm.ku.dk



------- Additional Comments From dtucker@zip.com.au 2004-03-22 22:46 -------
*** Bug 816 has been marked as a duplicate of this bug. ***



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |ASSIGNED



------- Additional Comments From dtucker@zip.com.au 2004-03-22 22:59 -------
OK, so it looks like there are at least *some* configurations of HP-UX 11.11
that don't require BROKEN_GETADDRINFO.

The only thing I can think of is doing a test DNS lookup, but I can't see what
could be looked up ("localhost" would normally be resolved from /etc/hosts).

Ideas?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From dtucker@zip.com.au 2004-03-22 23:10 -------
Created an attachment (id=574)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=574&action=view)
Test getnameinfo/getaddrinfo

Please try this test program an attach the output to this bug.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From japs@adm.ku.dk 2004-03-22 23:45 -------
The IPv6 bundle name is IPv6NCF11i

The output from your test program:

getaddrinfo returned 0
Attempting to listen on family 22 proto 0
addr = 0x00000000000000000000000000000000
getnameinfo returned name :: port 2222
bind() succeeded
getnameinfo(NI_NAMEREQD) failed: host nor service provided, or not known
Attempting to listen on family 2 proto 0
getnameinfo returned name 0.0.0.0 port 2222
bind: Address already in use
getnameinfo(NI_NAMEREQD) failed: host nor service provided, or not known

Jan P. Sorensen



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO|793 |821
nThis| |



------- Additional Comments From dtucker@zip.com.au 2004-03-30 11:36 -------
I'd like to get this sorted for 3.8.1p1 but I'm not sure how to detect the
problem in configure (and it could change post-build too).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From baby_p_nut@yahoo.com 2004-03-31 00:47 -------
gcc version 3.2

I guess I could update to 3.4.x now.

$ uname -a
HP-UX censored B.11.11 U 9000/800 censored-number unlimited-user license

software bundles installed

B3693AA C.03.50.00 HP GlancePlus/UX for s800 11i
BUNDLE11i B.11.11.0102.2 Required Patch Bundle for HP-UX
11i, February 2001
Base-VXVM B.03.20.1 Base VERITAS Volume Manager 3.2
for HP-UX
CDE-English B.11.11 English CDE Environment
FDDI-00 B.11.11.02 PCI FDDI;Supptd
HW=A3739A/A3739B;SW=J3626AA
FibrChanl-00 B.11.11.09 PCI/HSC FibreChannel;Supptd
HW=A6684A,A6685A,A5158A,A6795A
GOLDBASE11i B.11.11.0112.6 Gold Base Patches for HP-UX 11i,
December 2001
GigEther-00 B.11.11.14 PCI/HSC GigEther;Supptd
HW=A4926A/A4929A/A4924A/A4925A;SW=J1642AA
GigEther-01 B.11.11.01 PCI/PCI-X GigEther;Supptd HW=A6794A
HPUX11i-OE B.11.11.0112 HP-UX 11i Operating Environment
Component
HPUXBase64 B.11.11 HP-UX 64-bit Base OS
HPUXBaseAux B.11.11.0112 HP-UX Base OS Auxiliary
HWEnable11i B.11.11.0112.5 Hardware Enablement Patches for
HP-UX 11i, December 2001
OnlineDiag B.11.11.05.10 HPUX 11.11 Support Tools Bundle,
Dec 2001
RAID-00 B.11.11.01 PCI RAID; Supptd HW=A5856A


$ ./getaddrinfo-test
getaddrinfo returned 0
Attempting to listen on family 22 proto 0
addr = 0x00000000000000000000000000000000
getnameinfo returned name :: port 2222
bind: Bad file number
getnameinfo(NI_NAMEREQD) failed: host nor service provided, or not known
Attempting to listen on family 2 proto 0
getnameinfo returned name 0.0.0.0 port 2222
bind() succeeded
getnameinfo(NI_NAMEREQD) failed: host nor service provided, or not known



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From dtucker@zip.com.au 2004-04-04 22:10 -------
Created an attachment (id=591)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=591&action=view)
Attempt to detect broken getaddrinfo on HP-UX

Please try this patch. (I will attach a "configure" built with this patch, in
case you don't have autoconf handy).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From dtucker@zip.com.au 2004-04-04 22:15 -------
Created an attachment (id=592)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=592&action=view)
configure.gz: patched configure

Replace configure from a current snapshot with this, then run ./configure.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From baby_p_nut@yahoo.com 2004-04-05 00:17 -------
based on previous HP-UX version number plus

openssh-SNAP-20040401.tar.gz

plus new replacement configure script I get:

checking whether snprintf correctly terminates long strings... yes
checking for broken getaddrinfo... no
checking whether getpgrp takes no argument... yes
configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for d\
etails) ***

Compilation exited abnormally with code 1 at Sun Apr 4 10:06:51



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From japs@adm.ku.dk 2004-04-05 00:25 -------
The new configure script generates a SSHD which listens correctly to IPv4
and IPv6, and works correctly.

Jan P. Sorensen




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From dtucker@zip.com.au 2004-04-05 00:30 -------
Take a look at config.log, search for "OpenSSL". The following lines should
show why it thinks it couldn't find OpenSSL.

You can also try "./configure --with-ssl-dir=/path/to/ssl".



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From djm@mindrot.org 2004-04-06 20:15 -------
(From update of attachment 591)
>+ AC_CHECK_FUNC(getaddrinfo, [ check_for_hpux_broken_getaddrinfo=1 ])

I think that this should be just "check_broken_getaddrinfo=1" (read on)

>+if test ! -z "$check_for_hpux_broken_getaddrinfo"; then

I think this should be:

if test "x$ac_cv_func_snprintf" = "xyes" -a "x$check_broken_getaddrinfo"="x1";
then

Otherwise OK.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From dtucker@zip.com.au 2004-04-06 20:29 -------
Fair enough for the AC_CHECK_FUNC thing (I wasn't sure either way) but why test
for cached snprintf?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From djm@mindrot.org 2004-04-06 20:37 -------
oops- cut'n'pasto, it should be getaddrinfo of course.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From dtucker@zip.com.au 2004-04-06 20:49 -------
OK, makes sense now. I don't think it's necessary, though, since the only way
the flag can get set is in the action-if-found from AC_CHECK_FUNC.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748





------- Additional Comments From djm@mindrot.org 2004-04-06 21:01 -------
I was suggesting that the AC_CHECK_FUNC be replaced with a flag, because we do
it anyway later (I don't care too much either way though)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED



------- Additional Comments From dtucker@zip.com.au 2004-04-06 21:44 -------
OK, patch applied with suggested mods.

Here's hoping this bug stays dead this time...



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=748

djm@mindrot.org changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED



------- Additional Comments From djm@mindrot.org 2004-04-19 23:30 -------
Closed with release of portable OpenSSH 3.8.1p1



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.