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

Pavlin Radoslavov pavlin@icir.org
Tue, 13 Dec 2005 14:54:56 -0800


> 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=414

> 
> After trying to compile again, I got not as in previous, but got
> another following errors:
> 
> source='ifconfig_get_getifaddrs.cc'
> object='ifconfig_get_getifaddrs.lo' libtool=yes \
> depfile='.deps/ifconfig_get_getifaddrs.Plo'
> tmpdepfile='.deps/ifconfig_get_getifaddrs.TPlo' \
> depmode=gcc3 /bin/sh ../config/depcomp \
> /bin/sh ../libtool --mode=compile 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=3D'cli_client.cc' object=3D'cli_client.lo' libtool=3Dyes \
> > > depfile=3D'.deps/cli_client.Plo' tmpdepfile=3D'.deps/cli_client.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-alig=
> > > 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 -MP -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