Bug 1625

Summary: ns-3-dev fails to build on Debian wheezy amd64
Product: ns-3 Reporter: Vedran Miletić <vedran>
Component: lteAssignee: Nicola Baldo <nicola>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, tomh
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description Vedran Miletić 2013-04-13 09:27:06 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
Comment 1 Vedran Miletić 2013-04-13 10:40:30 UTC
I'm getting the same issue on Ubuntu 13.04 prerelease amd64.
Comment 2 Tom Henderson 2013-04-13 16:00:23 UTC
I plan to add a virtual destructor to the base class, fix the bindings, and check in later today if all goes well.
Comment 3 Tom Henderson 2013-04-15 01:02:31 UTC
fixed in: eb7335c2423c
Comment 4 Vedran Miletić 2013-04-15 12:36:42 UTC
Thanks, works now.