<div dir="ltr"><div>I will try to set the env var let you folks know if it works for me</div>
<div> </div>
<div>So, since I'm new to the code base, is there any more of these env var get documented somewhere?</div><br><br>
<div class="gmail_quote">On Thu, Sep 4, 2008 at 10:06 AM, Adam Greenhalgh <span dir="ltr"><<a href="mailto:a.greenhalgh@cs.ucl.ac.uk">a.greenhalgh@cs.ucl.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I think this comes back to the cross compile issue I bug reported a<br>while back where configures --prefix is being overloaded.<br>
<br>Adam<br><br>2008/9/4 Pavlin Radoslavov <<a href="mailto:pavlin@icsi.berkeley.edu">pavlin@icsi.berkeley.edu</a>>:<br>
<div>
<div></div>
<div class="Wj3C7c">> RTP Techie <<a href="mailto:rtp.techie@gmail.com">rtp.techie@gmail.com</a>> wrote:<br>><br>>> Here is the next issue that I've when run it from my target system.<br>>><br>
>> There is not enough space for me to copy the files to "tagert".<br>>><br>>> From the target, I mnt it back to my host system from "/mnt/xorp" to<br>>> "/home/cmchan/dev/xorp-builds/mips64-montavista-linux".<br>
>><br>>><br>>><br>>> By following the user guide, I need to run xorp_rtrmgr 1st.<br>>><br>>> By default it looks for config and template files from the host-path, so I<br>>> need to use command option to set them correctly, like in below:<br>
>><br>>> ./mips64-montavista-linux-xorp_rtrmgr -v -b /mnt/xorp/config/static.boot -x<br>>> /mnt/xorp/xrl/targets/ -t /mnt/xorp/etc/templates/<br>>><br>>><br>>><br>>> Yes, I also create a group and add root to it.<br>
>><br>>> But then I see the following error, and not sure what to do with it.<br>><br>> It looks like something is mixed-up when the rtrmgr tries to choose<br>> the path to the XORP binaries. Assuming everything is installed<br>
> under /mnt/xorp, you could try to set the XORP_ROOT environmental<br>> variable. E.g.:<br>><br>> setenv XORP_ROOT /mnt/xorp<br>> /mnt/xorp/bin/xorp_rtrmgr -b /mnt/xorp/config/static.boot<br>><br>> Hope that helps,<br>
> Pavlin<br>><br>>><br>>><br>>> root@target:/mnt/xorp/bin# ./mips64-montavista-linux-xorp_rtrmgr -v -b<br>>> /mnt/xorp/config/static.boot -x /mnt/xorp/xrl/targets/ -t /mnt/x<br>>> orp/etc/templates/<br>
>><br>>> [ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ]<br>>> Boot file := /mnt/xorp/config/static.boot<br>>><br>>> [ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ]<br>
>> Templates directory := /mnt/xorp/etc/templates/<br>>><br>>> [ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Xrl<br>>> targets directory := /mnt/xorp/xrl/targets/<br>
>><br>>> [ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ]<br>>> Execute Xrls := true<br>>><br>>> [ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ]<br>
>> Restart failed processes := false<br>>><br>>> [ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ]<br>>> Print verbose information := true<br>>><br>>> [ 1970/06/29 06:46:31 INFO mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR<br>
>> +239 master_conf_tree.cc execute ] Changed modules: interfaces, firewall,<br>>> fea, rib, policy, static_routes<br>>><br>>> [ 1970/06/29 06:46:31 ERROR mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR<br>
>> +2253 task.cc fail_tasklist_initialization ] Cannot create module<br>>> interfaces:<br>>> /home/cmchan/dev/xorp-builds/mips64-montavista-linux/fea/xorp_fea: file does<br>>> not exist<br>>><br>
>> [ 1970/06/29 06:46:31 ERROR mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR<br>>> +641 master_conf_tree.cc commit_changes_pass2 ] Commit failed in deciding<br>>> startups<br>>><br>>> [ 1970/06/29 06:46:31 ERROR mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR<br>
>> +251 master_conf_tree.cc config_done ] Configuration failed: Cannot create<br>>> module interfaces:<br>>> /home/cmchan/dev/xorp-builds/mips64-montavista-linux/fea/xorp_fea: file does<br>>> not exist<br>
>><br>>> [ 1970/06/29 06:46:31 INFO mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR<br>>> +2228 task.cc run_task ] No more tasks to run<br>>><br>>><br>>><br>>><br>>> Seem like xorp_rtrmgr is trying to exec "xorp_fea" from my host path? How to<br>
>> address this?<br>>> Thanks,<br>>><br>>> RT<br>>><br>>><br>>><br>>> On Tue, Sep 2, 2008 at 8:22 PM, Pavlin Radoslavov<br>>> <<a href="mailto:pavlin@icsi.berkeley.edu">pavlin@icsi.berkeley.edu</a>>wrote:<br>
>><br>>> > RTP Techie <<a href="mailto:rtp.techie@gmail.com">rtp.techie@gmail.com</a>> wrote:<br>>> ><br>>> > > Hi,<br>>> > > I just downloaded the XORP 1.5 and was trying to compile it. I was able<br>
>> > to<br>>> > > compile it with no problem on native Linux EL3 using GCC 3.4.5<br>>> > > But when I try to cross compile it for mips64 using GCC 3.4.3 (that is<br>>> > the<br>>> > > tool chain that we are using on the embedded system).<br>
>> > > I got the following compilatin errors and hope if anyone knows how to<br>>> > > address it:<br>>> ><br>>> > It looks like some of the C++ header files generate those errors.<br>
>> > Could you try to compile the following simple C++ program using the<br>>> > mips64_fp_be-g++ compiler:<br>>> ><br>>> > #include <new><br>>> > #include <iostream><br>
>> ><br>>> > int<br>>> > main()<br>>> > {<br>>> > return (0);<br>>> > }<br>>> ><br>>> ><br>>> > First try to do it without any extra arguments:<br>
>> > /export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ test.cc<br>>> ><br>>> > Then try it with the -I/export/crosstools/mvl40/mips64/fp_be/include<br>>> > g++ argument.<br>>> ><br>
>> > This will help us narrow our focus on the problem.<br>>> ><br>>> > Pavlin<br>>> ><br>>> > P.S. Have you modified file libxorp/asyncio.cc?<br>>> > The first error below referes to file xorph.h included from<br>
>> > asyncio.cc line 22, but in the XORP-1.5 source code the actual line<br>>> > where xorp.h is included is 20.<br>>> ><br>>> ><br>>> > > gmake[3]: Entering directory `/export/home/cmchan/dev/xorp-1.5/libxorp'<br>
>> > /bin/sh<br>>> > > ../libtool --tag=CXX --mode=compile<br>>> > > /export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++<br>>> > -DHAVE_CONFIG_H<br>>> > > -I. -I.. -I.. -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>
>> > > -mabi=n32 -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>>> > > -mabi=n32 -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith<br>>> > > -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT<br>
>> > asyncio.lo<br>>> > > -MD -MP -MF .deps/asyncio.Tpo -c -o asyncio.lo asyncio.cc<br>>> > > /export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++<br>>> > -DHAVE_CONFIG_H<br>
>> > > -I. -I.. -I.. -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>>> > > -mabi=n32 -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>>> > > -mabi=n32 -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith<br>
>> > > -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT<br>>> > asyncio.lo<br>>> > > -MD -MP -MF .deps/asyncio.Tpo -c asyncio.cc -o asyncio.o<br>>> > > In file included from<br>
>> > ><br>>> > /export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/new:41,<br>>> > > from ../libxorp/xorp.h:64,<br>
>> > > from asyncio.cc:22:<br>>> > ><br>>> > /export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/cstddef:53:<br>
>> > > error: expected unqualified-id before "unsigned"<br>>> > ><br>>> > /export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/cstddef:53:<br>
>> > > error: expected `;' before "unsigned"<br>>> > > In file included from ../libxorp/xorp.h:64,<br>>> > > from asyncio.cc:22:<br>>> > ><br>
>> > /export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/new:84:<br>>> > > error: declaration of `operator new' as non-function<br>
>> > ><br>>> > /export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/new:84:<br>>> > > error: expected unqualified-id before "unsigned"<br>
>> > ><br>>> > > Thanks,<br>>> > > RT<br>>> > > _______________________________________________<br>>> > > Xorp-hackers mailing list<br>>> > > <a href="mailto:Xorp-hackers@icir.org">Xorp-hackers@icir.org</a><br>
>> > > <a href="http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-hackers" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers</a><<a href="http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-hackers" target="_blank">http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-hackers</a>><br>
>> ><br>>> _______________________________________________<br>>> Xorp-hackers mailing list<br>>> <a href="mailto:Xorp-hackers@icir.org">Xorp-hackers@icir.org</a><br>>> <a href="http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-hackers" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers</a><br>
><br>> _______________________________________________<br>> Xorp-hackers mailing list<br>> <a href="mailto:Xorp-hackers@icir.org">Xorp-hackers@icir.org</a><br>> <a href="http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-hackers" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers</a><br>
><br></div></div></blockquote></div><br></div>