Sign in Join

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

Mailing lists / lazarus / 2010-09

RichMemo in shared SO library

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Dibo

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. 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?

Regards

Reply by email

dmitry boyarintsev
to Dibo
Dibo wrote 6 lines
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

Hi,

Thanks for the interest with the RichMemo. I saw your bug report! I'm sorry, I can't take a closer look at your problem and probably won't have enough time in the next month. Very sorry.

However, the problem looks to be somehow FPC related, could you ask about the issue at the fpc-pascal mailing list?

thanks,
dmitry

Reply by email