Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

lazarus linking with 1.9 on freebsd

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort
to Marc Weustink: + -----Original Message----- + From: Marco van de Voort + Sent: dinsdag 4 november 2003…
Show quoted text 28 lines
+ + 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_displaynil) then; end; {$ENDIF}

It is indeed definitely in the linker. With some link.res fondling, I'm able to link lazarus statically (on FreeBSD with current 1.1.x/1.9 snapshot), but the result shows splash and error, and then dies horribly.

eate code, that can be relocated by the linker.

Show quoted text 7 lines
So, use them in this hidden procedure. } procedure CheckUnusedVariable; [Public]; begin if (gdk_displaynil) then; end; {$ENDIF}

It is indeed definitely in the linker. With some link.res fondling, I'm able to link lazarus statically (on FreeBSD with current 1.1.x/1.9 snapshot), but the result shows splash and error, and then dies horribly with a Acces Violation dialogue that is not clickable.

(the bottom two ones are the real culprits, the rest is shutdown I guess)

0x0835A628 DOUNHANDLEDEXCEPTION, line 161 of
/usr/fpc/devel/fpc/rtl/inc/except.inc
0x0835A66C fpc_raiseexception, line 173 of
/usr/fpc/devel/fpc/rtl/inc/except.inc
0x0830B702 RUNERRORTOEXCEPT, line 258 of
/usr/fpc/devel/fpc/rtl/objpas/sysutils/sysutils.inc 0x0835C66A HANDLEERRORADDRFRAME, line 684 of
/usr/fpc/devel/fpc/rtl/inc/system.inc
0x0835E6C1 SIGNALTORUNERROR, line 544 of ../bsd/osmain.inc 0xBFBFFFAC main, line 352 of /usr/fpc/devel/fpc/rtl/inc/heap.inc 0x08177C30 DELETENODE, line 478 of avl_tree.pas
0x08177BC7 TAVLTREE__CLEAR, line 483 of avl_tree.pas 0x08178129 TAVLTREE__DESTROY, line 641 of avl_tree.pas 0x08359697 TOBJECT__FREE, line 149 of
/usr/fpc/devel/fpc/rtl/inc/objpas.inc
0x0817E97F TDOMNODE_WITHCHILDREN__DESTROY, line 804 of laz_dom.pas 0x08359697 TOBJECT__FREE, line 149 of
/usr/fpc/devel/fpc/rtl/inc/objpas.inc
0x0826B764 TXMLCONFIG__DESTROY, line 107 of laz_xmlcfg.pas 0x08359697 TOBJECT__FREE, line 149 of
/usr/fpc/devel/fpc/rtl/inc/objpas.inc
0x081C398A TEDITOROPTIONS__DESTROY, line 1128 of editoroptions.pp 0x08359697 TOBJECT__FREE, line 149 of
/usr/fpc/devel/fpc/rtl/inc/objpas.inc
0x081A3C31 FREETHENNIL, line 950 of ideprocs.pp
0x083293A3 TMAINIDE__DESTROY, line 893 of main.pp 0x08314990 TCOMPONENT__DESTROYCOMPONENTS, line 403 of /usr/fpc/devel/fpc/rtl/objpas/classes/compon.inc
0x08314915 TCOMPONENT__DESTROY, line 388 of
/usr/fpc/devel/fpc/rtl/objpas/classes/compon.inc
0x08294B4F TCUSTOMAPPLICATION__DESTROY, line 159 of inc/custapp.pp 0x0834DB47 TAPPLICATION__DESTROY, line 111 of ./include/application.inc 0x08359697 TOBJECT__FREE, line 149 of
/usr/fpc/devel/fpc/rtl/inc/objpas.inc
0x083489DE FREEINTERFACEOBJECT, line 1241 of forms.pp 0x08350910 INTERFACES_finalize, line 46 of interfaces.pp 0x0835C3C4 FINALIZEUNITS, line 619 of
/usr/fpc/devel/fpc/rtl/inc/system.inc
0x0835C424 INTERNALEXIT, line 642 of
/usr/fpc/devel/fpc/rtl/inc/system.inc
0x0835C5C8 DO_EXIT, line 657 of /usr/fpc/devel/fpc/rtl/inc/system.inc 0x0835C5FB HALT, line 671 of /usr/fpc/devel/fpc/rtl/inc/system.inc 0x0835C720 RUNERROR, line 719 of /usr/fpc/devel/fpc/rtl/inc/system.inc 0x0835A628 DOUNHANDLEDEXCEPTION, line 161 of
/usr/fpc/devel/fpc/rtl/inc/except.inc
0x0835A9C0 fpc_reraise, line 265 of
/usr/fpc/devel/fpc/rtl/inc/except.inc
0x0834FB12 TAPPLICATION__CREATEFORM, line 1084 of ./include/application.inc
0x08363103 main, line 74 of lazarus.pp
0x0804811A

Reply by email

Marco van de Voort

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

Reply by email

Marc Weustink
to Marco van de Voort

+ -----Original Message-----
+ From: Marco van de Voort
+ 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_displaynil) then;
end;
{$ENDIF}

Marc

Reply by email

Marco van de Voort
to Marc Weustink
Show quoted text 26 lines
+ /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_displaynil) then; end; {$ENDIF}

It went away after a FPC update. (mine was already a day old)

Still AV though, but that seems to be ansistring reference count related, and something for FPC then lazarus.

Reply by email