Bugzilla – Bug 1625
ns-3-dev fails to build on Debian wheezy amd64
Last modified: 2013-04-15 12:36:42 UTC
With the latest LENA changes included in ns-3-dev on Debian wheezy amd64 I'm getting: src/lte/bindings/ns3module.cc: In function ‘void PyNs3LteGlobalPathlossDatabase__tp_clear(PyNs3LteGlobalPathlossDatabase*)’: src/lte/bindings/ns3module.cc:37979:16: error: deleting object of abstract class type ‘ns3::LteGlobalPathlossDatabase’ which has non-virtual destructor will cause undefined behaviour [-Werror=delete-non-virtual-dtor] src/lte/bindings/ns3module.cc: In function ‘void PyNs3UplinkLteGlobalPathlossDatabase__tp_clear(PyNs3UplinkLteGlobalPathlossDatabase*)’: src/lte/bindings/ns3module.cc:72126:16: error: deleting object of polymorphic class type ‘ns3::UplinkLteGlobalPathlossDatabase’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] src/lte/bindings/ns3module.cc: In function ‘void PyNs3DownlinkLteGlobalPathlossDatabase__tp_clear(PyNs3DownlinkLteGlobalPathlossDatabase*)’: src/lte/bindings/ns3module.cc:75377:16: error: deleting object of polymorphic class type ‘ns3::DownlinkLteGlobalPathlossDatabase’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] cc1plus: all warnings being treated as errors
I'm getting the same issue on Ubuntu 13.04 prerelease amd64.
I plan to add a virtual destructor to the base class, fix the bindings, and check in later today if all goes well.
fixed in: eb7335c2423c
Thanks, works now.