[fpc-pascal] RichMemo in shared SO library - relocation error
Dibo
dibo20 at wp.pl
Thu Sep 23 16:02:54 CEST 2010
Hi,
I have no problem with LCL and Richmemo in DLL, but on linux I can't
build SO library with TRichMemo. I get this error:
/usr/bin/ld: /home/dibo/Programowanie/Lazarus/components/richmemo/lib/x86_64-linux/richmemo.o: relocation R_X86_64_32S against `TC_RICHMEMO_RTFLOADSTREAM' can not be used when making a shared object; recompile with -fPIC
/home/dibo/Programowanie/Lazarus/components/richmemo/lib/x86_64-linux/richmemo.o: could not read symbols: Bad value
Compiling with -fPIC switch doesn't help (I rebuilt RTL with CREATESHARED=1 too). Project with empty form (and
with random LCL components) is compiling without errors. I post this bug
on mantis some times ago, but maybe this is minor bug and I cans fix
this in source by my self (it blocks the development of my project)? Any
idea? It seems, that compiler have problem with this global variables:
var
RTFLoadStream : function (AMemo: TCustomRichMemo; Source: TStream): Boolean = nil;
RTFSaveStream : function (AMemo: TCustomRichMemo; Dest: TStream): Boolean = nil;
I have latest FPC and Lazarus from SVN
Ubuntu 10.4 64 bit
Regards
More information about the fpc-pascal
mailing list