[Lazarus] Linker error when building Lazarus r37322 on Linux GTK2

Bart bartjunk64 at gmail.com
Sat May 19 00:34:17 CEST 2012


I cannot build Lazarus r37322.
It fails with a linker error.
At first I thought I had left-over old .ppu's, but I did a make clean
before building, and the object-file in question has the timestamp of
my build.

I tried from commandline this time to see if that helped...

make clean
make all OPT='-gl -gs'
Compiling restrictionbrowser.pas
Compiling projectwizarddlg.pas
Compiling resource ../units/i386-linux/gtk2/lazarus.or
Linking ../lazarus
/home/bart/svnroot/lazarus/lcl/units/i386-linux/gtk2/gtk2proc.o: In
undefined reference to `gtk_window_get_group'
undefined reference to `gtk_window_get_group'
lazarus.pp(133,1) Error: Error while linking
lazarus.pp(133,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazarus] Fout 1
make[2]: Leaving directory `/home/bart/svnroot/lazarus/ide'
make[1]: *** [ide] Fout 2
make[1]: Leaving directory `/home/bart/svnroot/lazarus/ide'
make: *** [ide] Fout 2

OS: Suse Linux 10.0
kernel 2.6.13-15

File: lcl/interfaces/gtk2/gtk2extrah.inc
function gtk_window_get_group(window:PGtkWindow):PGtkWindowGroup;
cdecl; external gtklib;
Introduced in r37290

AFAICS this function (for now) is only used in some debug statements in

  WndGroup := GetGtkWindowGroup(CaptureWidget);
   debugln(['TGtk2WidgetSet.SetCapture WndGroup=',dbgs(WndGroup),'
DefWndGroup=',dbgs(DefWndGroup),' same=',WndGroup=DefWndGroup]);

Is it possible to ifdef this function gtk_window_get_group() depending
on GTK2 version?
According to http://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-get-group
it was introduced in gtk 2.10


More information about the Lazarus mailing list