Public bug reported:

Hi,

there is a weird error that occours when you try to compile with
-static. below are the steps.

/usr/bin/g++ src/calc3.c -o calc `pkg-config gtkmm-2.4 --cflags` -static

And the last lines of compilation:

/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0xfc): undefined reference to 
`Gtk::Widget::on_screen_changed(Glib::RefPtr<Gdk::Screen> const&)'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x100): undefined reference to 
`Gtk::Widget::dispatch_child_properties_changed_vfunc(unsigned int, 
_GParamSpec**)'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x104): undefined reference to `Gtk::Widget::show_all_vfunc()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x108): undefined reference to `Gtk::Widget::hide_all_vfunc()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x10c): undefined reference to `Gtk::Widget::get_accessible_vfunc()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x11c): undefined reference to `typeinfo for Gtk::Widget'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x120): undefined reference to `non-virtual thunk to 
Gtk::Widget::~Widget()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x124): undefined reference to `non-virtual thunk to 
Gtk::Widget::~Widget()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x128): undefined reference to 
`Atk::Implementor::ref_accessibile_vfunc()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x148): undefined reference to `typeinfo for Gtk::Widget'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x14c): undefined reference to `virtual thunk to 
Gtk::Widget::~Widget()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x150): undefined reference to `virtual thunk to 
Gtk::Widget::~Widget()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x154): undefined reference to `Glib::ObjectBase::reference() const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x158): undefined reference to `Glib::ObjectBase::unreference() 
const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x15c): undefined reference to `virtual thunk to 
Gtk::Object::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6WidgetE[vtable for 
MainWindow]+0x160): undefined reference to `virtual thunk to 
Gtk::Object::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0xc): undefined reference to `typeinfo for Gtk::Object'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x10): undefined reference to `Gtk::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x14): undefined reference to `Gtk::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x18): undefined reference to `Gtk::Object::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x1c): undefined reference to `Gtk::Object::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x3c): undefined reference to `typeinfo for Gtk::Object'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x40): undefined reference to `virtual thunk to 
Gtk::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x44): undefined reference to `virtual thunk to 
Gtk::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x48): undefined reference to `Glib::ObjectBase::reference() const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x4c): undefined reference to `Glib::ObjectBase::unreference() 
const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x50): undefined reference to `virtual thunk to 
Gtk::Object::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N3Gtk6ObjectE[vtable for 
MainWindow]+0x54): undefined reference to `virtual thunk to 
Gtk::Object::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0xc): undefined reference to `typeinfo for Glib::Object'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x10): undefined reference to `Glib::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x14): undefined reference to `Glib::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x34): undefined reference to `typeinfo for Glib::Object'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x38): undefined reference to `virtual thunk to 
Glib::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x3c): undefined reference to `virtual thunk to 
Glib::Object::~Object()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x40): undefined reference to `Glib::ObjectBase::reference() const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x44): undefined reference to `Glib::ObjectBase::unreference() 
const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x48): undefined reference to `Glib::ObjectBase::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow0_N4Glib6ObjectE[vtable for 
MainWindow]+0x4c): undefined reference to `Glib::ObjectBase::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0xc): undefined reference to `typeinfo for Atk::Implementor'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x10): undefined reference to `Atk::Implementor::~Implementor()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x14): undefined reference to `Atk::Implementor::~Implementor()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x18): undefined reference to 
`Atk::Implementor::ref_accessibile_vfunc()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x38): undefined reference to `typeinfo for Atk::Implementor'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x3c): undefined reference to `virtual thunk to 
Atk::Implementor::~Implementor()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x40): undefined reference to `virtual thunk to 
Atk::Implementor::~Implementor()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x44): undefined reference to `Glib::ObjectBase::reference() const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x48): undefined reference to `Glib::ObjectBase::unreference() 
const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x4c): undefined reference to `Glib::ObjectBase::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N3Atk11ImplementorE[vtable for 
MainWindow]+0x50): undefined reference to `Glib::ObjectBase::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0xc): undefined reference to `typeinfo for Glib::Interface'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x10): undefined reference to `Glib::Interface::~Interface()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x14): undefined reference to `Glib::Interface::~Interface()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x34): undefined reference to `typeinfo for Glib::Interface'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x38): undefined reference to `virtual thunk to 
Glib::Interface::~Interface()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x3c): undefined reference to `virtual thunk to 
Glib::Interface::~Interface()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x40): undefined reference to `Glib::ObjectBase::reference() const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x44): undefined reference to `Glib::ObjectBase::unreference() 
const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x48): undefined reference to `Glib::ObjectBase::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow8_N4Glib9InterfaceE[vtable for 
MainWindow]+0x4c): undefined reference to `Glib::ObjectBase::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow156_N4Glib10ObjectBaseE[vtable for 
MainWindow]+0x1c): undefined reference to `typeinfo for Glib::ObjectBase'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow156_N4Glib10ObjectBaseE[vtable for 
MainWindow]+0x28): undefined reference to `Glib::ObjectBase::reference() const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow156_N4Glib10ObjectBaseE[vtable for 
MainWindow]+0x2c): undefined reference to `Glib::ObjectBase::unreference() 
const'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow156_N4Glib10ObjectBaseE[vtable for 
MainWindow]+0x30): undefined reference to `Glib::ObjectBase::destroy_notify_()'
/tmp/ccIqeMwk.o:(.rodata._ZTC10MainWindow156_N4Glib10ObjectBaseE[vtable for 
MainWindow]+0x34): undefined reference to `Glib::ObjectBase::set_manage()'
/tmp/ccIqeMwk.o:(.rodata._ZTI10MainWindow[typeinfo for MainWindow]+0x8): 
undefined reference to `typeinfo for Gtk::Window'
collect2: ld returned 1 exit status
make: *** [calc] Error 1

Any ideas?

** Affects: gtkmm2.4 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
compile fails with -static
https://bugs.launchpad.net/bugs/192528
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to