Bug compiling Zcomponent Linux

In this forum you may discuss all issues concerning the Lazarus IDE and Freepascal (both running on Windows or Linux).

Moderators: gto, cipto_kh, EgonHugeist

JohnML1
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 12.03.2015, 08:34

Bug compiling Zcomponent Linux

Postby JohnML1 » 23.04.2018, 15:04

ZeosLib:
SVN Revision 4513

error:
ZSysUtils.pas(664,10) Error: Forward declaration not solved "SQLQuotedStr(PChar;LongInt;Char;Char):AnsiString;"

Line 664:
function SQLQuotedStr(Src: PChar; Len: Integer; QuoteLeft, QuoteRight: Char): string; overload;

Info:
Lazarus 1.9.0 r57658 FPC 3.0.0 x86_64-linux-gtk2

No probs for Windows XP with same Revision!

marsupilami
Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Postby marsupilami » 24.04.2018, 08:32

Hello John,

which branch of Zeos do you use? Zeos 7.2 or Zeos 7.3 or Zeos trunk?
Best regards,

Jan

JohnML1
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 12.03.2015, 08:34

Re: Bug compiling Zcomponent Linux

Postby JohnML1 » 24.04.2018, 20:04

sorry, i used trunk

RapidSVN tells me: svn://svn.code.sf.net/p/zeoslib/code-0/trunk

***************************

does gmail "eat" Email Notifications?!!

marsupilami
Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Postby marsupilami » 25.04.2018, 07:46

JohnML1 wrote:sorry, i used trunk

RapidSVN tells me: svn://svn.code.sf.net/p/zeoslib/code-0/trunk

Hmmm - the only one, I didn't check. I suggest you use Zeos 7.2 if you don't need OleDB or ODBC. If you need OleDB or ODBC use Zeos 7.3. All development happens there. Trunk usually lags behind Zeos 7.3.

JohnML1 wrote:does gmail "eat" Email Notifications?!!

The Forums cannot send e-mails because of some changes in Sourceforge.

Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 120
Joined: 08.05.2014, 12:08

Re: Bug compiling Zcomponent Linux

Postby Fr0sT » 25.04.2018, 13:44

Hmm, that function was made by me but IDK why compiler wants Ansistring as a result.

JohnML1
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 12.03.2015, 08:34

Re: Bug compiling Zcomponent Linux

Postby JohnML1 » 25.04.2018, 14:13

even if i try
zeosdbo-7.2.4-stable.zip

i get the known error as shown in screen picture!
You do not have the required permissions to view the files attached to this post.

marsupilami
Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Postby marsupilami » 25.04.2018, 16:15

Hello Fr0st, John
Fr0sT wrote:Hmm, that function was made by me but IDK why compiler wants Ansistring as a result.

Shouldn't String and AnsiString be the same in FPC? So it might just be that FPC tells you it wants to return AnsiString because String is an alias for AnsiString?

@John:
Your compiler tries to compile the Zeos 7.2 ZComponent package but on the bottom of your image it tries to recompile ZCore from Zeos 7.3. Could you please try to uninstall previous Zeos versions from your Lazarus and maybe rename the Zeos 7.3 directory?

Best regards,

Jan

JohnML1
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 12.03.2015, 08:34

Re: Bug compiling Zcomponent Linux

Postby JohnML1 » 25.04.2018, 19:22

now its ok compiling for Linux :-)

I used zeosdbo-7.2.4-stable.zip AND a fresh lazarus.

My first try leads to the situation that lazarus uses old uninstalled(!!) ZeosLib units despite the different Version Number of the package!

Lazarus is rather "tricky" sometimes.

Conclusion: Zeosdbo 7.2.4 can be compiled for Linux (Manjaro, Arch-Linux)

Do i take version 7.2.4?

But the problem with trunk-version still exists?!!

changed to 7.2 stable, everything is ok now :-)

marsupilami
Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Postby marsupilami » 26.04.2018, 13:03

JohnML1 wrote:now its ok compiling for Linux :-)


JohnML1 wrote:Do i take version 7.2.4?

Yes, because it is the current stable version, where we do bugfixes only.

JohnML1 wrote:But the problem with trunk-version still exists?!!

Most probably yes. I will check that later on.

marsupilami
Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Postby marsupilami » 26.04.2018, 15:31

marsupilami wrote:
JohnML1 wrote:But the problem with trunk-version still exists?!!

Most probably yes. I will check that later on.

Soo - I checked that. On my Debian system using fpc 3.0.0 and Lazarus 1.6 things seem to work as expected. I am not 100% confident in the lazarus handling of packages though...

JohnML1
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 12.03.2015, 08:34

Re: Bug compiling Zcomponent Linux

Postby JohnML1 » 26.04.2018, 17:35

what i learned for lazarus:

start it with new configuration:

./lazarus --pcp=~/.lazarus2

... should(!) forget old installed packages this way?!!

marsupilami
Gold Boarder
Gold Boarder
Posts: 671
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Postby marsupilami » 27.04.2018, 07:49

Hello John,

Egonhugeist found an issue with the Zeos 7.3 code. So the problem should be solved now. A fix for Zeos 7.2 will follow. The issue was a slightly different declaration of the function in the interface section versus the implementation section.

Best regards,

Jan


Return to “Lazarus / Freepascal”

Who is online

Users browsing this forum: No registered users and 0 guests