EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SBB compile with Free Pascal

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#19412
Posted: 03/12/2012 00:29:57
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Hi Eugene,

As mentioned by my colleague earlier, we are using the Linux source version v9.1.214

Should we use the below release from download section of my control center?
Release: PKIBlackbox VCL, source code, Linux package - Version 9.1.215. Released on 2012-02-20
Link: http://www.eldos.com/files/files/sbb9/_1/pkibbox_linux.zip

Please advise

Regards
Peter
#19413
Posted: 03/12/2012 01:17:19
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Also, for your question on definition
I am using the SecBbox.inc file from the Linux source version v9.1.214. Please let me know, if I need to make any changes to it.

Regards
Peter
#19414
Posted: 03/12/2012 01:48:12
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Hi Eugene,

I just followed Santiago's sample and defined one line within the SecBbox.inc and replicated the same issue my colleague talked about DateUtils duplication error.

{$DEFINE MACOS}


I removed the DateUtils and the compilation throws other errors. The good thing is that all other windows specific error references are gone.

Please let me know, if I need/require to define anything with in the SecBbox.inc file.

Please see the 2 compilation errors below

developer1$ ppc386 BaseBBoxLinux.pp
Free Pascal Compiler version 2.6.0 [2011/12/30] for i386
Copyright © 1993-2011 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling BaseBBoxLinux.pp
Compiling . ./sources/SBLicenseManager.pas
Compiling . ./sources/SBUtils.pas
SBUtils.pas(48,16) Error: Duplicate identifier "DATEUTILS"
Compiling . ./sources/SBMath.pas
SBMath.pas(140,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

developer1$ ppc386 BaseBBoxLinux.pp
Free Pascal Compiler version 2.6.0 [2011/12/30] for i386
Copyright © 1993-2011 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling BaseBBoxLinux.pp
Compiling . ./sources/SBLicenseManager.pas
Compiling . ./sources/SBUtils.pas
Compiling . ./sources/SBMath.pas
Compiling . ./sources/SBEncoding.pas
Compiling . ./sources/SBUtils.pas
Compiling . ./sources/SBConstants.pas
Assembling (pipe) . ./sources/SBConstants.s
Compiling . ./sources/SBRandom.pas
Assembling (pipe) . ./sources/SBRandom.s
Compiling . ./sources/SBMD.pas
Assembling (pipe) . ./sources/SBMD.s
Compiling . ./sources/SBASN1Tree.pas
Compiling . ./sources/SBStreams.pas
Writing Resource String Table file: SBStreams.rst
Assembling (pipe) . ./sources/SBStreams.s
Compiling . ./sources/SBASN1.pas
Writing Resource String Table file: SBASN1.rst
Assembling (pipe) . ./sources/SBASN1.s
Writing Resource String Table file: SBASN1Tree.rst
Assembling (pipe) . ./sources/SBASN1Tree.s
Compiling . ./sources/SBSHA.pas
Assembling (pipe) . ./sources/SBSHA.s
SBUtils.pas(7088,11) Error: Not all declarations of "SBRndSeed" are declared with OVERLOAD
SBUtils.pas(7132,10) Error: Not all declarations of "SBRndGenerate" are declared with OVERLOAD
SBUtils.pas(7235,3) Error: Wrong number of parameters specified for call to "ParseURL"
SBUtils.pas(7238,11) Error: Not all declarations of "ParseURL" are declared with OVERLOAD
SBUtils.pas(7421,10) Error: Not all declarations of "HexDump" are declared with OVERLOAD
SBUtils.pas(7798,1) Fatal: Syntax error, "BEGIN" expected but "INITIALIZATION" found
Fatal: Compilation aborted


Regards
Peter
#19415
Posted: 03/12/2012 02:43:25
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

It seems that {$DEFINE FPC} is missing in SecBbox.inc. Anyway you should compare your SecBbox.inc to the one that Santiago Castaño posted above and find out missing defines.
#19429
Posted: 03/12/2012 19:17:16
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Good day,

I replaced my SecBbox.inc with the content posted by Santiago and it didn't resolve issues.
The compilation errors are below

developer1$ ppc386 BaseBBoxLinux.pp
Free Pascal Compiler version 2.6.0 [2011/12/30] for i386
Copyright © 1993-2011 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling BaseBBoxLinux.pp
Compiling . ./sources/SBLicenseManager.pas
Compiling . ./sources/SBUtils.pas
Compiling . ./sources/SBMath.pas
Compiling . ./sources/SBEncoding.pas
Compiling . ./sources/SBUtils.pas
SBUtils.pas(778,45) Error: Identifier not found "FILETIME"
SBUtils.pas(779,57) Error: Identifier not found "FILETIME"
SBUtils.pas(1542,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
#19430
Posted: 03/12/2012 21:42:53
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Hi,

I also tried to change Santigo's copy of this file with couple of code blocks and define it as MACOS.
It got rid of the FILETIME identifier error, but it ends up on the same error I posted earlier with additional warning.

Code
{$DEFINE MACOS}

{$ifdef MACOS}
    {$undef WIN32}
    {$undef SB_WINDOWS}
{$endif}

{$ifdef MACOS}
  {$define SB_POSIX}
  {$define SB_MACOS}
  {$ifndef FPC}
    {$define DELPHI_MAC}
  {$endif}
{$endif}  


The error:

developer1$ ppc386 BaseBBoxLinux.pp
Free Pascal Compiler version 2.6.0 [2011/12/30] for i386
Copyright © 1993-2011 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling BaseBBoxLinux.pp
Compiling . ./sources/SBLicenseManager.pas
Compiling . ./sources/SBUtils.pas
Compiling . ./sources/SBMath.pas
Compiling . ./sources/SBEncoding.pas
Compiling . ./sources/SBUtils.pas
Compiling . ./sources/SBConstants.pas
Assembling (pipe) . ./sources/SBConstants.s
Compiling . ./sources/SBRandom.pas
Assembling (pipe) . ./sources/SBRandom.s
Compiling . ./sources/SBMD.pas
SBMD.pas(285,8) Warning: Conversion between ordinals and pointers is not portable
SBMD.pas(418,10) Warning: Conversion between ordinals and pointers is not portable
Assembling (pipe) . ./sources/SBMD.s
Compiling . ./sources/SBASN1Tree.pas
Compiling . ./sources/SBStreams.pas
SBStreams.pas(50,15) Warning: An inherited method is hidden by "TElFileStream.SetSize64(const Int64);"
Writing Resource String Table file: SBStreams.rst
Assembling (pipe) . ./sources/SBStreams.s
Compiling . ./sources/SBASN1.pas
SBASN1.pas(421,12) Warning: Conversion between ordinals and pointers is not portable
SBASN1.pas(437,14) Warning: Conversion between ordinals and pointers is not portable
SBASN1.pas(539,16) Warning: Conversion between ordinals and pointers is not portable
SBASN1.pas(549,19) Warning: Conversion between ordinals and pointers is not portable
SBASN1.pas(735,12) Warning: Conversion between ordinals and pointers is not portable
Writing Resource String Table file: SBASN1.rst
Assembling (pipe) . ./sources/SBASN1.s
SBASN1Tree.pas(1120,10) Warning: Conversion between ordinals and pointers is not portable
SBASN1Tree.pas(1126,10) Warning: Conversion between ordinals and pointers is not portable
SBASN1Tree.pas(1243,31) Warning: Conversion between ordinals and pointers is not portable
Writing Resource String Table file: SBASN1Tree.rst
Assembling (pipe) . ./sources/SBASN1Tree.s
Compiling . ./sources/SBSHA.pas
Assembling (pipe) . ./sources/SBSHA.s
SBUtils.pas(1745,29) Warning: Func tion result does not seem to be set
SBUtils.pas(1750,29) Warning: Func tion result does not seem to be set
SBUtils.pas(1755,29) Warning: Func tion result does not seem to be set
SBUtils.pas(1760,29) Warning: Func tion result does not seem to be set
SBUtils.pas(6937,10) Warning: Func tion result does not seem to be set
SBUtils.pas(7088,11) Error: Not all declarations of "SBRndSeed" are declared with OVERLOAD
SBUtils.pas(7132,10) Error: Not all declarations of "SBRndGenerate" are declared with OVERLOAD
SBUtils.pas(7235,3) Error: Wrong number of parameters specified for call to "ParseURL"
SBUtils.pas(7238,11) Error: Not all declarations of "ParseURL" are declared with OVERLOAD
SBUtils.pas(7421,10) Error: Not all declarations of "HexDump" are declared with OVERLOAD
SBUtils.pas(7798,1) Fatal: Syntax error, "BEGIN" expected but "INITIALIZATION" found
Fatal: Compilation aborted
#19432
Posted: 03/13/2012 01:32:47
by Eugene Mayevski (EldoS Corp.)

First of all, please try build 215 - we've been updating its code for MacOS X (for Delphi XE2) and it is compiled in Delphi, so most issues should go away.

Next, we will migrate to FreePascal 2.6 in SecureBlackbox 10 (actually we've already started). I will re-check our code for the first beta of SecureBlackbox 10 which is expected later in March. You have lifetime free upgrades so you will get access to that build.


Sincerely yours
Eugene Mayevski
#19433
Posted: 03/13/2012 21:34:22
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Hi Eugene,

I compiled 215 release and made MACOS specific definition changes on top of Santigo's copy of SecBbox.inc file.

Code
{$DEFINE MACOS}
{$Q-}
{$R-}
{$DEFINE FPC}        

{$ifdef MACOS}
    {$undef WIN32}
    {$undef SB_WINDOWS}
{$endif}


  {$ifdef MACOS}
  {$define SB_POSIX}
  {$define SB_MACOS}
  {$ifndef FPC}
    {$define DELPHI_MAC}
  {$endif}
{$endif}  


The compilation errors are same as I posted earlier with 214 release.

SBUtils.pas(7088,11) Error: Not all declarations of "SBRndSeed" are declared with OVERLOAD
SBUtils.pas(7132,10) Error: Not all declarations of "SBRndGenerate" are declared with OVERLOAD
SBUtils.pas(7235,3) Error: Wrong number of parameters specified for call to "ParseURL"
SBUtils.pas(7238,11) Error: Not all declarations of "ParseURL" are declared with OVERLOAD
SBUtils.pas(7421,10) Error: Not all declarations of "HexDump" are declared with OVERLOAD
SBUtils.pas(7798,1) Fatal: Syntax error, "BEGIN" expected but "INITIALIZATION" found
Fatal: Compilation aborted


I managed to fix the overload method error by declaring unique method names and syntax error with BEGIN and INITIALIZATION.
I have now got a macapi unit error. Could you help on how to get this unit or source file?

Compiling SBSocket.pas
Fatal: Can't find unit MacAPI used by SBSocket
Fatal: Compilation aborted


The release used to compile is below

Release: PKIBlackbox VCL, source code, Linux package - Version 9.1.215. Released on 2012-02-20
Link: http://www.eldos.com/files/files/sbb9/_1/pkibbox_linux.zip

Regards
Peter
#19434
Posted: 03/13/2012 23:33:15
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Hi Eugene,

I also disabled some of the units from BaseBBoxLinux.pp and managed to compile the dylib which may/may not work for us at the moment, but I will surely want to enable the units and compile again once I hear from you.

FYI, I have done the following modification to the 215 source which allwowed me to compile the libBaseBBoxLinux.dylib

Code
//Used Santiago's copy and added MACOS specific definition block
SecBbox.inc

//Removed duplicate use of dateutil
//Declared unique method to resolve overload methods error
//Added Begin and end code block for MACOS in function SBRndTimeSeed
//Disabled function GetCurrentThreadID
SBUtils.pas

//Changed overload method signature i.e 'SBRndGenerate' to 'SBRndGenerate1'
SBMath.pas
SBRSA.pas
SBDSA.pas
SBGOST341094.pas
SBMSKeyBlob.pas

//disbled units
SBSocket.pas //can't find unit MacAPI
SBTimer.pas  //FEvent.Reset() and DoTimer; error
SBUnicode.pas  // GetACP identifier not found
SBSocketTSPClient.pas //can't find unit MacAPI
SBDiskFSAdapter.pas //can't find unit MacAPI
#19511
Posted: 03/19/2012 00:23:44
by DWS DWS (Priority Standard support level)
Joined: 02/24/2011
Posts: 17

Hi,

Can anyone help with the previous 2 posts?
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 8344 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!