[lazarus] lazarus linking with 1.9 on freebsd

Marc Weustink marc.weustink at cuperus.nl
Tue Nov 4 07:48:35 EST 2003




+ -----Original Message-----
+ From: Marco van de Voort [mailto:marcov at Stack.nl]
+ Sent: dinsdag 4 november 2003 13:02
+
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/x11/xlib.o(.stab+0x1388):
+  unresolvable relocation against symbol Xdebug'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gtk.o(.stab+0x4d30):
+ unresolvable relocation against symbol _gtk_major_version'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gtk.o(.stab+0x4d3c):
+ unresolvable relocation against symbol _gtk_minor_version'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gtk.o(.stab+0x4d48):
+ unresolvable relocation against symbol _gtk_micro_version'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gtk.o(.stab+0x4d54):
+ unresolvable relocation against symbol _gtk_binary_age'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gtk.o(.stab+0x4d60):
+ unresolvable relocation against symbol _gtk_interface_age'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62a8):
+ unresolvable relocation against symbol _gdk_selection_property'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62b4):
+ unresolvable relocation against symbol _gdk_progclass'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62c0):
+ unresolvable relocation against symbol _gdk_error_code'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62cc):
+ unresolvable relocation against symbol _gdk_null_window_warnings'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62d8):
+ unresolvable relocation against symbol _gdk_use_xshm'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62e4):
+ unresolvable relocation against symbol _gdk_display_name'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x62fc):
+ unresolvable relocation against symbol _gdk_screen'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6314):
+ unresolvable relocation against symbol _gdk_leader_window'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x632c):
+ unresolvable relocation against symbol _gdk_wm_delete_window'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6338):
+ unresolvable relocation against symbol _gdk_wm_take_focus'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6344):
+ unresolvable relocation against symbol _gdk_wm_protocols'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6350):
+ unresolvable relocation against symbol _gdk_dnd'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x635c):
+ unresolvable relocation against symbol _gdk_error_warnings'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6368):
+ unresolvable relocation against symbol _gdk_default_filters'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6374):
+ unresolvable relocation against symbol _gdk_nevent_masks'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x6380):
+ unresolvable relocation against symbol _gdk_xgrab_window'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/gdk.o(.stab+0x638c):
+ unresolvable relocation against symbol _gdk_threads_mutex'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/glib.o(.stab+0xe84):
+ unresolvable relocation against symbol _glib_major_version'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/glib.o(.stab+0xe90):
+ unresolvable relocation against symbol _glib_minor_version'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/glib.o(.stab+0xe9c):
+ unresolvable relocation against symbol _glib_micro_version'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/glib.o(.stab+0xea8):
+ unresolvable relocation against symbol _glib_interface_age'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/glib.o(.stab+0xeb4):
+ unresolvable relocation against symbol _glib_binary_age'
+
+ ld:
+ /usr/local/lib/fpc/1.9.0/units/freebsd/gtk/glib.o(.stab+0x1340):
+  unresolvable relocation against symbol _g_log_domain_glib'
+
+ Does somebody see a pattern, and knows what it might be?
+
+ glib-1.2.10_10
+ gtk-1.2.10
+ gdk-pixbuf-0.22.0

They are al defined as var and not procedures or functions.

I guess they can't be relocated ?

This is what I found in the gdk2 translations and it might be related:

{$IFNDEF KYLIX}
{ There is a bug in the compiler. If an external variable is not used, it
will
  create code, that can be relocated by the linker.
  So, use them in this hidden procedure.
}
procedure CheckUnusedVariable; [Public];
begin
  if (gdk_display<>nil) then;
end;
{$ENDIF}

Marc






More information about the Lazarus mailing list