View Issue Details

IDProjectCategoryView StatusLast Update
0031677LazarusWidgetsetpublic2017-04-20 18:36
ReporterAnton Kavalenka Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Platformx86_64OSLinux 
Product Version1.7 (SVN) 
Summary0031677: gtk3: Can not link GTK3 application, non-existent symbol imported
DescriptionGTK3 applications failed to link. Patch provided.

using ld in two different ways gives much thoughts about -T

ld -T link.res
/projects/lazarus/lcl/units/x86_64-linux/gtk3/lazgdkpixbuf2.o: In function `GETTEXT':
/projects/lazarus/lcl/interfaces//gtk3/gtk3bindings/lazgdkpixbuf2.pas:469: undefined reference to `gdk_pixbuf_gettext'


ld link.res
ld: warning: link.res contains output sections; did you forget -T?
ld: .data not found for insert
TagsNo tags attached.
Fixed in Revision54655
LazTarget-
WidgetsetGTK 3
Attached Files

Relationships

related to 0031674 closedJuha Manninen gtk2: DrawText implementation DT_NOPREFIX faulty handling 

Activities

Anton Kavalenka

2017-04-18 18:18

reporter  

lazgdkpixbuf2.diff (1,352 bytes)   
Index: lazgdkpixbuf2.pas
===================================================================
--- lazgdkpixbuf2.pas	(revision 54624)
+++ lazgdkpixbuf2.pas	(working copy)
@@ -332,7 +332,7 @@
 function gdk_pixbuf_get_rowstride(pixbuf: PGdkPixbuf): gint; cdecl; external;
 function gdk_pixbuf_get_type: TGType; cdecl; external;
 function gdk_pixbuf_get_width(pixbuf: PGdkPixbuf): gint; cdecl; external;
-function gdk_pixbuf_gettext(msgid: Pgchar): Pgchar; cdecl; external;
+//function gdk_pixbuf_gettext(msgid: Pgchar): Pgchar; cdecl; external;
 function gdk_pixbuf_loader_close(loader: PGdkPixbufLoader; error: PPGError): gboolean; cdecl; external;
 function gdk_pixbuf_loader_get_animation(loader: PGdkPixbufLoader): PGdkPixbufAnimation; cdecl; external;
 function gdk_pixbuf_loader_get_format(loader: PGdkPixbufLoader): PGdkPixbufFormat; cdecl; external;
@@ -466,7 +466,7 @@
 
 function TGdkPixbuf.gettext(msgid: Pgchar): Pgchar; cdecl;
 begin
-  Result := LazGdkPixbuf2.gdk_pixbuf_gettext(msgid);
+  Result := nil;//LazGdkPixbuf2.gdk_pixbuf_gettext(msgid);
 end;
 
 procedure TGdkPixbuf.new_from_stream_async(stream: PGInputStream; cancellable: PGCancellable; callback: TGAsyncReadyCallback; user_data: gpointer); cdecl;
@@ -834,4 +834,4 @@
   LazGdkPixbuf2.gdk_pixbuf_simple_anim_set_loop(@self, loop);
 end;
 
-end.
\ No newline at end of file
+end.
lazgdkpixbuf2.diff (1,352 bytes)   

Zeljan Rikalo

2017-04-20 10:17

developer   ~0099693

What gtk3 version do you use ?

Anton Kavalenka

2017-04-20 12:24

reporter   ~0099696

Last edited: 2017-04-20 12:28

View 2 revisions

apt-cache show libgtk-3-0
Package: libgtk-3-0
Source: gtk+3.0
Version: 3.22.11-1

apt-cache show libgdk-pixbuf2.0-0
Package: libgdk-pixbuf2.0-0
Source: gdk-pixbuf
Version: 2.36.5-3

Zeljan Rikalo

2017-04-20 15:33

developer   ~0099700

That's why gtk is crap at all. They just remove or add stuff in minor versions.

Anton Kavalenka

2017-04-20 17:37

reporter   ~0099707

all the multilayer wrappers are crap.
But neither CustomDrawn nor fpGUI are usable.

Zeljan Rikalo

2017-04-20 18:15

developer   ~0099712

Please test and close if ok (also changed widgetset from Gtk2 to Gtk3)

Issue History

Date Modified Username Field Change
2017-04-18 18:18 Anton Kavalenka New Issue
2017-04-18 18:18 Anton Kavalenka File Added: lazgdkpixbuf2.diff
2017-04-18 19:15 Juha Manninen Relationship added related to 0031674
2017-04-20 10:17 Zeljan Rikalo Note Added: 0099693
2017-04-20 12:24 Anton Kavalenka Note Added: 0099696
2017-04-20 12:28 Anton Kavalenka Note Edited: 0099696 View Revisions
2017-04-20 15:33 Zeljan Rikalo Note Added: 0099700
2017-04-20 17:37 Anton Kavalenka Note Added: 0099707
2017-04-20 18:15 Zeljan Rikalo Fixed in Revision => 54655
2017-04-20 18:15 Zeljan Rikalo LazTarget => -
2017-04-20 18:15 Zeljan Rikalo Widgetset GTK 2 => GTK 3
2017-04-20 18:15 Zeljan Rikalo Note Added: 0099712
2017-04-20 18:15 Zeljan Rikalo Status new => resolved
2017-04-20 18:15 Zeljan Rikalo Resolution open => fixed
2017-04-20 18:15 Zeljan Rikalo Assigned To => Zeljan Rikalo
2017-04-20 18:36 Anton Kavalenka Status resolved => closed