mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rami Rosen" <roszenrami@gmail.com>
To: yoshfuji@linux-ipv6.org
Cc: johnsonzjo@gmail.com, netdev@vger.kernel.org,
	"David Miller" <davem@davemloft.net>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] [mcast-tools] Enable build of pim6sd when glibc is higher than 2.3.x
Date: Thu, 17 Apr 2008 10:12:22 +0300	[thread overview]
Message-ID: <b25312890804170012p50a1d95akd198569fcc01ddf@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2004 bytes --]

Hi,

This patch enables building pim6sd successfully on machines where
glibc is higher than 2.3.x
in the mcast mcast-tools git tree (both for i386 and x86_64 machines).

Running next series of opetaions will succeed now:
git-clone git://git.linux-ipv6.org/gitroot/yoshfuji/mcast-tools.git
cd mcast-tools
aclocal; automake; autoconf
./configure
cd pim6sd
make


Regards,
Rami Rosen


Signed-off-by: Rami Rosen  <roszenrami@gmail.com>



On Tue, Apr 8, 2008 at 12:14 PM, David Miller <davem@davemloft.net> wrote:
> From: "Andy Johnson" <johnsonzjo@gmail.com>
>  Date: Tue, 8 Apr 2008 09:57:39 +0300
>
>
>  > mld6.c: In function 'init_mld6':
>  > mld6.c:210: error: 'ICMP6_MEMBERSHIP_QUERY' undeclared (first use in
>  > this function)
>  > mld6.c:210: error: (Each undeclared identifier is reported only once
>  > mld6.c:210: error: for each function it appears in.)
>  > mld6.c:211: error: 'ICMP6_MEMBERSHIP_REPORT' undeclared (first use in
>  > this function)
>  > mld6.c:212: error: 'ICMP6_MEMBERSHIP_REDUCTION' undeclared (first use
>  > in this function)
>  > mld6.c: In function 'accept_mld6':
>  > mld6.c:451: error: 'MLD_LISTENER_DONE' undeclared (first use in this function)
>
>  Somewhere along the line ICMP6_MEMBERSHIP_* got changed
>  into MLD_LISTENER_* in the glibc headers.
>
>  Similarly MLD_LISTENER_DONE should be MLD_LISTENER_REDUCTION.
>
>  In glibc-2.3.x both defines were provided, but after that the old
>  ICMP6_* defines were completely removed.
>
>  Probably Yoshifuji-san tests the user tool builds on a glibc-2.3.x or
>  earlier system, which has the old deprecated defines.
>
>  So if you simply change:
>
>         ICMP6_MEMBERSHIP_* --> MLD_LISTENER_*
>
>  and also:
>
>         MLD_LISTENER_DONE --> MLD_LISTENER_REDUCTION
>
>  the build will complete successfully.
>
>
> --
>  To unsubscribe from this list: send the line "unsubscribe netdev" in
>  the body of a message to majordomo@vger.kernel.org
>  More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 673 bytes --]

diff --git a/pim6sd/mld6.h b/pim6sd/mld6.h
index 0f254a0..2f41b29 100644
--- a/pim6sd/mld6.h
+++ b/pim6sd/mld6.h
@@ -98,6 +98,18 @@ struct mld_hdr {
 #define mld_reserved	mld6_reserved
 #endif
 
+/* For glibc higher than 2.3.x */
+#ifndef ICMP6_MEMBERSHIP_QUERY
+#define ICMP6_MEMBERSHIP_QUERY     MLD_LISTENER_QUERY
+#define ICMP6_MEMBERSHIP_REDUCTION MLD_LISTENER_REDUCTION
+#define ICMP6_MEMBERSHIP_REPORT    MLD_LISTENER_REPORT
+#define MLD_LISTENER_DONE          MLD_LISTENER_REDUCTION
+#define MLD_MTRACE_RESP            201
+#define MLD_MTRACE                 202
+
+#endif
+
+
 #ifndef IP6OPT_RTALERT_MLD
 #define IP6OPT_RTALERT_MLD	0
 #define IP6OPT_RTALERT		0x05

                 reply	other threads:[~2008-04-17  7:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b25312890804170012p50a1d95akd198569fcc01ddf@mail.gmail.com \
    --to=roszenrami@gmail.com \
    --cc=davem@davemloft.net \
    --cc=johnsonzjo@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®