Page 1 of 1

Lazarus still is not compiling unidac370src

Posted: Wed 08 Jun 2011 01:38
by sir.wally.lewis
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:

Posted: Wed 08 Jun 2011 03:13
by sir.wally.lewis
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

Posted: Wed 08 Jun 2011 07:30
by AlexP
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^)^;