Bug in Lazarus package in Debian
Hello Abou,
current Lazarus version in Debian Unstable will not compile any app.
The compilation ends with this error:
PPU Loading /usr/lib/lazarus/0.9.30.2/lcl/units/x86_64-linux/gtk2/interfaces.ppu
PPU Invalid Version 104
Fatal: Can't find unit Interface
Lazarus in Precise Pangolin works without any problem. The only
difference we found is the fpc-compiler version. If you rebuild
Lazarus with fpc-compiler version in Debian unstable, we think it will
work again.
I would like to ask you if you could also apply a patch I'm sending.
It fixes bug in Lazarus which is on systems with glib version >= 2.31
where Lazarus itself and also all apps builded in it freeze after
start. The author is Zeljan Rikalo and bug is reported here:
http://bugs.freepascal.org/view.php?id=21129
If you want to test if the rebuild helped, you can try to rebuild
cqrlog package. The cqrlog package in Debian did build fine with the
fp-compiler 2.4 versions but fails with your recently uploaded
fp-compiler 2.6.0-1
Thanks a lot!
Petr
--- trunk/lcl/interfaces/gtk2/gtk2widgetset.inc 2012/01/07 17:12:12 34639
+++ trunk/lcl/interfaces/gtk2/gtk2widgetset.inc 2012/01/31 07:12:20 35051
@@ -1479,8 +1479,10 @@
if GetThreadManager(TM) and Assigned(TM.InitManager) and g_thread_supported then
begin
g_thread_init(nil);
+ {$IFDEF USE_GTK_MAIN_OLD_ITERATION}
gdk_threads_init;
gdk_threads_enter;
+ {$ENDIF}
fMultiThreadingEnabled := True;
end;
{$ELSE}
@@ -1847,7 +1849,9 @@
if MultiThreadingEnabled then
begin
{$IFNDEF Win32}
+ {$IFDEF USE_GTK_MAIN_OLD_ITERATION}
gdk_threads_leave;
+ {$ENDIF}
{$ENDIF}
fMultiThreadingEnabled := False;
end;
Reply to: