So, i did all the steps but applying patch, and I've got the same error. What is the way of applying the patch on xorp router? Also, I tried to compile xorp version downloaded from xorp website with newer gcc version (4.2.2) and I also got the same error as before: .............................................................. W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo -MD -MP -MF .deps/asyncio.Tpo -c -o asyncio.lo asyncio.cc g++ -DHAVE_CONFIG_H -I. -I.. -I.. -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo -MD -MP -MF .deps/asyncio.Tpo -c asyncio.cc -o asyncio.o asyncio.cc:22:2: error: #ident is a deprecated GCC extension make[3]: *** [asyncio.lo] Error 1 make[3]: Leaving directory `/home/aleksandar/Desktop/xorp-1.6/libxorp' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/aleksandar/Desktop/xorp-1.6/libxorp' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/aleksandar/Desktop/xorp-1.6' make: *** [all] Error 2 r...@aleks:~/Desktop/xorp-1.6#
Thank you, Alex On Wed, Jan 6, 2010 at 8:51 PM, Ben Greear <[email protected]> wrote: > On 01/06/2010 12:14 AM, Aleksandar Cvjetic wrote: > >> Sorry for bothering, now I have this problem after running scons: >> > > Well, this seems to be caused by lack of boost-regex: > > scons: Configure: Checking for C type struct ether_addr... > obj/i686-pc-linux-gnu/.sconf_temp/conftest_122.c <- > | > | > |#include <sys/types.h> > |#include <sys/socket.h> > |#include <net/ethernet.h> > |#include <net/if.h> > | > | > |int main() { > | if ((struct ether_addr *) 0) > | return 0; > | if (sizeof (struct ether_addr)) > | return 0; > |} > | > @ > gcc -o obj/i686-pc-linux-gnu/.sconf_temp/conftest_122.o -c > -I/usr/local/include -Iobj/i686-pc-linux-gnu > obj/i686-pc-linux-gnu/.sconf_temp/conftest_122.c > gcc -o obj/i686-pc-linux-gnu/.sconf_temp/conftest_122 > obj/i686-pc-linux-gnu/.sconf_temp/conftest_122.o -L/usr/local/lib > -lboost_regex-mt -lboost_regex > /usr/bin/ld: cannot find -lboost_regex-mt > collect2: ld returned 1 exit status > scons: Configure: no > > > Bruce: Can you add a check for boost-regexp and just fail to even attempt > to compile if > it doesn't exist? Having it break tests such as the one above makes it > difficult for the > user to figure out what the real problem is. > > > Aleksandar: > Try this: > rm -fr obj > apt-get install libboost-regex-dev > (or, if you're using boost 1.4: apt-get install libboost-regex1.4-dev) > > I also had to install: > apt-get install libssl-dev > apt-get install libpcap-dev > > > I also had to apply this patch, but maybe this was only bugs in my > repository: > http://www.candelatech.com/oss/xorp-ct.html > > diff --git a/fea/xrl_fea_target.cc b/fea/xrl_fea_target.cc > index 02d9f5b..d9fe8cb 100644 > --- a/fea/xrl_fea_target.cc > +++ b/fea/xrl_fea_target.cc > @@ -1888,7 +1888,7 @@ XrlFeaTarget::ifmgr_0_1_delete_interface( > string empty; > _io_ip_manager.leave_all_multicast_groups(ifname, empty, error_msg); > if (error_msg.size()) { > - XLOG_ERROR(error_msg.c_str()); > + XLOG_ERROR("%s", error_msg.c_str()); > } > > if (_ifconfig.add_transaction_operation( > @@ -2396,7 +2396,7 @@ XrlFeaTarget::ifmgr_0_1_delete_vif( > // Hack: Remove multicast addrs first. --Ben > _io_ip_manager.leave_all_multicast_groups(ifname, vifname, error_msg); > if (error_msg.size()) { > - XLOG_ERROR(error_msg.c_str()); > + XLOG_ERROR("%s", error_msg.c_str()); > } > > if (_ifconfig.add_transaction_operation( > diff --git a/mld6igmp/mld6igmp_node.cc b/mld6igmp/mld6igmp_node.cc > index d1cccc3..c9c8923 100644 > --- a/mld6igmp/mld6igmp_node.cc > +++ b/mld6igmp/mld6igmp_node.cc > @@ -1464,7 +1464,7 @@ Mld6igmpNode::delete_protocol(const string& > module_instance_name, > ostringstream oss; > oss << "Cannot delete protocol instance: " << module_instance_name > << " on vif_index: " << vif_index << ". No such vif."; > - XLOG_ERROR(oss.str().c_str()); > + XLOG_ERROR("%s", oss.str().c_str()); > error_msg.append(oss.str()); > return (XORP_ERROR); > } > > > After this, it compiles fine. > > > Thanks, > Ben > > -- > Ben Greear <[email protected]> > Candela Technologies Inc http://www.candelatech.com > >
_______________________________________________ Xorp-hackers mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
