Error installing on Lazarus 1.1

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
patyit
Junior Boarder
Junior Boarder
Posts: 37
Joined: 10.02.2012, 18:39

Error installing on Lazarus 1.1

Post by patyit »

Hi all !

I just upgraded Lazarus & Zeos7 and can't compile ZeosLib, I have fallowing error :

../ZAbstractDataset.pas(476,13) Error: Incompatibile types: got "AnsiString" expected "Pointer"
BM := Bookamark;
../ZAbstractDataset.pas(484,19) Error: Incompatibile types for arg no. 1: got "Pointer", expected "AnsiString"
BookMark:=BM;

os: Ubuntu 11.04 32bit
I have clean install of Lazarus 1.1 latest svn & fpc 2.6.1 Zeos7 latest svn testing-egonhugeist.
(performed build clean all etc ...)
On other computer i try to install trunk but with the same error ...
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

Lazarus 1.1 development version and not zeos on it is not obliged to work
in release Lazarus all ok
Lazarus 1.0.8 fpc 2.6.0
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

patyit,

Lazarus isn't the problem here. Which means you can use the 1.1 Snapshot + FPC2.6.0.

The fpc 2.6.1 and 2.7+ are making trouble actually, that i know for sure from our german users.
Zeos isn't the problem here.

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
patyit
Junior Boarder
Junior Boarder
Posts: 37
Joined: 10.02.2012, 18:39

Post by patyit »

Thanks for answer, I'll go back to FPC 2.6.0 !
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

In 2.6.1 the old situation has been restored, and "bookmark" property is of type bookmarkstr again.

In 2.7.1 the situation is D2009+, bookmark property is of type TBytes.

The 2.7.1 situation will be merged to the 2.6 series only AFTER 2.6.2, to give depending projects more time to adjust.

Compared to 2.6.0 both 2.6.1 and 2.7.1 have changed buffer pointers to TRecordBuffer, but the definition of Trecordbuffer is still pansichar. (not pbyte, like in D2009+). Again to give some time for adjustment.
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

For Lazarus 1.1.0 Source from SVN 20-4-2012 Rev 36942
FreePascal 2.7.1 Source from SVN 20-4-2012 Rev 20936

I add: {$UNDEF WITH_TBOOKMARK}

unit ZAbstractDataset;

interface

{$I ZComponent.inc}
{$UNDEF WITH_TBOOKMARK}
uses

and now it compiles

Michal Abramczyk
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

Strange, testing works for me without that change. But that is the testing branch, not egon's.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Realy strange, Marco. The Bookmark handling is exacly the same, which you have introduced in \testing. No differences. Other peoples have the same trouble with the 2.x.1 releases and \trunk or \testing.

How did you manage this? The patch of miab3 seems for me possibilty one. The second: you have undifined the WITH_TBOOKMARK define in the Zeos/Lazarus.inc! No way around. Or did you patch something i don't know about?

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

EgonHugeist wrote:Realy strange, Marco. The Bookmark handling is exacly the same, which you have introduced in \testing. No differences. Other peoples have the same trouble with the 2.x.1 releases and \trunk or \testing.
Please keep your versioning straight. 2.6.1 and 2.7.1 are _totally_ different things (with 1376 SVN commits not merged from 2.7.1 to 2.6.1)

2.7.1 has tbookmark in D2009 style, 2.6.1 not. Both are "running" versions that change by the day. Such a version without a date indication is essentially useless.
How did you manage this?
There is not much to manage; Zeos SVN is clean (no files edited). FPC 2.7.1 was built from source yesterday.

zeoslazarus.inc contains:

{$IF FPC_FULLVERSION>20600} // will be introduced in 2.6.2 (and up to date 2.6.1)
{$DEFINE WITH_TRECORDBUFFER}
{$DEFINE WITH_TBOOKMARK} // Have TBookmark
{$IFEND}

Which is correct for 2.7.1, but not for 2.6.1 (should be changed too > 20602 probably, since merging has been postponed to AFTER 2.6.2 instead of before). Commmitted this to zeoslib testing r1286
The patch of miab3 seems for me possibilty one. The second: you have undifined the WITH_TBOOKMARK define in the Zeos/Lazarus.inc! No way around.
I've no idea, unless miab3 is mixing up versions or using severely outdated ones. Or there are differences between egon and testing.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Nope, no differences concerning the TBookmark. Absolutly the same.

Trank you for that *.inc update. I'll merge it to egon this evening too or you do it.

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked