Hi,
I am trying to run the dce-iperf example from the mathieu/ns-3-dce-old
branch, but am running into some problems.
I have iperf compiled with CXXFLAGS='-fpic -fpie' LDFLAGS='-pie' as
suggested here:
http://comments.gmane.org/gmane.network.simulator.ns3.user/2268
but am running into the following error (scroll right down to the
end):
------------------------------------------------------------------------------------------------------------------------------------------------
:~/repos/ns-3-allinone/ns-3-dce-old$ ./waf --run dce-iperf
Waf: Entering directory `/home/utkarsh/repos/ns-3-allinone/ns-3-dce-
old/build'
Waf: Leaving directory `/home/utkarsh/repos/ns-3-allinone/ns-3-dce-old/
build'
'build' finished successfully (0.993s)
assert failed. cond="handle != 0", msg="Could not open elf-cache/0/
iperf elf-cache/0/iperf: symbol __snprintf_chk, version GLIBC_2.3.4
not defined in file 0001.so.6 with link time reference", file=../src/
dce/model/cooja-loader-factory.cc, line=218
terminate called without an active exception
Command ['/home/utkarsh/repos/ns-3-allinone/ns-3-dce-old/build/debug/
src/dce/example/dce-iperf'] terminated with signal SIGIOT. Run it
under a debugger to get more information (./waf --run <program> --
command-template="gdb --args %s <args>").
------------------------------------------------------------------------------------------------------------------------------------------------
gdb's backtrace confirms what the error says, that it is an assertion
failure.
File 0001.so.6 (I believe) corresponds to elf-cache/0/libc-ns3.so
which indeed does not have the symbol '__snprintf_chk'. However, /usr/
libc.so does have it, allowing iperf to run successfully as an
independent application.
I have tried compiling it with multiple versions of iperf, and have
received the same error.
Is someone else also facing/has faced similar problems? Any solutions?
Thanks.
~
Ut