waf shell执行错误的解决方法

出错信息:

1

[root@gdc1000 ns-3-dce-quagga]# ./waf shell

Waf: Entering directory `/home/gftp/tool/network/dce2/source/ns-3-dce/build'
[117/137] lib/pkgconfig/libns3-dev-dce-quagga-debug.pc:  -> ../../build/myscripts/ns-3-dce-quagga/lib/pkgconfig/libns3-dev-dce-quagga-debug.pc
Waf: Leaving directory `/home/gftp/tool/network/dce2/source/ns-3-dce/build'
/bin/bash: relocation error: /bin/bash: symbol __libc_start_main, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference
Command ['/bin/bash'] exited with code 127

2

cd /home/gftp/tool/network/dce2/source/ns-3-dce/myscripts/ns-3-dce-quagga

./waf --run dce-quagga-ospfd --command-template="gdb --args%s --netStack=ns3"

gdb: relocation error: /usr/lib64/libpython2.6.so.1.0: symbol symlink, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference
Command ['gdb', '--args', '/home/gftp/tool/network/dce2/source/ns-3-dce/build/myscripts/ns-3-dce-quagga/bin/dce-quagga-ospfd', '--netStack=ns3'] exited with code 127
[root@gdc1000 ns-3-dce-quagga]#

3 查看glibc版本

[root@gdc1000 ns-3-dce-quagga]# /lib/libc.so.6
GNU C Library stable release version 2.12, by Roland McGrath et al.
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.7 20120313 (Red Hat 4.4.7-11).
Compiled on a Linux 2.6.32 system on 2015-01-27.
Available extensions:
    The C stubs add-on version 2.1.2.
    crypt add-on version 2.1 by Michael Glad and others
    GNU Libidn by Simon Josefsson
    Native POSIX Threads Library by Ulrich Drepper et al
    BIND-8.2.3-T5B
    RT using linux kernel aio
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
[root@gdc1000 ns-3-dce-quagga]#

版本是2.12


strings libc.so.6 | grep GLIBC_

也有此2.5版本。

你可能感兴趣的:(waf shell执行错误的解决方法)