[Xorp-users] Re: Need help for compiling xorp from current cvs on Linux (IPv6 Multicast)
abazh
abazh18@gmail.com
Fri, 16 Dec 2005 08:37:57 +0700
------=_Part_145_20957428.1134697077973
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Everything works well on the compilation, thank you.
Currently I still doing further test with my existing IPv6 multicast router=
.
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_145_20957428.1134697077973
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Everything works well on the compilation, thank you.<br>
Currently I still doing further test with my existing IPv6 multicast router=
.<br>
<br><div><span class=3D"gmail_quote">On 12/14/05, <b class=3D"gmail_sendern=
ame">Pavlin Radoslavov</b> <<a href=3D"mailto:pavlin@icir.org">pavlin@ic=
ir.org</a>> 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;">
> 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>><br>> After trying to compile again, I got not as in previous, but=
got
<br>> another following errors:<br>><br>> source=3D'ifconfig_get_g=
etifaddrs.cc'<br>> object=3D'ifconfig_get_getifaddrs.lo' libtool=3Dyes \=
<br>> depfile=3D'.deps/ifconfig_get_getifaddrs.Plo'<br>> tmpdepfile=
=3D'.deps/ifconfig_get_getifaddrs.TPlo' \
<br>> depmode=3Dgcc3 /bin/sh ../config/depcomp \<br>> /bin/sh ../libt=
ool --mode=3Dcompile g++ -DHAVE_CONFIG_H -I. -I. -I..<br>> -I.. &nb=
sp; -g -W -Wall -Wwrite-strings -Wcast-qual -Werror<br>> -Wpo=
inter-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25
<br>> -pipe -c -o ifconfig_get_getifaddrs.lo `test -f<br>> ifconfig_g=
et_getifaddrs.cc || echo './'`ifconfig_get_getifaddrs.cc<br>> g++ -DHAVE=
_CONFIG_H -I. -I. -I.. -I.. -g -W -Wall -Wwrite-strings<br>> -Wcast-qual=
-Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual
<br>> -ftemplate-depth-25 -pipe -c ifconfig_get_getifaddrs.cc -MT<br>>=
; ifconfig_get_getifaddrs.lo -MD -MP -MF<br>> .deps/ifconfig_get_getifad=
drs.TPlo -o ifconfig_get_getifaddrs.o<br>> cc1plus: warnings being treat=
ed as errors
<br>> ifconfig_get_getifaddrs.cc: In member function 'bool<br>> IfCon=
figGetGetifaddrs::read_config(IfTree&)':<br>> ifconfig_get_getifaddr=
s.cc:108: warning: cast from type 'ifaddrs**' to<br>> type 'const ifaddr=
s**' casts away constness
<br>> make[3]: *** [ifconfig_get_getifaddrs.lo] Error 1<br>> make[3]:=
Leaving directory `/usr/local/xorp/src/xorp/fea'<br>> make[2]: *** [all=
-recursive] Error 1<br>> make[2]: Leaving directory `/usr/local/xorp/src=
/xorp/fea'
<br>> make[1]: *** [all-recursive] Error 1<br>> make[1]: Leaving dire=
ctory `/usr/local/xorp/src/xorp'<br>> make: *** [all] Error 2<br>><br=
>><br>> On 12/9/05, Pavlin Radoslavov <<a href=3D"mailto:pavlin@ic=
ir.org">
pavlin@icir.org</a>> wrote:<br>> > > As I follow previous discu=
ssion on IPv6 Multicast routing on Iinux, I have<br>> > > tried to=
patch the linux kernel.<br>> > > I use fedore core 4 with USAGI l=
inux kernel=20
2.6.14.<br>> ><br>> > What is the compiler version (g++ --versi=
on)?<br>> ><br>> > Anyway, I think I found the problem and comm=
itted it to CVS<br>> > (libproto/proto_node.hh rev 1.33).<br>> >=
;
<br>> > Pavlin<br>> ><br>> ><br>> > ><br>> &g=
t; > My problem is when trying to compile xorp it self, I got below erro=
rs:<br>> > > Making all in .<br>> > > gmake[3]: Entering =
directory `/root/xorp/cli'
<br>> > > source=3D3D'cli_client.cc' object=3D3D'cli_client.lo' li=
btool=3D3Dyes \<br>> > > depfile=3D3D'.deps/cli_client.Plo' tmpdep=
file=3D3D'.deps/cli_client.TPlo' \<br>> > > depmode=3D3Dgcc3 /bin/=
sh ../config/depcomp \
<br>> > > /bin/sh ../libtool --mode=3D3Dcompile g++ -DHAVE_CONFIG_=
H -I. -I. -I.. -I..<br>> > > -g -W -Wall -Wwrite-strings -Wcast-qu=
al -Werror -Wpointer-arith<br>> > -Wcast-alig=3D<br>> > > n<=
br>
> > > -Woverloaded-virtual -ftemplate-depth-25 -pipe -c -o cli_cli=
ent.lo `test<br>> > -f<br>> > > cli_client.cc || echo './'`c=
li_client.cc<br>> > > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -W =
-Wall -Wwrite-strings
<br>> > > -Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverl=
oaded-virtual<br>> > > -ftemplate-depth-25 -pipe -c cli_client.cc =
-MT cli_client.lo -MD -MP -MF<br>> > > .deps/cli_client.TPlo -o cl=
i_client.o
<br>> > > ../libproto/proto_node.hh: In member function 'uint32_t<=
br>> > > ProtoNode<V>::vif_name2vif_index(const std::string&=
amp;) const':<br>> > > ../libproto/proto_node.hh:727: error: no ma=
tching function for call to
<br>> > > 'find(std::_Rb_tree_const_iterator<std::pair<const=
std::basic_string<char,<br>> > > std::char_traits<char>,=
std::allocator<char> >, unsigned int> >&)'<br>> >=
> gmake[3]: *** [cli_client.lo] Error 1
<br>> > > gmake[3]: Leaving directory `/root/xorp/cli'<br>> >=
; > gmake[2]: *** [all-recursive] Error 1<br>> > > gmake[2]: Le=
aving directory `/root/xorp/cli'<br>> > > gmake[1]: *** [all-recur=
sive] Error 1
<br>> > > gmake[1]: Leaving directory `/root/xorp'<br>> > &g=
t; gmake: *** [all] Error 2<br>> ><br>><br>> __________________=
_____________________________<br>> Xorp-users mailing list<br>> <a hr=
ef=3D"mailto:Xorp-users@xorp.org">
Xorp-users@xorp.org</a><br>> <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_145_20957428.1134697077973--