<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>&nbsp;</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&#39;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 &quot;tagert&quot;.</font></font></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt">From the target, I mnt it back to my host system from &quot;/mnt/xorp&quot; to &quot;/home/cmchan/dev/xorp-builds/mips64-montavista-linux&quot;.</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3"></font>&nbsp;</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">&nbsp; </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">&nbsp;</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">&nbsp;</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">&nbsp; </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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;&nbsp; </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">&nbsp; </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">&nbsp; </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">&nbsp; </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">&nbsp; </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">&nbsp; </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">&nbsp; </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>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt"><font face="Times New Roman" size="3">&nbsp;</font></p></div>
<div>Seem like xorp_rtrmgr is trying to exec &quot;xorp_fea&quot; from my host path? How to address this?</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>RT</div>
<div><br><br>&nbsp;</div>
<div class="gmail_quote">On Tue, Sep 2, 2008 at 8:22 PM, Pavlin Radoslavov <span dir="ltr">&lt;<a href="mailto:pavlin@icsi.berkeley.edu">pavlin@icsi.berkeley.edu</a>&gt;</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 &lt;<a href="mailto:rtp.techie@gmail.com">rtp.techie@gmail.com</a>&gt; wrote:<br><br>&gt; Hi,<br>&gt; &nbsp;I just downloaded the XORP 1.5 and was trying to compile it. I was able to<br>&gt; compile it with no problem on native Linux EL3 using GCC 3.4.5<br>
&gt; But when I try to cross compile it for mips64 using GCC 3.4.3 (that is the<br>&gt; tool chain that we are using on the embedded system).<br>&gt; I got the following compilatin errors and hope if anyone knows how to<br>
&gt; 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 &lt;new&gt;<br>
#include &lt;iostream&gt;<br><br>int<br>main()<br>{<br>&nbsp; &nbsp;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>&gt; gmake[3]: Entering directory `/export/home/cmchan/dev/xorp-1.5/libxorp&#39; /bin/sh<br>&gt; ../libtool --tag=CXX &nbsp; --mode=compile<br>&gt; /export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ -DHAVE_CONFIG_H<br>
&gt; -I. -I.. -I.. &nbsp;-I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>&gt; -mabi=n32 &nbsp;-I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>&gt; -mabi=n32 -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith<br>
&gt; -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo<br>&gt; -MD -MP -MF .deps/asyncio.Tpo -c -o asyncio.lo asyncio.cc<br>&gt; &nbsp;/export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ -DHAVE_CONFIG_H<br>
&gt; -I. -I.. -I.. -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>&gt; -mabi=n32 -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1<br>&gt; -mabi=n32 -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith<br>
&gt; -Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo<br>&gt; -MD -MP -MF .deps/asyncio.Tpo -c asyncio.cc -o asyncio.o<br>&gt; In file included from<br>&gt; /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>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../libxorp/xorp.h:64,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from asyncio.cc:22:<br>&gt; /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>
&gt; error: expected unqualified-id before &quot;unsigned&quot;<br>&gt; /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>&gt; error: expected `;&#39; before &quot;unsigned&quot;<br>
&gt; In file included from ../libxorp/xorp.h:64,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from asyncio.cc:22:<br>&gt; /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>
&gt; error: declaration of `operator new&#39; as non-function<br>&gt; /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>&gt; error: expected unqualified-id before &quot;unsigned&quot;<br>
&gt;<br>&gt; Thanks,<br>&gt; RT<br></div></div>&gt; _______________________________________________<br>&gt; Xorp-hackers mailing list<br>&gt; <a href="mailto:Xorp-hackers@icir.org">Xorp-hackers@icir.org</a><br>&gt; <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>