Unidac doesn't compile on Lazarus 64 bit.

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
99Percent
Posts: 48
Joined: Tue 13 Sep 2005 05:34

Unidac doesn't compile on Lazarus 64 bit.

Post by 99Percent » Tue 12 Jul 2011 01:51

Unidac for Linux requires libc unit which is deprecated and no longer supported under freepascal 64 bit.

I don't think it would be very difficult for devart to make Unidac code compatible to linux 64, replacing all references to libc with current units (sockets, unix, baseunix, etc).

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 12 Jul 2011 10:16

Hello,

We plan to release versions of DAC products for x64 Linux and Windows in August.

99Percent
Posts: 48
Joined: Tue 13 Sep 2005 05:34

Post by 99Percent » Sat 20 Aug 2011 15:43

Quite disappointed the 4.0 beta doesn't support Linux 64. Please don't ignore Lazarus comunity.

AndreyZ

Post by AndreyZ » Mon 22 Aug 2011 12:08

We will add support for x64 Linux, but for the time being we cannot provide any timeframe.

sir.wally.lewis
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Post by sir.wally.lewis » Wed 23 Nov 2011 23:18

We need support for 64 bit linux urgently.

Kind Regards,

Robert.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 24 Nov 2011 08:11

Hello,

We've implemented support for Lazarus for Linux x64 in our DAC products. This version will be available today or tomorrow.

Mark@Basx
Posts: 1
Joined: Sun 27 May 2012 23:26

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by Mark@Basx » Sun 27 May 2012 23:55

How about Windows 64?

I tried to compile Unidac for Lazarus, running Lazarus 0.9.30.4 x86-64 version. In the unit CRParser, in procedure TParser.ToRightQuoteA, at line 426 (MOV RCX, i), we are getting the error:
C:\V2\brsource\3rdParty\Devart\UniDAC\Source\CRParser.pas(426,14) Error: Size suffix and destination or source size do not match
We have been able to proceed by reverting to 32-bit Lazarus.

Is this a known problem? Any solutions forthcoming?

TIA
Mark

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by AlexP » Mon 28 May 2012 09:03

Hello,

The latest UniDAC version 4.1.6 is installed on Lazarus 0.9.30.4 with FPC 2.6.0 with no errors independently on the platform (Win32 or Win64). Make sure you are using the specified product versions, and that there are no old UniDAC files (*.pas, *.ppu, *.o, etc.) remained from the previous versions. If this doesn't help, try reinstalling Lazarus having previously removed all its files and settings, from the registry as well.

sir.wally.lewis
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by sir.wally.lewis » Fri 15 Jun 2012 05:37

This is urgent for us as well.
I compile the unidac packages perfectly well in Lazarus 64 bit 0.9.30.4 FPC 2.6.0
However this unit as the original poster states is failing to compile.

I have removed all previous copies of code.

Devart\UniDAC\Source\CRParser.pas(426,14) Error: Size suffix and destination or source size do not match
Devart\UniDAC\Source\CRParser.pas(1520) Fatal: There were 1 errors compiling module, stopping

This is not an users bug!
It is unidac!
We need this fixed urgently.

Kind Regards,

Robert.

sir.wally.lewis
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by sir.wally.lewis » Fri 15 Jun 2012 05:42

I have added my own fix at line 406 :

{$IFDEF CPUX64}
i : int64;
{$ELSE}
i : integer;
{$ENDIF}

Now compiles well.

Kind Regards,

Robert.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by AlexP » Fri 15 Jun 2012 08:46

hello,

Please, specify the name and the exact version of the Linux core you are using, as with the latest Ubuntu x64 (on which we test our products) such problems do not occur.

sir.wally.lewis
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by sir.wally.lewis » Fri 15 Jun 2012 23:31

I am using 64 bit windows. windows 7.
It is clearly an error as I have given the fix.
My components install fine. It is only when I use it fails.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by AlexP » Mon 18 Jun 2012 08:45

hello,

We cannot reproduce the described problems on Windows x64. These problems may be due to specific settings of your Lazarus project. Please create a simple project reproducing the problem and send it to us in order that we can reproduce and fix the problem

sir.wally.lewis
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by sir.wally.lewis » Tue 19 Jun 2012 02:56

have reproduced an error not the same one. by simply compiling a lazarus package with unidac.
I have posted a message to the contacts page of devart. with an example project/package.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Unidac doesn't compile on Lazarus 64 bit.

Post by AlexP » Tue 19 Jun 2012 09:52

hello,

Thank you, I have received your letter. I will reply as soon as any additional information appears.

Post Reply