[fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Sergei Gorelkin
Hello, While porting some Delphi code, I found the following two incomatibility issues. Should I report them as bugs? Sample 1: It compiles both in Delphi and FPC, but FPC executable fails at runtime. Delphi inserts temporary string variable and conversion (array of char - string), but FPC

Re: [fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Michael Van Canneyt
On Thu, 31 Aug 2006, Sergei Gorelkin wrote: Hello, While porting some Delphi code, I found the following two incomatibility issues. Should I report them as bugs? Sample 1: It compiles both in Delphi and FPC, but FPC executable fails at runtime. Delphi inserts temporary string variable and

Re: [fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Micha Nelissen
Sergei Gorelkin wrote: const TestData: array[0..7] of Char = 'abc'#10'def'#0; procedure Test1; var sl: TStringList; begin sl := TStringList.Create; sl.Text := string(@TestData[0]); // - fails here sl.Free; end; A typecast is a typecast. Simply remove the typecast, and it

Re[2]: [fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Sergei Gorelkin
Thursday, August 31, 2006, 12:35:33 PM, Michael wrote: MVC On Thu, 31 Aug 2006, Sergei Gorelkin wrote: Hello, While porting some Delphi code, I found the following two incomatibility issues. Should I report them as bugs? Sample 1: It compiles both in Delphi and FPC, but FPC executable

Re[2]: [fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Michael Van Canneyt
On Thu, 31 Aug 2006, Sergei Gorelkin wrote: Thursday, August 31, 2006, 12:35:33 PM, Michael wrote: MVC On Thu, 31 Aug 2006, Sergei Gorelkin wrote: Hello, While porting some Delphi code, I found the following two incomatibility issues. Should I report them as bugs? Sample 1: It compiles

Re[2]: [fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Daniël Mantione
Op Thu, 31 Aug 2006, schreef Sergei Gorelkin: What makes a difference is actually TStrings.SetTextStr implementation. Delphi accesses the argument as null-terminated string, so it works perfectly well even without conversion. FPC implementation treats argument as AnsiString, accesses its

Re: [fpc-devel] Found two Delphi incompatibilities

2006-08-31 Thread Micha Nelissen
Micha Nelissen wrote: Sample 2: This one compiles with Delphi (again, it inserts necessary conversion Wide - Ansi), but does not compile with FPC, neither in objfpc nor in Delphi mode. The (should be) conversion code seems to be missing. Never mind this one, I read SetLength instead of

Re: [fpc-devel] Making a debian package from FPC

2006-08-31 Thread ik
Thanks. I do have one problem when I try to compile it though: /bin/cp: cannot stat `fpcsrc/libgdb': No such file or directory I'm using Linux ubuntu 64bit ... I can't find any libgdb, so I guess it's a third party library ? Ido On 8/30/06, Daniël Mantione [EMAIL PROTECTED] wrote: Op Wed,

Re: [fpc-devel] Making a debian package from FPC

2006-08-31 Thread Daniël Mantione
Op Thu, 31 Aug 2006, schreef ik: Thanks. I do have one problem when I try to compile it though: /bin/cp: cannot stat `fpcsrc/libgdb': No such file or directory I'm using Linux ubuntu 64bit ... I can't find any libgdb, so I guess it's a third party library ? Download it from:

Re: [fpc-devel] Making a debian package from FPC

2006-08-31 Thread ik
Thanks again :) I compiled gdb from sources, and copied the libgdb.a to the fpcsrc and symlink it as libgdb and it worked. (Just to make it index for others to have that using search engines :)) Now another question is, can I cross compile to make an i386 deb packages as well ? Ido On

Re: [fpc-devel] Making a debian package from FPC

2006-08-31 Thread Daniël Mantione
Op Thu, 31 Aug 2006, schreef ik: Thanks again :) I compiled gdb from sources, and copied the libgdb.a to the fpcsrc and symlink it as libgdb and it worked. (Just to make it index for others to have that using search engines :)) Now another question is, can I cross compile to make an

[fpc-devel] resolve.pp in ver 2.0.4 (and a fix)

2006-08-31 Thread Pete Cervasio
Greetings. I had been using version 2.0.2 (under Linux, if it matters) and noticed a problem with the THostResolver component. It was giving incorrect (reversed) addresses for anything that had to come from DNS. Entries out of /etc/hosts would work fine, though. After fixing the problem

Re: [fpc-devel] fpc.spec for x86_64

2006-08-31 Thread C Western
[EMAIL PROTECTED] wrote: Quoting Michael Van Canneyt [EMAIL PROTECTED]: On Sun, 20 Aug 2006 [EMAIL PROTECTED] wrote: Can I suggest the attached patch for fpc.spec? Without it I have problems building on the 64 bit Fedora core 5; with it the i386 and x86_64 can be installed simultaneously