Bug compiling Zcomponent Linux
Moderators: gto, cipto_kh, EgonHugeist
Bug compiling Zcomponent Linux
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!
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!
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Bug compiling Zcomponent Linux
Hello John,
which branch of Zeos do you use? Zeos 7.2 or Zeos 7.3 or Zeos trunk?
Best regards,
Jan
which branch of Zeos do you use? Zeos 7.2 or Zeos 7.3 or Zeos trunk?
Best regards,
Jan
Re: Bug compiling Zcomponent Linux
sorry, i used trunk
RapidSVN tells me: svn://svn.code.sf.net/p/zeoslib/code-0/trunk
***************************
does gmail "eat" Email Notifications?!!
RapidSVN tells me: svn://svn.code.sf.net/p/zeoslib/code-0/trunk
***************************
does gmail "eat" Email Notifications?!!
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Bug compiling Zcomponent Linux
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:sorry, i used trunk
RapidSVN tells me: svn://svn.code.sf.net/p/zeoslib/code-0/trunk
The Forums cannot send e-mails because of some changes in Sourceforge.JohnML1 wrote:does gmail "eat" Email Notifications?!!
Re: Bug compiling Zcomponent Linux
Hmm, that function was made by me but IDK why compiler wants Ansistring as a result.
Re: Bug compiling Zcomponent Linux
even if i try
zeosdbo-7.2.4-stable.zip
i get the known error as shown in screen picture!
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.
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Bug compiling Zcomponent Linux
Hello Fr0st, John
@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
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?Fr0sT wrote:Hmm, that function was made by me but IDK why compiler wants Ansistring as a result.
@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
Re: Bug compiling Zcomponent Linux
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 :-)
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 :-)
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Bug compiling Zcomponent Linux
JohnML1 wrote:now its ok compiling for Linux :-)
Yes, because it is the current stable version, where we do bugfixes only.JohnML1 wrote:Do i take version 7.2.4?
Most probably yes. I will check that later on.JohnML1 wrote:But the problem with trunk-version still exists?!!
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Bug compiling Zcomponent Linux
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...marsupilami wrote:Most probably yes. I will check that later on.JohnML1 wrote:But the problem with trunk-version still exists?!!
Re: Bug compiling Zcomponent Linux
what i learned for lazarus:
start it with new configuration:
./lazarus --pcp=~/.lazarus2
... should(!) forget old installed packages this way?!!
start it with new configuration:
./lazarus --pcp=~/.lazarus2
... should(!) forget old installed packages this way?!!
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Bug compiling Zcomponent Linux
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
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