export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
dce.SetBinary("ntpd");
dce.ResetArguments ();
dce.ResetEnvironment ();
dce.AddArgument ("-c");
dce.AddArgument ("/etc/ntp.conf");
dce.AddArgument ("-p");
dce.AddArgument ("/var/run/ntpd.pid");
dce.AddArgument ("-g");
dce.AddArgument ("-u");
dce.AddArgument ("104:110");
apps = dce.Install (nodes.Get (0));
apps.Start (Seconds (0.7));
NATIVE (log10)
NATIVE (frexp)
NATIVE (setsid)
root@my-node:/users/msyam/ns3_workspace/bake/source/ns-3-dce# ./waf
Waf: Entering directory `/users/msyam/ns3_workspace/bake/source/ns-3-dce/build'
--------------------------------------------------------------------
Python bindings compilation
--------------------------------------------------------------------
[ 10/330] lib/pkgconfig/libns3-dev-netlink-debug.pc: -> build/lib/pkgconfig/libns3-dev-netlink-debug.pc
[111/330] lib/pkgconfig/libns3-dev-dce-debug.pc: -> build/lib/pkgconfig/libns3-dev-dce-debug.pc
Waf: Leaving directory `/users/msyam/ns3_workspace/bake/source/ns-3-dce/build'
'build' finished successfully (0.268s)
root@my-node:/users/msyam/ns3_workspace/bake/source/ns-3-dce# ./waf --run dce-ntp
Waf: Entering directory `/users/msyam/ns3_workspace/bake/source/ns-3-dce/build'
--------------------------------------------------------------------
Python bindings compilation
--------------------------------------------------------------------
[ 10/330] lib/pkgconfig/libns3-dev-netlink-debug.pc: -> build/lib/pkgconfig/libns3-dev-netlink-debug.pc
[111/330] lib/pkgconfig/libns3-dev-dce-debug.pc: -> build/lib/pkgconfig/libns3-dev-dce-debug.pc
Waf: Leaving directory `/users/msyam/ns3_workspace/bake/source/ns-3-dce/build'
'build' finished successfully (0.252s)
assert failed. cond="handle != 0", msg="Could not open elf-cache/0/ntpd elf-cache/0/ntpd: symbol shmdt, version GLIBC_2.2.5 not defined in file 0001.so.6 with link time reference", file=../model/cooja-loader-factory.cc, line=236
terminate called without an active exception
Command ['/users/msyam/ns3_workspace/bake/source/ns-3-dce/build/bin/dce-ntp'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").