Compiling error with OFSwitch13 in ns-3.30.1

93 views
Skip to first unread message

Sayed Mahdi Faghih Imani

unread,
Sep 21, 2019, 5:16:32 AM9/21/19
to ofswitch13-users
Hi Dear Luciano,

I have tested OFSwitch13 release 4.0.0 in ns-3.30.1 on ubuntu 18.04.3 and get these errors:

../src/ofswitch13/model/ofswitch13-queue.cc: In member function ‘virtual bool ns3::OFSwitch13Queue::Enqueue(ns3::Ptr<ns3::Packet>)’:
../src/ofswitch13/model/ofswitch13-queue.cc:90:18: error: ‘Tail’ was not declared in this scope
       DoEnqueue (Tail (), packet);
                  ^~~~
../src/ofswitch13/model/ofswitch13-queue.cc:90:18: note: suggested alternative: ‘Tag’
       DoEnqueue (Tail (), packet);
                  ^~~~
                  Tag
../src/ofswitch13/model/ofswitch13-queue.cc: In member function ‘void ns3::OFSwitch13Queue::NotifyDequeue(ns3::Ptr<ns3::Packet>)’:
../src/ofswitch13/model/ofswitch13-queue.cc:213:18: error: ‘Head’ was not declared in this scope
   for (auto it = Head (); it != Tail (); it++)
                  ^~~~
../src/ofswitch13/model/ofswitch13-queue.cc:213:18: note: suggested alternative: ‘read’
   for (auto it = Head (); it != Tail (); it++)
                  ^~~~
                  read

How can I fix the problems?
Thanks a lot.

Luciano Jerez Chaves

unread,
Sep 21, 2019, 6:06:50 PM9/21/19
to ofswitch...@googlegroups.com
Hi,

I didn’t have time to prepare a new module version that is compatible with ns-3.30.1 yet. But, from what I see, i believe that these errors are related to some changes in the queue API, specifically this one: https://gitlab.com/nsnam/ns-3-dev/commit/dc074293d53d9542919bc53cffbe978a8f5bf2ed. Maybe you can edit your /src/ofswitch13/model/ofswitch13-queue.cc file, replacing Head() and Tail() by begin() and end (), respectively. I hope it will work.

[]’s
--
Luciano J C

--
You received this message because you are subscribed to the Google Groups "ofswitch13-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofswitch13-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ofswitch13-users/6b0ac7e1-870b-4bf1-95b4-687d6df75c0d%40googlegroups.com.

Sayed Mahdi Faghih Imani

unread,
Sep 24, 2019, 7:37:43 PM9/24/19
to ofswitch...@googlegroups.com
Hi,

Thank you for your guidance. You are right. I replaced the Head() and Tail() by begin() and end () respectively and the compile is done complete.


Reply all
Reply to author
Forward
0 new messages