Hello, i'm trying to do the same thing,too. when i reproduce a paper, which has provided its code(a new module, named trust), there is a "cycle detected in the process" problem, this means that the wifi module depend on trust module and AODV module, and AODV module depends on trust module and wifi module, and trust module depends on AODV module and wifi module. This means error for NS-3 because of circular reference. In order to uncouple them, I integrated trust module with AODV module. this means i delete the trust module, and add related .cc and .h files to AODV module. But this caused another problem. The "cycle detected in the process " problem happends between Wifi module and AODV module. So i try to copy and modify the wifi module(new module named wifycopy module) so as to refered by AODV module. But there is a new error " msg="Log component "WifiPhy" has already been registered once.", file=../src/core/model/log.cc, line=121. terminate called without an active exception Command ['/root/ns-allinone-3.33/ns-3.33/build/scratch/myfirst'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb")." I am a beginer of NS-3, could you help me to figure it out, pls?