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