[Click] compiling problem with gridgenricmetric in click

zi feng zfeng at cs.ucr.edu
Wed Apr 6 03:10:52 EDT 2011


Hi all,

I am having a problem compiling click. Everything was working before. I just
did a 'make clean' then I configured it again, then 'make elemlist' and
'make'. Then I get the following errors with reference to gridgenericmetric:
-----------------------------------------
  LINK click
bottleneckmetric.o(.text+0x5b): In function
`BottleneckMetric::~BottleneckMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
bottleneckmetric.o(.text+0x77): In function
`BottleneckMetric::~BottleneckMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
bottleneckmetric.o(.text+0x94): In function
`BottleneckMetric::~BottleneckMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
bottleneckmetric.o(.gnu.linkonce.r._ZTV16BottleneckMetric+0x80): undefined
reference to `GridGenericMetric::get_link_etx(EtherAddress const&, bool)'
bottleneckmetric.o(.gnu.linkonce.r._ZTI16BottleneckMetric+0x8): undefined
reference to `typeinfo for GridGenericMetric'
e2elossmetric.o(.text+0x63): In function `E2ELossMetric::~E2ELossMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
e2elossmetric.o(.text+0x7f): In function `E2ELossMetric::~E2ELossMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
e2elossmetric.o(.text+0x9c): In function `E2ELossMetric::~E2ELossMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
e2elossmetric.o(.gnu.linkonce.r._ZTV13E2ELossMetric+0x80): undefined
reference to `GridGenericMetric::get_link_etx(EtherAddress const&, bool)'
e2elossmetric.o(.gnu.linkonce.r._ZTI13E2ELossMetric+0x8): undefined
reference to `typeinfo for GridGenericMetric'
etx2metric.o(.text+0x63): In function `ETX2Metric::~ETX2Metric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
etx2metric.o(.text+0x7f): In function `ETX2Metric::~ETX2Metric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
etx2metric.o(.text+0x9c): In function `ETX2Metric::~ETX2Metric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
etx2metric.o(.gnu.linkonce.r._ZTV10ETX2Metric+0x80): undefined reference to
`GridGenericMetric::get_link_etx(EtherAddress const&, bool)'
etx2metric.o(.gnu.linkonce.r._ZTI10ETX2Metric+0x8): undefined reference to
`typeinfo for GridGenericMetric'
etxmetric.o(.text+0x63): In function `ETXMetric::~ETXMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
etxmetric.o(.text+0x7f): In function `ETXMetric::~ETXMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
etxmetric.o(.text+0x9c): In function `ETXMetric::~ETXMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
etxmetric.o(.gnu.linkonce.r._ZTI9ETXMetric+0x8): undefined reference to
`typeinfo for GridGenericMetric'
hopcountmetric.o(.text+0x4b): In function
`HopcountMetric::~HopcountMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
hopcountmetric.o(.text+0x67): In function
`HopcountMetric::~HopcountMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
hopcountmetric.o(.text+0x84): In function
`HopcountMetric::~HopcountMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
hopcountmetric.o(.gnu.linkonce.r._ZTV14HopcountMetric+0x80): undefined
reference to
`GridGenericMetric::get_link_etx(EtherAd
dress const&, bool)'
hopcountmetric.o(.gnu.linkonce.r._ZTI14HopcountMetric+0x8): undefined
reference to `typeinfo for GridGenericMetric'
lirmetric.o(.text+0x5b): In function `LIRMetric::~LIRMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
lirmetric.o(.text+0x77): In function `LIRMetric::~LIRMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
lirmetric.o(.text+0x94): In function `LIRMetric::~LIRMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
lirmetric.o(.gnu.linkonce.r._ZTV9LIRMetric+0x80): undefined reference to
`GridGenericMetric::get_link_etx(EtherAddress
const
&, bool)'
lirmetric.o(.gnu.linkonce.r._ZTI9LIRMetric+0x8): undefined reference to
`typeinfo for GridGenericMetric'
lirmetric.o(.gnu.linkonce.r._ZTI9LIRMetric+0x8): undefined reference to
`typeinfo for GridGenericMetric'
threshmetric.o(.text+0x6b): In function
`ThresholdMetric::~ThresholdMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
threshmetric.o(.text+0x87): In function
`ThresholdMetric::~ThresholdMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
threshmetric.o(.text+0xa4): In function
`ThresholdMetric::~ThresholdMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
threshmetric.o(.gnu.linkonce.r._ZTV15ThresholdMetric+0x80): undefined
reference to
`GridGenericMetric::get_link_etx(EtherAdd
ress const&, bool)'
threshmetric.o(.gnu.linkonce.r._ZTI15ThresholdMetric+0x8): undefined
reference to `typeinfo for GridGenericMetric'
yarvismetric.o(.text+0x5b): In function `YarvisMetric::~YarvisMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
yarvismetric.o(.text+0x77): In function `YarvisMetric::~YarvisMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
yarvismetric.o(.text+0x94): In function `YarvisMetric::~YarvisMetric()':
../elements/grid/gridgenericmetric.hh:17: undefined reference to `vtable for
GridGenericMetric'
yarvismetric.o(.gnu.linkonce.r._ZTV12YarvisMetric+0x80): undefined reference
to
`GridGenericMetric::get_link_etx(EtherAddres
s const&, bool)'
yarvismetric.o(.gnu.linkonce.r._ZTI12YarvisMetric+0x8): undefined reference
to `typeinfo for GridGenericMetric'
collect2: ld returned 1 exit status
make: *** [click] Error 1
--------------------------------------

I have checked GridGenricMetric.hh and everything looks good. What I do not
get is that it used to work well before I 'make clean'.

If anyone has any clue about this problem or any suggestions, I will really
appreciate it a lot.

Thanks!!
Zi


More information about the click mailing list