[lazarus] lazarus linking with 1.9 on freebsd
Marco van de Voort
marcov at stack.nl
Tue Nov 4 08:03:56 EST 2003
> +
> + 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}
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.
> So, use them in this hidden procedure.
> }
> procedure CheckUnusedVariable; [Public];
> begin
> if (gdk_display<>nil) 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
More information about the Lazarus
mailing list