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

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

Bug compiling Zcomponent Linux

Post by JohnML1 »

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
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Post by marsupilami »

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

Post by JohnML1 »

sorry, i used trunk

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

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

does gmail "eat" Email Notifications?!!
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Post by marsupilami »

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: 280
Joined: 08.05.2014, 12:08

Re: Bug compiling Zcomponent Linux

Post by Fr0sT »

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

Post by JohnML1 »

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
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Post by marsupilami »

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

Post by JohnML1 »

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
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Post by marsupilami »

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
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Post by marsupilami »

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

Post by JohnML1 »

what i learned for lazarus:

start it with new configuration:

./lazarus --pcp=~/.lazarus2

... should(!) forget old installed packages this way?!!
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Bug compiling Zcomponent Linux

Post by marsupilami »

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
Post Reply