[Xorp-users] Re: Need help for compiling xorp from current cvs on Linux (IPv6 Multicast)

abazh abazh18@gmail.com
Fri, 30 Dec 2005 13:36:47 +0700


------=_Part_13711_23349009.1135924607395
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Pavlin,

I have tried to compile and install XORP successfully.
THe xorp could joint to another XORP (running on BSD), but unfortunately
when I try to run multicast client behind XORP(on linux) and  the multicast
client beginning to receive multicast packets, the XORP then died.

I do not know what's wrong, perhaps you could help.

Here what I got from log file:

2/30 14:27:42 WARNING xorp_pimsm6 XrlPimTarget ] Handling method for
mld6igmp_client/0.1/delete_membership6 failed: XrlCmdError 102 Command
failed Failed to delete membership for (::, ff02::2)
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 PIM +2633 xrl_pim_node.cc
mfea_client_send_protocol_message_cb ] Cannot send a protocol message: 201
Resolve failed
[ 2005/12/30 14:27:42 INFO xorp_pimsm6 XRL ] Sender died (protocol =3D "stc=
p",
address =3D "127.0.0.1:32813")
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 LIBXORP +211
buffered_asyncio.cc io_event ] read error 111
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 XRL +783 xrl_pf_stcp.cc
read_event ] Read failed (error =3D 111)
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 XRL +636 xrl_pf_stcp.cc die ]
XrlPFSTCPSender died: read error
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 PIM +2633 xrl_pim_node.cc
mfea_client_send_protocol_message_cb ] Cannot send a protocol message: 201
Resolve failed
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 PIM +2633 xrl_pim_node.cc
mfea_client_send_protocol_message_cb ] Cannot send a protocol message: 201
Resolve failed
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 PIM +2633 xrl_pim_node.cc
mfea_client_send_protocol_message_cb ] Cannot send a protocol message: 201
Resolve failed
[ 2005/12/30 14:27:42  ERROR xorp_pimsm6:2707 PIM +2145 xrl_pim_node.cc
mfea_client_send_add_delete_dataflow_monitor_cb ] XRL communication error:
201 Resolve failed
rlFinderTarget +406 ../xrl/targets/finder_base.cc
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Target "MFEA_6" does not exist or is
not enabled.
[ 2005/12/30 14:27:42  WARNING xorp_rtrmgr:2670 XrlFinderTarget +406
../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ] Handling
method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed
Target "MFEA_6" does not exist or is not enabled.
[ 2005/12/30 14:27:42  WARNING xorp_rtrmgr:2670 XrlFinderTarget +406
../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ] Handling
method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed
Target "MFEA_6" does not exist or is not enabled.


abazh

On 12/14/05, Pavlin Radoslavov <pavlin@icir.org> wrote:
>
> > I use gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
>
> All gcc-4.0.2 compilation problems should now be fixed in CVS. The
> last commit just went in so make sure that you have a recent
> checkout tree with the following file revisions:
>
> libxorp/callback-gen.py rev 1.15
> libxorp/callback_debug.hh rev. 1.10
> libxorp/callback_nodebug.hh rev. 1.8
>
> Pavlin
>
> P.S. There is already bugzilla entry about those gcc-4.0.2
> compilation errors, so please use that entry if there are any other
> similar issues:
>
> http://www.xorp.org/bugzilla/show_bug.cgi?id=3D414
>
> >
> > After trying to compile again, I got not as in previous, but got
> > another following errors:
> >
> > source=3D'ifconfig_get_getifaddrs.cc'
> > object=3D'ifconfig_get_getifaddrs.lo' libtool=3Dyes \
> > depfile=3D'.deps/ifconfig_get_getifaddrs.Plo'
> > tmpdepfile=3D'.deps/ifconfig_get_getifaddrs.TPlo' \
> > depmode=3Dgcc3 /bin/sh ../config/depcomp \
> > /bin/sh ../libtool --mode=3Dcompile g++ -DHAVE_CONFIG_H -I. -I. -I..
> > -I..    -g -W -Wall -Wwrite-strings -Wcast-qual -Werror
> > -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25
> > -pipe -c -o ifconfig_get_getifaddrs.lo `test -f
> > ifconfig_get_getifaddrs.cc || echo './'`ifconfig_get_getifaddrs.cc
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings
> > -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual
> > -ftemplate-depth-25 -pipe -c ifconfig_get_getifaddrs.cc -MT
> > ifconfig_get_getifaddrs.lo -MD -MP -MF
> > .deps/ifconfig_get_getifaddrs.TPlo -o ifconfig_get_getifaddrs.o
> > cc1plus: warnings being treated as errors
> > ifconfig_get_getifaddrs.cc: In member function 'bool
> > IfConfigGetGetifaddrs::read_config(IfTree&)':
> > ifconfig_get_getifaddrs.cc:108: warning: cast from type 'ifaddrs**' to
> > type 'const ifaddrs**' casts away constness
> > make[3]: *** [ifconfig_get_getifaddrs.lo] Error 1
> > make[3]: Leaving directory `/usr/local/xorp/src/xorp/fea'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/usr/local/xorp/src/xorp/fea'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/xorp/src/xorp'
> > make: *** [all] Error 2
> >
> >
> > On 12/9/05, Pavlin Radoslavov <pavlin@icir.org> wrote:
> > > > As I follow previous discussion on IPv6 Multicast routing on Iinux,
> I have
> > > > tried to patch the linux kernel.
> > > > I use fedore core 4 with USAGI linux kernel 2.6.14.
> > >
> > > What is the compiler version (g++ --version)?
> > >
> > > Anyway, I think I found the problem and committed it to CVS
> > > (libproto/proto_node.hh rev 1.33).
> > >
> > > Pavlin
> > >
> > >
> > > >
> > > > My problem is when trying to compile xorp it self, I got below
> errors:
> > > > Making all in .
> > > > gmake[3]: Entering directory `/root/xorp/cli'
> > > > source=3D3D'cli_client.cc' object=3D3D'cli_client.lo' libtool=3D3Dy=
es \
> > > > depfile=3D3D'.deps/cli_client.Plo'
> tmpdepfile=3D3D'.deps/cli_client.TPlo' \
> > > > depmode=3D3Dgcc3 /bin/sh ../config/depcomp \
> > > > /bin/sh ../libtool --mode=3D3Dcompile g++ -DHAVE_CONFIG_H -I. -I. -=
I..
> -I..
> > > > -g -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith
> > > -Wcast-alig=3D
> > > > n
> > > > -Woverloaded-virtual -ftemplate-depth-25 -pipe -c -o cli_client.lo
> `test
> > > -f
> > > > cli_client.cc || echo './'`cli_client.cc
> > > > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings
> > > > -Wcast-qual -Werror -Wpointer-arith -Wcast-align
> -Woverloaded-virtual
> > > > -ftemplate-depth-25 -pipe -c cli_client.cc -MT cli_client.lo -MD -M=
P
> -MF
> > > > .deps/cli_client.TPlo -o cli_client.o
> > > > ../libproto/proto_node.hh: In member function 'uint32_t
> > > > ProtoNode<V>::vif_name2vif_index(const std::string&) const':
> > > > ../libproto/proto_node.hh:727: error: no matching function for call
> to
> > > > 'find(std::_Rb_tree_const_iterator<std::pair<const
> std::basic_string<char,
> > > > std::char_traits<char>, std::allocator<char> >, unsigned int> >&)'
> > > > gmake[3]: *** [cli_client.lo] Error 1
> > > > gmake[3]: Leaving directory `/root/xorp/cli'
> > > > gmake[2]: *** [all-recursive] Error 1
> > > > gmake[2]: Leaving directory `/root/xorp/cli'
> > > > gmake[1]: *** [all-recursive] Error 1
> > > > gmake[1]: Leaving directory `/root/xorp'
> > > > gmake: *** [all] Error 2
> > >
> >
> > _______________________________________________
> > Xorp-users mailing list
> > Xorp-users@xorp.org
> > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
>
>

------=_Part_13711_23349009.1135924607395
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Pavlin,<br>
<br>
I have tried to compile and install XORP successfully.<br>
THe xorp could joint to another XORP (running on BSD), but
unfortunately when I try to run multicast client behind XORP(on linux)
and&nbsp; the multicast client beginning to receive multicast packets,
the XORP then died.<br>
<br>
I do not know what's wrong, perhaps you could help.<br>
<br>
Here what I got from log file:<br>
<br>
2/30 14:27:42 WARNING xorp_pimsm6 XrlPimTarget ] Handling method for
mld6igmp_client/0.1/delete_membership6 failed: XrlCmdError 102 Command
failed Failed to delete membership for (::, ff02::2)<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 PIM +2633
xrl_pim_node.cc mfea_client_send_protocol_message_cb ] Cannot send a
protocol message: 201 Resolve failed<br>
[ 2005/12/30 14:27:42 INFO xorp_pimsm6 XRL ] Sender died (protocol =3D &quo=
t;stcp&quot;, address =3D &quot;<a href=3D"http://127.0.0.1:32813">127.0.0.=
1:32813</a>&quot;)<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 LIBXORP +211 buffered_as=
yncio.cc io_event ] read error 111<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 XRL +783 xrl_pf_stcp.cc =
read_event ] Read failed (error =3D 111)<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 XRL +636 xrl_pf_stcp.cc =
die ] XrlPFSTCPSender died: read error<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 PIM +2633
xrl_pim_node.cc mfea_client_send_protocol_message_cb ] Cannot send a
protocol message: 201 Resolve failed<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 PIM +2633
xrl_pim_node.cc mfea_client_send_protocol_message_cb ] Cannot send a
protocol message: 201 Resolve failed<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 PIM +2633
xrl_pim_node.cc mfea_client_send_protocol_message_cb ] Cannot send a
protocol message: 201 Resolve failed<br>
[ 2005/12/30 14:27:42&nbsp; ERROR xorp_pimsm6:2707 PIM +2145
xrl_pim_node.cc mfea_client_send_add_delete_dataflow_monitor_cb ] XRL
communication error: 201 Resolve failed<br>
rlFinderTarget +406 ../xrl/targets/finder_base.cc
handle_finder_0_2_resolve_xrl ] Handling method for
finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target
&quot;MFEA_6&quot; does not exist or is not enabled.<br>
[ 2005/12/30 14:27:42&nbsp; WARNING xorp_rtrmgr:2670 XrlFinderTarget
+406 ../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ]
Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102
Command failed Target &quot;MFEA_6&quot; does not exist or is not enabled.<=
br>
[ 2005/12/30 14:27:42&nbsp; WARNING xorp_rtrmgr:2670 XrlFinderTarget
+406 ../xrl/targets/finder_base.cc handle_finder_0_2_resolve_xrl ]
Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102
Command failed Target &quot;MFEA_6&quot; does not exist or is not enabled.<=
br>
<br><br>
abazh<br>
<br><div><span class=3D"gmail_quote">On 12/14/05, <b class=3D"gmail_sendern=
ame">Pavlin Radoslavov</b> &lt;<a href=3D"mailto:pavlin@icir.org">pavlin@ic=
ir.org</a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"bord=
er-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-l=
eft: 1ex;">
&gt; I use gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)<br><br>All gcc-4.0.=
2 compilation problems should now be fixed in CVS. The<br>last commit just =
went in so make sure that you have a recent<br>checkout tree with the follo=
wing file revisions:
<br><br>libxorp/callback-gen.py rev 1.15<br>libxorp/callback_debug.hh rev. =
1.10<br>libxorp/callback_nodebug.hh rev. 1.8<br><br>Pavlin<br><br>P.S. Ther=
e is already bugzilla entry about those gcc-4.0.2<br>compilation errors, so=
 please use that entry if there are any other
<br>similar issues:<br><br><a href=3D"http://www.xorp.org/bugzilla/show_bug=
.cgi?id=3D414">http://www.xorp.org/bugzilla/show_bug.cgi?id=3D414</a><br><b=
r>&gt;<br>&gt; After trying to compile again, I got not as in previous, but=
 got
<br>&gt; another following errors:<br>&gt;<br>&gt; source=3D'ifconfig_get_g=
etifaddrs.cc'<br>&gt; object=3D'ifconfig_get_getifaddrs.lo' libtool=3Dyes \=
<br>&gt; depfile=3D'.deps/ifconfig_get_getifaddrs.Plo'<br>&gt; tmpdepfile=
=3D'.deps/ifconfig_get_getifaddrs.TPlo' \
<br>&gt; depmode=3Dgcc3 /bin/sh ../config/depcomp \<br>&gt; /bin/sh ../libt=
ool --mode=3Dcompile g++ -DHAVE_CONFIG_H -I. -I. -I..<br>&gt; -I..&nbsp;&nb=
sp;&nbsp;&nbsp;-g -W -Wall -Wwrite-strings -Wcast-qual -Werror<br>&gt; -Wpo=
inter-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25
<br>&gt; -pipe -c -o ifconfig_get_getifaddrs.lo `test -f<br>&gt; ifconfig_g=
et_getifaddrs.cc || echo './'`ifconfig_get_getifaddrs.cc<br>&gt; g++ -DHAVE=
_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings<br>&gt; -Wcast-qual=
 -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual
<br>&gt; -ftemplate-depth-25 -pipe -c ifconfig_get_getifaddrs.cc -MT<br>&gt=
; ifconfig_get_getifaddrs.lo -MD -MP -MF<br>&gt; .deps/ifconfig_get_getifad=
drs.TPlo -o ifconfig_get_getifaddrs.o<br>&gt; cc1plus: warnings being treat=
ed as errors
<br>&gt; ifconfig_get_getifaddrs.cc: In member function 'bool<br>&gt; IfCon=
figGetGetifaddrs::read_config(IfTree&amp;)':<br>&gt; ifconfig_get_getifaddr=
s.cc:108: warning: cast from type 'ifaddrs**' to<br>&gt; type 'const ifaddr=
s**' casts away constness
<br>&gt; make[3]: *** [ifconfig_get_getifaddrs.lo] Error 1<br>&gt; make[3]:=
 Leaving directory `/usr/local/xorp/src/xorp/fea'<br>&gt; make[2]: *** [all=
-recursive] Error 1<br>&gt; make[2]: Leaving directory `/usr/local/xorp/src=
/xorp/fea'
<br>&gt; make[1]: *** [all-recursive] Error 1<br>&gt; make[1]: Leaving dire=
ctory `/usr/local/xorp/src/xorp'<br>&gt; make: *** [all] Error 2<br>&gt;<br=
>&gt;<br>&gt; On 12/9/05, Pavlin Radoslavov &lt;<a href=3D"mailto:pavlin@ic=
ir.org">
pavlin@icir.org</a>&gt; wrote:<br>&gt; &gt; &gt; As I follow previous discu=
ssion on IPv6 Multicast routing on Iinux, I have<br>&gt; &gt; &gt; tried to=
 patch the linux kernel.<br>&gt; &gt; &gt; I use fedore core 4 with USAGI l=
inux kernel=20
2.6.14.<br>&gt; &gt;<br>&gt; &gt; What is the compiler version (g++ --versi=
on)?<br>&gt; &gt;<br>&gt; &gt; Anyway, I think I found the problem and comm=
itted it to CVS<br>&gt; &gt; (libproto/proto_node.hh rev 1.33).<br>&gt; &gt=
;
<br>&gt; &gt; Pavlin<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &g=
t; &gt; My problem is when trying to compile xorp it self, I got below erro=
rs:<br>&gt; &gt; &gt; Making all in .<br>&gt; &gt; &gt; gmake[3]: Entering =
directory `/root/xorp/cli'
<br>&gt; &gt; &gt; source=3D3D'cli_client.cc' object=3D3D'cli_client.lo' li=
btool=3D3Dyes \<br>&gt; &gt; &gt; depfile=3D3D'.deps/cli_client.Plo' tmpdep=
file=3D3D'.deps/cli_client.TPlo' \<br>&gt; &gt; &gt; depmode=3D3Dgcc3 /bin/=
sh ../config/depcomp \
<br>&gt; &gt; &gt; /bin/sh ../libtool --mode=3D3Dcompile g++ -DHAVE_CONFIG_=
H -I. -I. -I.. -I..<br>&gt; &gt; &gt; -g -W -Wall -Wwrite-strings -Wcast-qu=
al -Werror -Wpointer-arith<br>&gt; &gt; -Wcast-alig=3D<br>&gt; &gt; &gt; n<=
br>
&gt; &gt; &gt; -Woverloaded-virtual -ftemplate-depth-25 -pipe -c -o cli_cli=
ent.lo `test<br>&gt; &gt; -f<br>&gt; &gt; &gt; cli_client.cc || echo './'`c=
li_client.cc<br>&gt; &gt; &gt; g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W =
-Wall -Wwrite-strings
<br>&gt; &gt; &gt; -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverl=
oaded-virtual<br>&gt; &gt; &gt; -ftemplate-depth-25 -pipe -c cli_client.cc =
-MT cli_client.lo -MD -MP -MF<br>&gt; &gt; &gt; .deps/cli_client.TPlo -o cl=
i_client.o
<br>&gt; &gt; &gt; ../libproto/proto_node.hh: In member function 'uint32_t<=
br>&gt; &gt; &gt; ProtoNode&lt;V&gt;::vif_name2vif_index(const std::string&=
amp;) const':<br>&gt; &gt; &gt; ../libproto/proto_node.hh:727: error: no ma=
tching function for call to
<br>&gt; &gt; &gt; 'find(std::_Rb_tree_const_iterator&lt;std::pair&lt;const=
 std::basic_string&lt;char,<br>&gt; &gt; &gt; std::char_traits&lt;char&gt;,=
 std::allocator&lt;char&gt; &gt;, unsigned int&gt; &gt;&amp;)'<br>&gt; &gt;=
 &gt; gmake[3]: *** [cli_client.lo] Error 1
<br>&gt; &gt; &gt; gmake[3]: Leaving directory `/root/xorp/cli'<br>&gt; &gt=
; &gt; gmake[2]: *** [all-recursive] Error 1<br>&gt; &gt; &gt; gmake[2]: Le=
aving directory `/root/xorp/cli'<br>&gt; &gt; &gt; gmake[1]: *** [all-recur=
sive] Error 1
<br>&gt; &gt; &gt; gmake[1]: Leaving directory `/root/xorp'<br>&gt; &gt; &g=
t; gmake: *** [all] Error 2<br>&gt; &gt;<br>&gt;<br>&gt; __________________=
_____________________________<br>&gt; Xorp-users mailing list<br>&gt; <a hr=
ef=3D"mailto:Xorp-users@xorp.org">
Xorp-users@xorp.org</a><br>&gt; <a href=3D"http://mailman.ICSI.Berkeley.EDU=
/mailman/listinfo/xorp-users">http://mailman.ICSI.Berkeley.EDU/mailman/list=
info/xorp-users</a><br><br></blockquote></div><br>

------=_Part_13711_23349009.1135924607395--