Your message dated Sun, 06 Jan 2013 23:18:01 +0000
with message-id <e1trztd-0006ui...@franck.debian.org>
and subject line Bug#675913: fixed in resource-agents 1:3.9.2-5+deb7u1
has caused the Debian Bug report #675913,
regarding ldirectord failed to start, RFC2553 compatible getaddrinfo/getnameinfo
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
675913: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675913
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: resource-agents
Severity: grave
Tags: upstream patch

ldirectord failed to start, with following error:

Subroutine main::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::unpack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm
line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060
Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line
3060
Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060
Subroutine main::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::unpack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm
line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060
Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line
3060
Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060

After comment out `use Socket6;`, got following error:

Bareword "NI_NUMERICHOST" not allowed while "strict subs" in use at
/usr/sbin/ldirectord line 5046.
Bareword "NI_NUMERICSERV" not allowed while "strict subs" in use at
/usr/sbin/ldirectord line 5046.
Execution of /usr/sbin/ldirectord aborted due to compilation errors.

Additional dependency required:
    libsocket-getaddrinfo-perl



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (300, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 resource-agents (1:3.9.2-5) unstable; urgency=high
 .
   * debian/control: Fix the Conflicts and Replaces lines of resource-agents
     to make sure that cluster-agents and resource-agents are mutually
     exclusive. Setting the urgency to high because this bug keeps people
     from running the whole clusterstack (Closes: #646110)
   * debian/patches/ocf-asterisk: Include the Asterisk PBX OCF resource agent
     written by Florian Haas, Andreas Kurz and me, sponsored by hastexo
Author: Martin Loschwitz <madk...@debian.org>
Bug-Debian: http://bugs.debian.org/646110

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

Index: resource-agents-3.9.2/ldirectord/ldirectord.in
===================================================================
--- resource-agents-3.9.2.orig/ldirectord/ldirectord.in	2012-06-04 13:24:40.000000000 +0800
+++ resource-agents-3.9.2/ldirectord/ldirectord.in	2012-06-04 14:16:33.994237831 +0800
@@ -828,7 +828,8 @@
 #use English;
 #use Time::HiRes qw( gettimeofday tv_interval );
 use Socket;
-use Socket6;
+use Socket::GetAddrInfo qw( getaddrinfo getnameinfo NI_NUMERICHOST NI_NUMERICSERV NI_NAMEREQD );
+#use Socket6;
 use Sys::Hostname;
 use POSIX qw(setsid :sys_wait_h);
 use Sys::Syslog qw(:DEFAULT setlogsock);
@@ -5039,17 +5040,21 @@
 	if ($name =~ /\[(.*)\]/) {
 		$name = $1;
 	}
-	my @host = getaddrinfo($name, 0, $af);
-	if (!defined($host[3])) {
-		return undef;
-	}
-	my @ret = getnameinfo($host[3], NI_NUMERICHOST | NI_NUMERICSERV);
-	if ($host[0] == AF_INET6) {
-		return "[$ret[0]]";
-	}
-	else {
-		return $ret[0];
+	my %hints = ( family => $af );
+	my ( $err, @res ) = getaddrinfo($name, 0, \%hints);
+	return undef if ($err);
+	while( my $ai = shift @res ) {
+		my ( $err, $hostname, $servicename ) = getnameinfo( $ai->{addr} );
+		if (!$err) {
+			if ($ai->{family} == AF_INET6) {
+				return "[$hostname]";
+			}
+			else {
+				return $hostname;
+			}
+		}
 	}
+	return undef;
 }
 
 # ld_gethostbyaddr
@@ -5064,13 +5069,13 @@
 	my ($ip)=(@_);
 
 	$ip = &ld_strip_brackets($ip);
-	my @host = getaddrinfo($ip,0);
-	if (!defined($host[3])) {
-		return undef;
+	my ( $err, @res ) = getaddrinfo($ip,0);
+	return undef if ($err);
+	while( my $ai = shift @res ) {
+		my ( $err, $host, $service ) = getnameinfo($ai->{addr}, NI_NAMEREQD);
+		return $host unless($err);
 	}
-	my @ret = getnameinfo($host[3], NI_NAMEREQD);
-	return undef unless(scalar(@ret) == 2);
-	return $ret[0];
+	return undef;
 }
 
 # ld_getservbyname

--- End Message ---
--- Begin Message ---
Source: resource-agents
Source-Version: 1:3.9.2-5+deb7u1

We believe that the bug you reported is fixed in the latest version of
resource-agents, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 675...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <gre...@debian.org> (supplier of updated resource-agents 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 06 Jan 2013 23:49:21 +0100
Source: resource-agents
Binary: resource-agents resource-agents-dev ldirectord
Architecture: source amd64 all
Version: 1:3.9.2-5+deb7u1
Distribution: testing-proposed-updates
Urgency: low
Maintainer: Debian HA Maintainers 
<debian-ha-maintain...@lists.alioth.debian.org>
Changed-By: gregor herrmann <gre...@debian.org>
Description: 
 ldirectord - Monitors virtual services provided by LVS
 resource-agents - Cluster Resource Agents
 resource-agents-dev - Cluster Resource Agents Development files
Closes: 675913
Changes: 
 resource-agents (1:3.9.2-5+deb7u1) testing-proposed-updates; urgency=low
 .
   * Non-maintainer upload.
   * Backport patch from unstable (refreshed to fix offset).
     Original changelog entry:
 .
   [ Martin Loschwitz ]
   * debian/patches/fix-gethostinfo-v2.patch: Applied a patch by Zang
     MingJie, edited by Ruben Laban, to fix a problem related to IPv6 in
     ldirectord (Closes: #675913)
Checksums-Sha1: 
 ae3073bf8fd7f4cffa0cafd6ac5a8e1a36e6b818 2314 
resource-agents_3.9.2-5+deb7u1.dsc
 8f07ca740d4e82c8824822b7ab9e71b3a4651d10 17029 
resource-agents_3.9.2-5+deb7u1.debian.tar.gz
 a07c017821a877f1eafebf732c43c7f6c669e2c5 508412 
resource-agents_3.9.2-5+deb7u1_amd64.deb
 cacdd1a4ec6e72d761c6a19403c5607265eec0f7 11936 
resource-agents-dev_3.9.2-5+deb7u1_amd64.deb
 cfbc3b35c5fa86e971a941656bb81885ee47c720 65516 
ldirectord_3.9.2-5+deb7u1_all.deb
Checksums-Sha256: 
 adc0506f715b90347a28b0954e6739f96591306650b830912562020c2c4c3383 2314 
resource-agents_3.9.2-5+deb7u1.dsc
 fe5e392cf9ab22d1f13abfcb4cca89abb63269219cc3c828819fb04dc4af149f 17029 
resource-agents_3.9.2-5+deb7u1.debian.tar.gz
 76c34d8c49e62d04967d18154bb549a516b2924fb59e11bdc9176a1294833a9c 508412 
resource-agents_3.9.2-5+deb7u1_amd64.deb
 0a6b9e72b1d7fb4aeda695ecedd624369d60a675b3470c47541cfe31b9883cf9 11936 
resource-agents-dev_3.9.2-5+deb7u1_amd64.deb
 71094fb3da2c1df8851a996e9dff6596940edf9de4f673026f9ccb9ffc53fb58 65516 
ldirectord_3.9.2-5+deb7u1_all.deb
Files: 
 a176126e7fcf1aedb079dcd04e5d86cd 2314 admin optional 
resource-agents_3.9.2-5+deb7u1.dsc
 fbb15586ab688a0e233e5c284b781c16 17029 admin optional 
resource-agents_3.9.2-5+deb7u1.debian.tar.gz
 a95e7500e5d60213423593da4a006654 508412 admin optional 
resource-agents_3.9.2-5+deb7u1_amd64.deb
 3564ec24f43039d696034929a386b471 11936 admin optional 
resource-agents-dev_3.9.2-5+deb7u1_amd64.deb
 0980789144b1ec4e9315b4651428a306 65516 admin extra 
ldirectord_3.9.2-5+deb7u1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQ6f/bAAoJELs6aAGGSaoGIYgP/Rb6kIBIML6A7jJaV3xOAn6z
ecPhGMte7Uktzvw3eIljz8pgH6nfibLqsBwmbFatUzQBbDWxXyv4+VL4vR/fJigO
rqnZ5qggYd7DgbcE7TtFfMlgxd+fMPDR2rgtEthiyuk3yfSY8NuIxVMXCXD3Sori
zABm2JBeskU45YHwIWlQ4eIH+2iNOr+2LMH02aJtPQNU9Pc0ikula4RvIUSyE9sc
keTq5KSq0takDKTAe4iibn7LBYIn+nMGm1z4Lc4dWI+LxfDSGWSTvZWSlunQCfGt
YbeFGzFp/a5WBIJBZcewX78xm62r94MVs3CA2Cu/z0OmbkhCuyhh1VeGQZb+/INB
qu5D9r8mfDD5yLgEBhvGn5VG9p2GD7WmiDseQZyHktvhqKyaN0VbolxVnR4PbHdg
wf9Gw9jOGPlsGcB9gb7ssXXacDnIeEa3wW2YDw+QxFXPuPho913cmoBND7IrqPjL
YmkCSH2alatf47VEw/aB1IGQ4arGQ9SHUjt9YoJ3XjOBBKBmvYkgXw4kKl2sYwjE
drrnc3pNJ9b6aujXp/CwHxLieKAT4B5OvwvZH/Fkvo3QseF7+s3okg6o+uw9hdaY
Uuu6RBy172iW7P2gOGVbg62SvOrDtuuRhjJXuq0D1CywU8Jhmjay9a1uS/MLuvAy
qCiEL+KGGx4fn2Rg6+v4
=Atsl
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to