Unusual compilation error during compilation in ns3.43 environment

21 views
Skip to first unread message

Igor Plastov

unread,
Apr 1, 2026, 2:57:04 AM (7 days ago) Apr 1
to ns-3-...@googlegroups.com
Hello!
I am learning the module Satellite (it requires  ns3.43).  All tests and examples are working. I have created my own example based on the Satellite's example sat-gw-handower-example.cc. My goal was to get pcap-files for traffic throw orbiters. Simulation successfully catches packets for all nodes but not for orbiters: pcap-files of orbiteers are empty. My code in attachment, a file sat-gw-handover-example_my_rollback.cc

To overcome issue with empty orbiters pcaps  I decided to change  method for catching packets from orbiter (my second code in attachment, a file sat-handover-fixed.cc),  Unfortunately, it's compilation ends  with strange error which is not understandable for me (and AI :):

```
from /home/igor/workspace_ns3.43/ns-3.43/build/include/ns3/bulk-send-helper.h:1,
                 from /home/igor/workspace_ns3.43/ns-3.43/build/include/ns3/applications-module.h:6,
                 from /home/igor/workspace_ns3.43/ns-3.43/scratch/sat-handover-fixed.cc:22:
/home/igor/workspace_ns3.43/ns-3.43/src/core/model/ptr.h: In instantiation of ‘ns3::Ptr<T>::Ptr(const ns3::Ptr<U>&) [with U = ns3::Ipv4; T = ns3::LoraLogicalChannel]’:
/home/igor/workspace_ns3.43/ns-3.43/scratch/sat-handover-fixed.cc:64:25:   required from here
/home/igor/workspace_ns3.43/ns-3.43/src/core/model/ptr.h:672:24: error: cannot convert ‘ns3::Ipv4*’ to ‘ns3::LoraLogicalChannel*’ in initialization
  672 |     : m_ptr(PeekPointer(o))
      |             ~~~~~~~~~~~^~~
      |                        |
      |                        ns3::Ipv4*
ninja: build stopped: subcommand failed.
```
So, my questions are:
1. What is the right way to capture pcap-filles from orbiters?
2. How to solve described compilation issue?

Best regards,
Igor

--
-------------------------------------------------------------------------------
sat-gw-handover-example_my_rollback.cc
sat-handover-fixed.cc

Igor Plastov

unread,
Apr 6, 2026, 12:38:31 PM (2 days ago) Apr 6
to ns-3-...@googlegroups.com
Hi all,
I found the cause of the error: ninja's cash.
The error was fixed by cleaning ninja's cash:
rm -f ccache.conf build.ninja

Best regards,
Igor


ср, 1 апр. 2026 г. в 09:56, Igor Plastov <chetv...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages