Re: [fpc-devel] Trunk does not compile on Linux x86-64

2011-10-21 Thread LacaK

Are there available Lazarus snapshots, which are build using current trunk ?
If I download Lazarus with FPC 2.7.1 ( for example: 
ftp://www.hu.freepascal.org/pub/lazarus/snapshots/Lazarus-0.9.31-33000-fpc-2.7.1-20111021-win32.exe 
)
it seems, that there are not current source files from trunk, but from 
begining of September ?

Thanks
-Laco.

2011/10/21 David Welch dwe...@dwelch.com:
  

is there an svn release number that does compile with 2.4.0 that will get me
to 2.4.4 or better so that I can compile the trunk?




Guaranteed:
Compile http://svn.freepascal.org/svn/fpc/tags/release_2_4_2/ with fpc
2.4.0 to get fpc 2.4.2
Compile http://svn.freepascal.org/svn/fpc/tags/release_2_4_4/ with fpc
2.4.2 to get fpc 2.4.4
Compile http://svn.freepascal.org/svn/fpc/trunk with fpc 2.4.4 to get fpc 2.7.1

IIRC, you have a good chance to the first steps in one go:
Compile http://svn.freepascal.org/svn/fpc/tags/release_2_4_4/ with fpc
2.4.0 to get fpc 2.4.4

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

  


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Trunk does not compile on Linux x86-64

2011-10-21 Thread Jonas Maebe

On 21 Oct 2011, at 07:54, Vincent Snijders wrote:

 Guaranteed:
 Compile http://svn.freepascal.org/svn/fpc/tags/release_2_4_2/ with fpc
 2.4.0 to get fpc 2.4.2
 Compile http://svn.freepascal.org/svn/fpc/tags/release_2_4_4/ with fpc
 2.4.2 to get fpc 2.4.4
 Compile http://svn.freepascal.org/svn/fpc/trunk with fpc 2.4.4 to get fpc 
 2.7.1

The last step is currently broken on 64 bit platforms because of r19516


Jonas

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Trunk does not compile on Linux x86-64

2011-10-21 Thread Vincent Snijders
2011/10/21 LacaK la...@zoznam.sk:
 Are there available Lazarus snapshots, which are build using current trunk ?
 If I download Lazarus with FPC 2.7.1 ( for example:
 ftp://www.hu.freepascal.org/pub/lazarus/snapshots/Lazarus-0.9.31-33000-fpc-2.7.1-20111021-win32.exe
 )
  it seems, that there are not current source files from trunk, but from
 begining of September ?
 Thanks

Should be fixed in a couple of hours.

The working copy got locked and svn cleanup in the fpcbuild directory
(executed as part of the build script) didn't unlock the fpcsrc
directory, which is an svn:external.

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] cvarutil: convert variant array of bytes into ansistring ?

2011-10-21 Thread LacaK

Hi,
I am now working on fcl-db TBinaryField, which has Value: Variant property.
As I understand documentation, this variant should be returned as 
variant array of bytes.


Later when are assigning values of fields into params also this variant 
array is copied (into TParam).


But when I want/need read parameter value as string (binary string) then 
variant convert error occurs.
It is because in cvarutil.inc in Function VariantToAnsiString(const 
VargSrc : TVarData) is not supported conversion from variant array into 
string.


So my question is if it is acceptable to add there support for 
converting byte array to string ?

Something like attached diff.

Please let me know, if this can be accepted/applied ?
Thanks
-Laco.
--- cvarutil.inc.oriThu Apr 07 06:10:54 2011
+++ cvarutil.incFri Oct 21 11:04:44 2011
@@ -1415,7 +1415,12 @@ begin
   end else { pointer is nil }
 VariantTypeMismatch(vType, varString);
 else { array or something like that }
-  VariantTypeMismatch(vType, varString);
+  if (vType and varArray = varArray) and Assigned(vArray) then begin
+SetLength(Result, vArray^.Bounds[0].ElementCount * 
vArray^.ElementSize);
+Move(vArray^.Data^, Result[1], length(Result)*sizeof(AnsiChar));
+  end
+  else
+VariantTypeMismatch(vType, varString);
 end;
 
   {$IFDEF DEBUG_VARUTILS} if __DEBUG_VARUTILS then begin
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Trunk build broken @ mysqlconn.inc

2011-10-21 Thread Andrew Brunner
Can't build ./trunk/FPC with starting compiler 2.4.4+

SNIP
mysql40conn.pas
mysqlconn.inc(700,37) Error: Incompatible types: got pculong
expected PLongWord

Please fix :-)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel