|
|
Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Huge amount of linking errors [FreeBSD 7.1, GCC 4.3]
Huge amount of linking errors [FreeBSD 7.1, GCC 4.3] [message #20631] |
Sat, 28 March 2009 03:45  |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
An attempt to compile U++ TheIDE under FreeBSD 7.1-STABLE failed with many linking errors. They appear for both Debug & Optimal modes, as well as Static or Shared libs options.
Does anyone have an idea how to avoid this?
Quote: | Linking...
/home/paul/upp/out/ide/GCC.Debug.Gui.Main.Nogtk/$blitz.o(.te xt+0x28d6): In function `sPid()':
: undefined reference to `__cxa_guard_acquire'
/home/paul/upp/out/ide/GCC.Debug.Gui.Main.Nogtk/$blitz.o(.te xt+0x28ff): In function `sPid()':
: undefined reference to `__cxa_guard_release'
/home/paul/upp/out/ide/GCC.Debug.Gui.Main.Nogtk/$blitz.o(.te xt+0x298d): In function `TemplateDlg::ActualTemplate()':
: undefined reference to `__cxa_guard_acquire'
...
...
...
|
[Updated on: Wed, 01 July 2009 17:54] Report message to a moderator
|
|
|
|
Re: Huge amount of linking errors [FreeBSD 7.1, GCC 4.3] [message #22295 is a reply to message #20637] |
Wed, 01 July 2009 16:50   |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
U++ 2008.1 compiles and links successfully on FreeBSD 7.1. While latest SVN 1349 version fails to link with GCC 4.3 on FreeBSD 7.1 with these errors:
----- ide ( GUI MAIN GCC SHARED FREEBSD ) (34 / 34)
...
ide: 42 file(s) built in (4:29.45), 6415 msecs / file, duration = 270151 msecs
Linking...
/home/paul/upp/out/CtrlLib/GCC.Gui.Shared/CtrlLib.a(ScrollBar.o)(.text+0x86b): In function `Upp::SizeGrip::LeftDown(Upp::Point_<int>, unsigned int)':
: undefined reference to `XUngrabPointer'
/home/paul/upp/out/CtrlLib/GCC.Gui.Shared/CtrlLib.a(ScrollBar.o)(.text+0x8f5): In function `Upp::SizeGrip::LeftDown(Upp::Point_<int>, unsigned int)':
: undefined reference to `XSendEvent'
/home/paul/upp/out/CtrlLib/GCC.Gui.Shared/CtrlLib.a(MenuBar.o)(.text+0x4b6): In function `Upp::MenuBar::PopUp(Upp::Ctrl*, Upp::Point_<int>, Upp::Size_<i
nt>)':
: undefined reference to `XSync'
/home/paul/upp/out/CtrlLib/GCC.Gui.Shared/CtrlLib.a(ChGtk.o)(.text+0x74): In function `Upp::GtkInt(_GtkWidget*, char const*)':
: undefined reference to `gtk_widget_style_get'
...
There were errors. (23:20.29) Can anyone help?
[Updated on: Mon, 06 July 2009 12:42] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Huge amount of linking errors [FreeBSD 7.1, GCC 4.3] [message #24260 is a reply to message #22439] |
Thu, 07 January 2010 20:10   |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
I'm again experiencing problems linking applications under FreeBSD 7.1. I try to link "All static" version of GTK program and it gives huge amount of linking errors.
This is strange due to Shared version with GTK links flawlessly as well as All static version with NOGTK flag.
Can anyone please give me a clue what to do to make static GTK app?
P.S. These are linking errors:
Quote: | ----- BNFEditor3 ( GUI MT BSD FREEBSD MAIN GCC POSIX BSD FREEBSD ) (11 / 11)
Linking...
/usr/local/lib/libgtk-x11-2.0.a(gtkadjustment.o)(.text+0x484 ): In function `gtk_adjustment_class_intern_init'
:
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkadjustment.o)(.text+0x49a ): In function `gtk_adjustment_class_intern_init'
:
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkadjustment.o)(.text+0x50e ): In function `gtk_adjustment_class_intern_init'
:
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkadjustment.o)(.text+0x524 ): In function `gtk_adjustment_class_intern_init'
:
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkadjustment.o)(.text+0x598 ): In function `gtk_adjustment_class_intern_init'
:
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkadjustment.o)(.text+0x5ae ): more undefined references to `libintl_dgettext
' follow
/usr/local/lib/libgtk-x11-2.0.a(gtkimmulticontext.o)(.text+0 x1a1): In function `gtk_im_multicontext_append_me
nuitems':
: undefined reference to `libintl_bindtextdomain'
/usr/local/lib/libgtk-x11-2.0.a(gtkimmulticontext.o)(.text+0 x1bd): In function `gtk_im_multicontext_append_me
nuitems':
: undefined reference to `libintl_bind_textdomain_codeset'
/usr/local/lib/libgtk-x11-2.0.a(gtkimmulticontext.o)(.text+0 x1d8): In function `gtk_im_multicontext_append_me
nuitems':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkimmulticontext.o)(.text+0 x24a): In function `gtk_im_multicontext_append_me
nuitems':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkinvisible.o)(.text+0x3a4) : In function `gtk_invisible_class_intern_init':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkinvisible.o)(.text+0x3ba) : In function `gtk_invisible_class_intern_init':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtklabel.o)(.text+0x347a): In function `gtk_label_class_intern_init':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtklabel.o)(.text+0x3490): more undefined references to `libintl_dgettext' fo
llow
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x1726): In function `gettext_initialization':
: undefined reference to `libintl_bindtextdomain'
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x173a): In function `gettext_initialization':
: undefined reference to `libintl_bindtextdomain'
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x174e): In function `gettext_initialization':
: undefined reference to `libintl_bind_textdomain_codeset'
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x1762): In function `gettext_initialization':
: undefined reference to `libintl_bind_textdomain_codeset'
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x1860): In function `gtk_get_option_group':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x1876): In function `gtk_get_option_group':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkmain.o)(.text+0x1c75): In function `post_parse_hook':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkmenu.o)(.text+0x38be): In function `gtk_menu_class_intern_init':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkmenu.o)(.text+0x38d4): In function `gtk_menu_class_intern_init':
: undefined reference to `libintl_dgettext'
/usr/local/lib/libgtk-x11-2.0.a(gtkmenu.o)(.text+0x3920): more undefined references to `libintl_dgettext' fol
low
...
|
[Updated on: Thu, 07 January 2010 20:13] Report message to a moderator
|
|
|
Re: Huge amount of linking errors [FreeBSD 7.1, GCC 4.3] [message #24262 is a reply to message #24260] |
Thu, 07 January 2010 20:39  |
masu
Messages: 378 Registered: February 2006
|
Senior Member |
|
|
Hello Pavel,
I do not see the point to link your app with GTK static library.
Normally these libs are not provided since lots of apps are using them. If you would link statically with GTK you would get a huge app size which IMHO is not desirable.
Matthias
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:45:29 CEST 2025
Total time taken to generate the page: 0.01327 seconds
|
|
|