compiling turbo power lockbox on ubuntu 64 lazarus / 32-Linux ---------------------------------------------------------------------- herux · 2011-07-26 06:30 Hi, I use RSA encryption library lockbox turbo power. in a windows environment I managed to compile and the apps working well, I use {$ mode delphi}. but when I compile it on ubuntu 64bit, there is an error when compiling component/LockBox/LbCipher.pas(708,10) Error: Unknown identifier "EBX" component/LockBox/LbCipher.pas(708,10) Warning: No size specified and unable to determine the size of the operands, using DWORD as default component/LockBox/LbCipher.pas(709,10) Error: Unknown identifier "EAX" component/LockBox/LbCipher.pas(709,10) Warning: No size specified and unable to determine the size of the operands, using DWORD as default component/LockBox/LbCipher.pas(710,13) Error: Unknown identifier "EAX" component/LockBox/LbCipher.pas(710,15) Error: Assembler syntax error in operand component/LockBox/LbCipher.pas(710,19) Error: Unknown identifier "EAX" component/LockBox/LbCipher.pas(710,19) Error: Assembler syntax error in operand component/LockBox/LbCipher.pas(711,12) Error: Unknown identifier "BH" component/LockBox/LbCipher.pas(711,14) Error: Unknown identifier "AL" component/LockBox/LbCipher.pas(712,12) Error: Unknown identifier "BL" component/LockBox/LbCipher.pas(712,14) Error: Unknown identifier "AH" component/LockBox/LbCipher.pas(713,13) Error: Unknown identifier "EBX" so on ... asm delphi like code doesn't compiled right ? but why on windows compiled ? update: I am trying to cross compile it in windows, for linux x86_64, and produces the same error. whether the asm code is not supported for 64bit? ---------------------------------------------------------------------- herux · 2011-07-26 06:49 i found this docs http://www.freepascal.org/docs-html/ref/refse55.html http://www.freepascal.org/docs-html/prog/progch3.html#x127-1280003 I'll read it first, if anyone can explain it better, please info ---------------------------------------------------------------------- jarto · 2013-01-26 09:44 Let me resurrect this old topic. After looking around for another library that supports RSA, I had to conclude, that there are not many options to choose from. LockBox3 is a complete rewrite and it's so heavily married to Delphi and Windows, that it'd be a total nightmare to get it to compile on Linux and/or FPC. LockBox2 compiles and works nicely on both Kylix and 32 bit FPC. But it contains some libc-bindings and ASM-code, that prevents it from being compiled on 64 bit FPC. I've rewritten the ASM code as pascal and removed the libc-bindings and have a version of LockBox2, that does compile and run on: Lazarus/FPC Windows 32 bit Lazarus/FPC Windows 64 bit Lazarus/FPC Linux 32 bit Lazarus/FPC Linux 64 bit Delphi (at least 2007, but probably even newer versions) And then to the question: Does anyone know, who maintains LockBox2? The sourceforge site has pretty much abandoned it and concentrates on LockBox3. I'd like to discuss my changes with the maintaner and contribute them instead of making a new fork. ---------------------------------------------------------------------- jarto · 2013-01-27 10:25 Answering my own question: Sebastian Zierer is maintaining LockBox2 for Delphi and we are cooperating and improving it. We'll probably soon release a version, which supports: FPC Windows 32 FPC Windows 64 FPC Linux 32 FPC Linux 64 Delphi 32 bit Delphi 64 bit Delphi Mac ---------------------------------------------------------------------- BigChimp · 2013-01-27 10:37 Great news, thanks, Jarto! ---------------------------------------------------------------------- jarto · 2013-02-10 12:46 I haven't heard from Sebastian in a long time, so I decided to set up a github account and push all my changes there. So here's a version of LockBox2, which also compiles on 64 bit FPC. https://github.com/jarto/lockbox2 Any contributions and comments are welcome.