usnistgov/ns3-oran

error adding symbols: DSO missing from command line

srehan911 opened this issue · 6 comments

Hello,

I tried to use the examples but it is throwing the following error:

"error adding symbols: DSO missing from command line"

It sounds like not all the libraries are "directly" specified on the linker command line? It should be an easy fix.

wdgj commented

Hi

Are you able to compile ns-3 without the inclusion of the ns3-oran module? If so, what is the name of the library that the error is for, which OS are you using, and which version of ns-3 are you using?

Thanks for your reply

ns3 compiling ok even with the inclusion of the ns3-oran module. The error rises when trying to run any example of the ns3-oran module. A picture of the error in full attached.

I am using NS-3.40 on Ubuntu-22.04 running on WSL v2

Screenshot 2024-01-09 155615

Hi,

Wanted to add that both Torch and OnnxRuntime are built ok. You can also see from the attached picture that the oran module is also processed with no errors.

Also, the VS-code is throwing an error at the inclusion of the "oran-module.h" library as in the picture.

Screenshot 2024-01-09 171248 Screenshot 2024-01-09 170737 -2
wdgj commented

For the time being you should try to use the distro's torch package:

unset LIBTORCHPATH
sudo apt install libtorch-dev
./ns3 clean
./ns3 configure --enable-examples
./ns3

The ONNX runtime library should still work as you have it.

Ok, will do that for now.

Thanks a lot for your support.