[Xorp-hackers] problems running xorp_rtrmgr and xorpsh

Farney, Kira (IS) Kira.Farney at ngc.com
Mon Jun 18 10:58:12 PDT 2012


We rebuilt ncurses, openssl, and libpcap. As and before, we followed the instructions described in BUILD_NOTES.  Here is the generated list of the directories and their contents.



build at embedded-dev:~/octeon-staging$ ls -la
total 32
drwxr-xr-x  8 root  root  4096 Jun 18 13:33 .
drwxr-xr-x 29 build build 4096 Jun 18 13:38 ..
drwxr-xr-x  2 root  root  4096 Jun 18 13:33 bin
drwxr-xr-x  5 root  root  4096 Jun 18 13:33 include
drwxr-xr-x  4 root  root  4096 Jun 18 13:33 lib
drwxr-xr-x  6 root  root  4096 Jun 18 13:33 man
drwxr-xr-x  6 root  root  4096 Jun 18 13:31 openssl
drwxr-xr-x  5 root  root  4096 Jun 18 13:33 share
build at embedded-dev:~/octeon-staging$

build at embedded-dev:~/octeon-staging/bin$ ls -la
total 3252
drwxr-xr-x 2 root root    4096 Jun 18 13:33 .
drwxr-xr-x 8 root root    4096 Jun 18 13:33 ..
lrwxrwxrwx 1 root root       3 Jun 18 13:33 captoinfo -> tic
-rwxr-xr-x 1 root root   11703 Jun 18 13:33 clear
-rwxr-xr-x 1 root root    4293 Jun 18 13:31 c_rehash
-rwxr-xr-x 1 root root   66086 Jun 18 13:33 infocmp
lrwxrwxrwx 1 root root       3 Jun 18 13:33 infotocap -> tic
-rwxr-xr-x 1 root root    5309 Jun 18 13:33 ncurses5-config
-rwxr-xr-x 1 root root 3035760 Jun 18 13:31 openssl
-rwxr-xr-x 1 root root    1666 Jun 18 13:33 pcap-config
lrwxrwxrwx 1 root root       4 Jun 18 13:33 reset -> tset
-rwxr-xr-x 1 root root   18620 Jun 18 13:33 tabs
-rwxr-xr-x 1 root root   71738 Jun 18 13:33 tic
-rwxr-xr-x 1 root root   19603 Jun 18 13:33 toe
-rwxr-xr-x 1 root root   20005 Jun 18 13:33 tput
-rwxr-xr-x 1 root root   28790 Jun 18 13:33 tset
build at embedded-dev:~/octeon-staging/bin$ ^C
build at embedded-dev:~/octeon-staging/bin$


build at embedded-dev:~/octeon-staging$ cd lib/
build at embedded-dev:~/octeon-staging/lib$ ls -la
total 14480
drwxr-xr-x 4 root root    4096 Jun 18 13:33 .
drwxr-xr-x 8 root root    4096 Jun 18 13:33 ..
drwxr-xr-x 2 root root    4096 Jun 18 13:31 engines
-rw-r--r-- 1 root root 4897958 Jun 18 13:31 libcrypto.a
-rw-r--r-- 1 root root  168860 Jun 18 13:33 libform.a
-rw-r--r-- 1 root root  877392 Jun 18 13:33 libform_g.a
lrwxrwxrwx 1 root root      12 Jun 18 13:33 libform.so -> libform.so.5
lrwxrwxrwx 1 root root      14 Jun 18 13:33 libform.so.5 -> libform.so.5.9
-rwxr-xr-x 1 root root   96054 Jun 18 13:33 libform.so.5.9
-rw-r--r-- 1 root root   83988 Jun 18 13:33 libmenu.a
-rw-r--r-- 1 root root  511056 Jun 18 13:33 libmenu_g.a
lrwxrwxrwx 1 root root      12 Jun 18 13:33 libmenu.so -> libmenu.so.5
lrwxrwxrwx 1 root root      14 Jun 18 13:33 libmenu.so.5 -> libmenu.so.5.9
-rwxr-xr-x 1 root root   41508 Jun 18 13:33 libmenu.so.5.9
-rw-r--r-- 1 root root  774012 Jun 18 13:33 libncurses.a
-rw-r--r-- 1 root root  207804 Jun 18 13:33 libncurses++.a
-rw-r--r-- 1 root root 3784026 Jun 18 13:33 libncurses_g.a
lrwxrwxrwx 1 root root      15 Jun 18 13:33 libncurses.so -> libncurses.so.5
lrwxrwxrwx 1 root root      17 Jun 18 13:33 libncurses.so.5 -> libncurses.so.5.9
-rwxr-xr-x 1 root root  427273 Jun 18 13:33 libncurses.so.5.9
-rw-r--r-- 1 root root   34954 Jun 18 13:33 libpanel.a
-rw-r--r-- 1 root root  199464 Jun 18 13:33 libpanel_g.a
lrwxrwxrwx 1 root root      13 Jun 18 13:33 libpanel.so -> libpanel.so.5
lrwxrwxrwx 1 root root      15 Jun 18 13:33 libpanel.so.5 -> libpanel.so.5.9
-rwxr-xr-x 1 root root   17718 Jun 18 13:33 libpanel.so.5.9
-rw-r--r-- 1 root root 1110644 Jun 18 13:33 libpcap.a
lrwxrwxrwx 1 root root      12 Jun 18 13:33 libpcap.so -> libpcap.so.1
lrwxrwxrwx 1 root root      16 Jun 18 13:33 libpcap.so.1 -> libpcap.so.1.2.1
-rwxr-xr-x 1 root root  658363 Jun 18 13:33 libpcap.so.1.2.1
-rw-r--r-- 1 root root  821140 Jun 18 13:31 libssl.a
drwxr-xr-x 2 root root    4096 Jun 18 13:31 pkgconfig
lrwxrwxrwx 1 root root      17 Jun 18 13:33 terminfo -> ../share/terminfo
build at embedded-dev:~/octeon-staging/lib$


Thanks,
Kira




From: Kuhn, Thomas J (IS)
Sent: Monday, June 18, 2012 1:21 PM
To: Farney, Kira (IS); xorp-hackers at icir.org
Subject: RE: problems running xorp_rtrmgr and xorpsh

Here is the install lines we are using...


scons install debug=no strip=no enable_tests=yes build=mips64-octeon-linux-gnu \
STRIP=mips64-octeon-linux-gnu-strip \
CC=mips64-octeon-linux-gnu-gcc \
CXX=mips64-octeon-linux-gnu-g++ \
RANLIB=mips64-octeon-linux-gnu-ranlib \
CFLAGS=-I/home/build/octeon-staging/include \
CXXFLAGS=-I/home/build/octeon-staging/include \
LINKFLAGS=-L/home/build/octeon-staging/lib


Tom Kuhn
Office: (407) 737-4953
Cell: (407) 721-0628
tom.kuhn at ngc.com<mailto:tom.kuhn at ngc.com>

From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org] On Behalf Of Farney, Kira (IS)
Sent: Monday, June 18, 2012 10:59 AM
To: xorp-hackers at icir.org
Subject: EXT :[Xorp-hackers] problems running xorp_rtrmgr and xorpsh

Hi All,

We successfully cross compiled XORP and moved it to target board. We put all the libraries to /usr/lib directory and xorp to /usr/local. Here is what's happening when I am trying to run ./xorp_rtrmgr and ./xorpsh. I noticed that it has issues loading the libraries.

I am not an expert in Linux by any means, so I don't know why these errors being generated. Could anyone assist me please. Your help will be greatly appreciated.


/usr/local/xorp/sbin # ./xorp_rtrmgr -b static.boot
Not doing pidfile...
[ 1970/01/05 19:46:01.458317  INFO xorp_rtrmgr:1057 RTRMGR rtrmgr/main_rtrmgr.cc:718 main ]

XORP 1.8.5 BuildInfo:
git version: 00000000 built: Tue Jun 12 11:51:39 EDT 2012
By: root on machine: Linux embedded-dev 2.6.32-5-686 i686 unknown
Recent git changes:
Cannot detect, not a git repository
[ 1970/01/05 19:46:01.462235  INFO xorp_rtrmgr:1057 RTRMGR rtrmgr/main_rtrmgr.cc:754 main ]
Host Information:
Linux (none) 2.6.32.27-Cavium-Octeon #4 SMP Fri May 11 13:04:17 EDT 2012 mips64 GNU/Linux

[ 1970/01/05 19:46:01.619398  INFO xorp_rtrmgr:1057 RTRMGR rtrmgr/master_conf_tree.cc:257 execute ] Changed modules: interfaces, firewall, fea, rib, policy, static_routes
[ 1970/01/05 19:46:01.622125  INFO xorp_rtrmgr:1057 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: interfaces (xorp_fea)
[ 1970/01/05 19:46:01.623088  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:01.623420  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 0  max_retries: 30
xorp_fea: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory
[ 1970/01/05 19:46:01.626264  ERROR xorp_rtrmgr:1057 RTRMGR rtrmgr/module_manager.cc:781 done_cb ] Command "/usr/local/xorp/lib/xorp/sbin/xorp_fea": exited with exit status 127.
[ 1970/01/05 19:46:01.626319  INFO xorp_rtrmgr:1057 RTRMGR rtrmgr/module_manager.cc:334 module_exited ] Module abnormal exit: interfaces
[ 1970/01/05 19:46:02.624563  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:02.624874  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 1  max_retries: 30
[ 1970/01/05 19:46:03.626023  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:03.626320  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 2  max_retries: 30
[ 1970/01/05 19:46:04.627482  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:04.627778  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 3  max_retries: 30
[ 1970/01/05 19:46:05.628939  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:05.629234  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 4  max_retries: 30
[ 1970/01/05 19:46:06.630289  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:06.630583  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 5  max_retries: 30
[ 1970/01/05 19:46:07.631747  WARNING xorp_rtrmgr:1057 XrlFinderTarget obj/mips64-octeon-linux-gnu/xrl/targets/finder_base.cc:1135 handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target "fea" does not exist or is not enabled.
[ 1970/01/05 19:46:07.632041  WARNING xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed  retries: 6  max_retries: 30
^C^C^C[ 1970/01/05 19:46:08.470369  INFO xorp_rtrmgr:1057 RTRMGR rtrmgr/task.cc:2242 run_task ] No more tasks to run
^C^C^C^C^CWARNING:  Process: 1057 has message from dflt_sig_handler: SIGINT received
/usr/local/xorp/sbin #


/usr/local/xorp/sbin # ./xorpsh
./xorpsh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory



Thanks,

Kira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20120618/66f69868/attachment-0001.html 


More information about the Xorp-hackers mailing list