Problems linking in windows against libINET.dll

177 views
Skip to first unread message

Alfonso Ariza Quintana

unread,
Apr 8, 2022, 4:31:56 PM4/8/22
to OMNeT++ Users
I have a port of OpenFlow for the latest version of inet. In Linux, I can generate the program, but in windows, I have some problems,
Apparently, there are several duplicate objects

Creating shared library: ../out/clang-debug/src/libopenflow6_dbg.dll
lld-link: error: duplicate symbol: inet::SharingTagSet::setTag(int, inet::IntrusivePtr<inet::TagBase const> const&)
>>> defined at ../../inetmanet-4.x/src/inet/common/packet/tag/SharingTagSet.h:165
>>>            ../out/clang-debug/src/openflow/controllerApps/ARPResponder.o
>>> defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::OperationalMixin()
>>> defined at ../../inetmanet-4.x/src/inet/common/lifecycle/OperationalMixin.h:16
>>>            ../out/clang-debug/src/openflow/controllerApps/AbstractControllerApp.o
>>> defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::SharingRegionTagSet::operator=(inet::SharingRegionTagSet const&)
>>> defined at ../../inetmanet-4.x/src/inet/common/packet/tag/SharingRegionTagSet.h:285
>>>            ../out/clang-debug/src/openflow/messages/HF_ChangeNotification_m.o
>>> defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::numInitStages() const
>>> defined at ../../inetmanet-4.x/src/inet/common/lifecycle/OperationalMixin.h:41
>>>            ../out/clang-debug/src/openflow/controllerApps/AbstractControllerApp.o
>>> defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::isUp() const
>>> defined at ../../inetmanet-4.x/src/inet/common/lifecycle/OperationalMixin.h:66
>>>            ../out/clang-debug/src/openflow/controllerApps/AbstractControllerApp.o
>>> defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::OperationalMixin<omnetpp::cSimpleModule>::isDown() const
>>> defined at ../../inetmanet-4.x/src/inet/common/lifecycle/OperationalMixin.h:67
>>>            ../out/clang-debug/src/openflow/controllerApps/AbstractControllerApp.o
>>> defined at libINET_dbg.dll
clang++: error: linker command failed with exit code 1 (use -v to see invocation)


If I generate the project with g++ I have this
../../inet/src/inet/common/packet/tag/SharingRegionTagSet.h:325:54: warning: 'const inet::SharingRegionTagSet::RegionTag<inet::TagBase> inet::SharingRegionTagSet::getRegionTagForUpdate(int)' redeclared without dllimport attribute after being referenced with dll linkage
  325 | inline const SharingRegionTagSet::RegionTag<TagBase> SharingRegionTagSet::getRegionTagForUpdate(int index)
      |                                                      ^~~~~~~~~~~~~~~~~~~
Creating shared library: ../out/gcc-debug/src/libopenflow6_dbg.dll
lld-link: error: duplicate symbol: inet::SharingTagSet::setTag(int, inet::IntrusivePtr<inet::TagBase const> const&)
>>> defined at ../../inet/src/inet/common/packet/tag/SharingTagSet.h:165
>>>            ../out/gcc-debug/src/openflow/controllerApps/ARPResponder.o
>>> defined at libINET_dbg.dll

lld-link: error: duplicate symbol: inet::SharingRegionTagSet::operator=(inet::SharingRegionTagSet const&)
>>> defined at ../../inet/src/inet/common/packet/tag/SharingRegionTagSet.h:285
>>>            ../out/gcc-debug/src/openflow/messages/HF_ChangeNotification_m.o
>>> defined at libINET_dbg.dll

In the second case, it is possible that the problem could be related to the inline definition

Gouse Ki Diwani Mubeena

unread,
Apr 27, 2022, 12:30:52 AM4/27/22
to omn...@googlegroups.com
Can anybody help me through it...
Now I am using omnet++.. I am doing modifications to the co-existence as per my requirement. I have taken 3 wifi devices for every 2kms apart which are stable and a moving device (Linear Mobility) which is below 50m to the 1st wifi device. My requirement is to to observe the throughput for these devices for different powers.
Type of application is "UdpBasicApp".
After doing simulation I am getting throughput is different for every device.
My requirement is to get same datarate for all the devices.
*.wifiHost21.numApps = 3
*.wifiHost21.app[*].typename = "UdpBasicApp"
*.wifiHost21.app[0].destAddresses = "wifiHost1"
*.wifiHost21.app[1].destAddresses = "wifiHost2"
*.wifiHost21.app[2].destAddresses = "wifiHost3"
*.wifiHost21.app[*].messageLength = 1000 byte
*.wifiHost21.app[0].packetName = "UDPData-1-"
*.wifiHost21.app[1].packetName = "UDPData-2-"
*.wifiHost21.app[2].packetName = "UDPData-3-"
*.wifiHost21.app[0].startTime = uniform(0.1s,0.1us)
*.wifiHost21.app[1].startTime = uniform(0.2s,0.1us)
*.wifiHost21.app[2].startTime = uniform(0.3s,0.1us)
*.wifiHost21.app[*].sendInterval =0.4 ms
*.wifiHost21.app[*].destPort = 5000
*.wifiHost1.numApps = 1
*.wifiHost1.app[0].typename = "UdpSink"
*.wifiHost1.app[0].localPort = 5000
*.wifiHost2.numApps = 1
*.wifiHost2.app[0].typename = "UdpSink"
*.wifiHost2.app[0].localPort = 5000
*.wifiHost3.numApps = 1
*.wifiHost3.app[0].typename = "UdpSink"
*.wifiHost3.app[0].localPort = 5000
I have attached the throughput file too ... I expected to have same data rate for all 3 devices. And my doubt is in the throughput why all 3 devices having bell shape at 35-45 sec only even they are separated with 2km distance. plz help me through this sir.

I am using Omnetpp-5.6.2 and inet-4.2.5

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/AM6PR0602MB33831FD4EB2EB00EAB3D330D8CE99%40AM6PR0602MB3383.eurprd06.prod.outlook.com.
Screenshot (87).png
Reply all
Reply to author
Forward
0 new messages