<div dir="ltr"><div><font face="Times New Roman" size="3">Thanks both Pavlin and Bruce.</font></div>
<div>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">It is stupid me. Since I need to manually setup the env var for x-compiler, I miss-typed some of the stuffs for the preprocessor.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"></font> </p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">So, I got it compiled finally.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">Here is the next issue that I've when run it from my target system.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"><font face="Times New Roman" size="3">There is not enough space for me to copy the files to "tagert".</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt">From the target, I mnt it back to my host system from "/mnt/xorp" to "/home/cmchan/dev/xorp-builds/mips64-montavista-linux".</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"></font> </p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">By following the user guide, I need to run xorp_rtrmgr 1st. </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">By default it looks for config and template files from the host-path, so I need to use command option to set them correctly, like in below:</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"><font face="Times New Roman" size="3">./mips64-montavista-linux-xorp_rtrmgr -v -b /mnt/xorp/config/static.boot<span style="mso-spacerun: yes"> </span>-x /mnt/xorp/xrl/targets/ -t /mnt/xorp/etc/templates/</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">Yes, I also create a group and add root to it.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">But then I see the following error, and not sure what to do with it.</font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"> </font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman"><a href="mailto:root@target:/mnt/xorp/bin">root@target:/mnt/xorp/bin</a># ./mips64-montavista-linux-xorp_rtrmgr -v -b /mnt/xorp/config/static.boot<span style="mso-spacerun: yes"> </span>-x /mnt/xorp/xrl/targets/ -t /mnt/x orp/etc/templates/</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Boot file<span style="mso-spacerun: yes"> </span>:= /mnt/xorp/config/static.boot</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Templates directory<span style="mso-spacerun: yes"> </span>:= /mnt/xorp/etc/templates/</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Xrl targets directory<span style="mso-spacerun: yes"> </span>:= /mnt/xorp/xrl/targets/</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Execute Xrls<span style="mso-spacerun: yes"> </span>:= true</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Restart failed processes<span style="mso-spacerun: yes"> </span>:= false</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:26 TRACE mips64-montavista-linux-xorp_rtrmgr RTRMGR ] Print verbose information<span style="mso-spacerun: yes"> </span>:= true</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:31<span style="mso-spacerun: yes"> </span>INFO mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR +239 master_conf_tree.cc execute ] Changed modules: interfaces, firewall, fea, rib, policy, static_routes</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:31<span style="mso-spacerun: yes"> </span>ERROR mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR +2253 task.cc fail_tasklist_initialization ] Cannot create module interfaces: /home/cmchan/dev/xorp-builds/mips64-montavista-linux/fea/xorp_fea: file does not exist</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:31<span style="mso-spacerun: yes"> </span>ERROR mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR +641 master_conf_tree.cc commit_changes_pass2 ] Commit failed in deciding startups</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:31<span style="mso-spacerun: yes"> </span>ERROR mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR +251 master_conf_tree.cc config_done ] Configuration failed: Cannot create module interfaces: /home/cmchan/dev/xorp-builds/mips64-montavista-linux/fea/xorp_fea: file does not exist</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font size="3"><font face="Times New Roman">[ 1970/06/29 06:46:31<span style="mso-spacerun: yes"> </span>INFO mips64-montavista-linux-xorp_rtrmgr:8444 RTRMGR +2228 task.cc run_task ] No more tasks to run</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"></font> </p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"> </font></p></div>
<div>Seem like xorp_rtrmgr is trying to exec "xorp_fea" from my host path? How to address this?</div>
<div>Thanks,</div>
<div> </div>
<div>RT</div>
<div><br><br> </div>
<div class="gmail_quote">On Tue, Sep 2, 2008 at 8:22 PM, Pavlin Radoslavov <span dir="ltr"><<a href="mailto:pavlin@icsi.berkeley.edu">pavlin@icsi.berkeley.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">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 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 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></div>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>
<div>
<div></div>
<div class="Wj3C7c"><br><br>> gmake[3]: Entering directory `/export/home/cmchan/dev/xorp-1.5/libxorp' /bin/sh<br>> ../libtool --tag=CXX --mode=compile<br>> /export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ -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 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++ -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 asyncio.lo<br>> -MD -MP -MF .deps/asyncio.Tpo -c asyncio.cc -o asyncio.o<br>> In file included from<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>> /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>> /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>> /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>> /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></div></div>> _______________________________________________<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>
</blockquote></div><br></div>