Lazarus still is not compiling unidac370src

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sir.wally.lewis
Posts: 42
Joined: Thu 25 Nov 2010 05:01
Location: PS

Lazarus still is not compiling unidac370src

Post by sir.wally.lewis » Wed 08 Jun 2011 01:38

I went to use lazarus version 0.9.31 FPC Version 2.5.1 SVN Revision 29691.
With the latest unidac370 source.
I get

Devart\UniDAC\Source\DBMonitorMessages.pas(528,48 ) Error: Illegal qualifier
The line is sock_addr.sin_addr.S_addr := PLongInt(hp.h_addr^)^;

Don't know what to do.

Can I comment out this line?

Kind Regards,

Robert. :oops:

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

Post by sir.wally.lewis » Wed 08 Jun 2011 03:13

OK,

I now Install the release version of lazarus. 0.9.30 FPC 2.4.2

Same problem.

This is definitely a bug with unidac

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

Post by AlexP » Wed 08 Jun 2011 07:30

Hello,

Thank you for the information.
We've reproduced and fixed this problem.
The fix will be included into the next build.

As a temporary workaround, you can change the following code:

Code: Select all

sock_addr.sin_addr.S_addr := PLongInt(hp.h_addr^)^; 
to

Code: Select all

sock_addr.sin_addr.S_addr := PLongInt(hp^.h_addr^)^;

Post Reply