[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080411.182410.01537607.yoshfuji@linux-ipv6.org>
Date: Fri, 11 Apr 2008 18:24:10 +0900 (JST)
From: YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@...ux-ipv6.org>
To: johnsonzjo@...il.com
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH] [mcast-tools] Changing the type of pim_cksum.
In article <147a89290804110214nb1cc55fp4645ce1f913d74d6@...l.gmail.com> (at Fri, 11 Apr 2008 12:14:37 +0300), "Andy Johnson" <johnsonzjo@...il.com> says:
> Hello,
>
> >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.
>
>
> I could get access today (at last...) to a machine running glibc-2.3.4-2.13.
> I had done the following:
> git-clone git://git.linux-ipv6.org/gitroot/yoshfuji/mcast-tools.git
>
> cd mcast-tools
>
> aclocal; automake; autoconf
> ./configure
> cd pim6sd
> make
>
>
> I got the following error:
>
> In file included from debug.c:71:
> ../include/linux/pim.h:17: error: syntax error before "__be16"
> ../include/linux/pim.h:17: warning: no semicolon at end of struct or union
> make[1]: *** [debug.o] Error 1
> make[1]: Leaving directory ...
> make: *** [all-recursive] Error 1
>
> As far as I understand, the __be16 is good for kernel headers, but not
> for user space headers. I am not sure about it. However, in case I am
> right, I changed it to "uint16_t pim_cksum" instead of "__be16 pim_cksum"
> in /include/linux/pim.h;
> and then "make" finsihed ok.
> And attached here is the patch. What do you think ?
No, I think __be16 should be declared (typedef'ed) in user-space.
I'm not sure if we can solve by including right file.
Actually what I want to do is to specify kernel include files in
mcast-tools - something like:
./configue --with-kernel-headers=/home/yoshfuji/linux-2.6-devi/include
Regards,
--yoshfuji
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists