[fpc-pascal] Linux RecvMsg( ) Calls Missing

2014-06-15 Thread m...@rpzdesign.com
I was looking through the RTL and found that cfprecvmsg( ) socket calls into the C Run Time library were commented out. Also commented out cfpsendmsg( ) calls. While recvfrom( ) is available, it does not include the PTKINFO options necessary to determine a destination IP address on a multi

Re: [fpc-pascal] Linux RecvMsg( ) Calls Missing

2014-06-15 Thread m...@rpzdesign.com
? Thanks for any responses, marco On 6/15/2014 6:08 PM, m...@rpzdesign.com wrote: I was looking through the RTL and found that cfprecvmsg( ) socket calls into the C Run Time library were commented out. Also commented out cfpsendmsg( ) calls. While recvfrom( ) is available, it does not include

Re: [fpc-pascal] Linux RecvMsg( ) Calls Missing

2014-06-15 Thread m...@rpzdesign.com
See solution below: On 6/15/2014 6:08 PM, m...@rpzdesign.com wrote: I was looking through the RTL and found that cfprecvmsg( ) socket calls into the C Run Time library were commented out. Also commented out cfpsendmsg( ) calls. While recvfrom( ) is available, it does not include

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread m...@rpzdesign.com
, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, m...@rpzdesign.com wrote: Hello: Is a string[30] declaration under Linux thread safe? No. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread m...@rpzdesign.com
. Cheers, marco On 6/4/2014 1:16 PM, Michael Van Canneyt wrote: On Wed, 4 Jun 2014, m...@rpzdesign.com wrote: Hello: Is a string[30] declaration under Linux thread safe? No. Michael. ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread m...@rpzdesign.com
to implement the same thread code in C++ a little later, so there are no shortstrings in C++, just QStrings. (oops, yeah, I use Qt also) Cheers, Marco On 6/4/2014 2:13 PM, Saunders, Rich wrote: On 2014-06-04 13:22, m...@rpzdesign.com wrote: I guess what I was really asking is: Is there a way

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread m...@rpzdesign.com
I thought I had publicly declared what I wanted to do. Here is the example code again for ease of reference: Type Class TTest(TObject) public nflag : integer ; sflag : string[30] end; Gui Thread gtest := TTest.Create ; Thread #1 - Constantly changing values while true do begin

[fpc-pascal] How to contribute code to Free Pascal

2014-06-04 Thread m...@rpzdesign.com
Hello: I would like to contribute code to the Free pascal community. Specifically, it is a CodeBlocks C++ project to compile using MinGW C++ compiler to create a static libraries from www.polarssl.org SSL C-code for usage by Lazarus/Freepascal on Windows. It is a little tricky to get all the C

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread m...@rpzdesign.com
Mattias: Just wanted to say Thank you for all of your contributions to this project. md On 4/24/2014 3:42 AM, Mattias Gaertner wrote: On Wed, 23 Apr 2014 17:42:13 -0400 m...@rpzdesign.com m...@rpzdesign.com wrote: When trying to install lazarus 1.2.2 on Linux Fedora 14: fpc-2.6.4-1

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-23 Thread m...@rpzdesign.com
When trying to install lazarus 1.2.2 on Linux Fedora 14: fpc-2.6.4-1.x86_64.rpm does not install. Shows error: lazarus-1.2.0-0.x86_64 requires fpc = 2.6.2-130317 I think the dependency tree inside the fpc and fpc-src rpms are crossed. They somehow need fpc 2.6.2? Cheers, md On 4/23/2014

Re: [fpc-pascal] lazarus not reachable

2014-04-07 Thread m...@rpzdesign.com
On 4/7/2014 3:44 AM, Lukasz Sokol wrote: On 07/04/14 04:17, m...@rpzdesign.com wrote: On 4/6/2014 10:54 PM, Ralf Quint wrote: On 4/6/2014 7:52 PM, m...@rpzdesign.com wrote: Well, I cannot subscribe to the lazarus mailing list and I can not enter the forums at forums.lazarus.freepascal.org

[fpc-pascal] Lazarus List

2014-04-06 Thread m...@rpzdesign.com
Hello Anybody: I am on the Freepascal list, but I cannot subscribe to the lazarus list: *lists*.*lazarus*.freepascal.org/? since I cannot get to http://www.lazarus.freepascal.org I can of course reach http://freepascal.org. Can one of the lazarus list managers contact via email directly for

[fpc-pascal] lazarus not reachable

2014-04-06 Thread m...@rpzdesign.com
Help: Would somebody from the USA and someone from Europe please run a tracert on their connection to: lazarus.freepascal.org. I am not able to reach anything lazarus but I can get freepascal. I want to ask a question in the lazarus list and surf the lazarus forums but I cannot. Thanks,

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread m...@rpzdesign.com
*** Request timed out. 19 ** 80.120.208.116 reports: Destination host unreachable. On 4/6/2014 1:37 PM, m...@rpzdesign.com wrote: Help: Would somebody from the USA and someone from Europe please run a tracert on their connection to: lazarus.freepascal.org. I am not able

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread m...@rpzdesign.com
Martin: Can you translate what lower MPU means? md From london / I can open the page in a browser. Can you try, if you can access it with a lower MPU ? IIRC a very long time ago, some of the servers or ronnections had an issue / No idea if that is still an issue at all

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread m...@rpzdesign.com
, waldo kitty wrote: On 4/6/2014 5:40 PM, m...@rpzdesign.com wrote: Jim: Are you able to web surf to the lazarus.freepascal.org web site? yes, i can and i do not normally visit that site... FWIW: icmp may not be being allowed by the destination site or the router saying that the destination

Re: [fpc-pascal] lazarus not reachable

2014-04-06 Thread m...@rpzdesign.com
, m...@rpzdesign.com wrote: Well, I cannot subscribe to the lazarus mailing list and I can not enter the forums at forums.lazarus.freepascal.org or www.lazarus.freepascal.org because I can not make an http connection to either. Just keep timing out. FYI for list managers... Well, you have

[fpc-pascal] fppoll/epoll examples/documentation

2014-03-22 Thread m...@rpzdesign.com
This may seem crazy, but I cannot find any documentation or examples on fppoll( ) and the events member of TFdPoll structure. ALso, there is a epoll demo at forum.lazarus.*freepascal*.org But I cannot ever reach that site from USA. Anybody know about more documentation on fppoll( ) or epoll(

Re: [fpc-pascal] fppoll/epoll examples/documentation

2014-03-22 Thread m...@rpzdesign.com
Oops, I will just use man pages from linux, that should get me the info I need. I do not need pascal specific examples. md On 3/22/2014 8:43 PM, m...@rpzdesign.com wrote: This may seem crazy, but I cannot find any documentation or examples on fppoll( ) and the events member of TFdPoll

[fpc-pascal] Lazarus better than delphi

2014-03-20 Thread m...@rpzdesign.com
I have been using Delphi 7 forever. I evaluated Delphi xe5 Update 2. Today, I use Lazarus 1.2 and FPC 2.6.2. Lazarus/FPC is just better than Delphi. All development on Mac/Windows is now with Lazarus. You FPC/Lazarus guys ROCK. Best wishes for 2014. md

Re: [fpc-pascal] Linking object file

2014-03-19 Thread m...@rpzdesign.com
Darius: I just went through this and it is fresh in my mind, but with 32 bit code. I used CodeBlocks with MingGW to compile the c source code to a static library with an mylib.A suffix. I am pretty sure you cannot use MSVC to compile the c code. Then use the {$LINKLIB path/mylib.a}

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-11 Thread m...@rpzdesign.com
You FPC/lazarus guys ROCK. md On 3/10/2014 10:12 PM, Mattias Gaertner wrote: On Mon, 10 Mar 2014 20:18:38 -0400 m...@rpzdesign.com m...@rpzdesign.com wrote: Jonas: Where in Lazarus 1.0.14 do I put in the compiler command line option? -WM10.9 Project Options-Compiler Options-Compilation

Re: [fpc-pascal] $LINKLIB MSVCRT on windows

2014-03-11 Thread m...@rpzdesign.com
On Mon, Mar 10, 2014 at 3:21 PM, Ralf Quint freedos...@gmail.com mailto:freedos...@gmail.com wrote: On 3/10/2014 7:23 AM, m...@rpzdesign.com mailto:m...@rpzdesign.com wrote: Ludo: I wish the forum.lazarus.freepascal.org http://forum.lazarus.freepascal.org

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-10 Thread m...@rpzdesign.com
. I was wondering, though, whether there was any enhanced support for features on the Intel 'Sandy-Bridge' and 'Ivy-Bridge' processors - the i5 chips. On 10 March 2014 05:32, m...@rpzdesign.com m...@rpzdesign.com wrote: Now that OSX Mavericks 10.9 is running full speed, it has broken

Re: [fpc-pascal] $LINKLIB MSVCRT on windows

2014-03-10 Thread m...@rpzdesign.com
has an internet connection problem. Funny, last night, I could look at the site for the first time in days, but this morning, it is not available. Maybe it suffers denial of service attacks? Thanks, md On 3/10/2014 3:15 AM, Ludo Brands wrote: On 03/09/2014 08:36 PM, m...@rpzdesign.com

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-10 Thread m...@rpzdesign.com
/2014 3:18 AM, Jonas Maebe wrote: On 10 Mar 2014, at 05:15, m...@rpzdesign.com wrote: After diving deeply into the dependency tree, there are 2 libraries that are involved in this particular problem: /usr/lib/libSystem.B.dylib /usr/lib/libgcc_s.1.dylib But I cannot figure out yet how to call up

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-10 Thread m...@rpzdesign.com
gcc instead? If I wanted to do this, I'd just replace c with a link to gcc. On 10 March 2014 16:14, m...@rpzdesign.com m...@rpzdesign.com wrote: Peter: I was surprised too. That is why I broadcast the alarm to the FPC community. I am running FPC 2.6.2 - Lazarus 1.0.14 Yes, I can recompile

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-10 Thread m...@rpzdesign.com
? But if I use -WM10.6, then this means that I am targeting for Snow Leopard 10.6 and above? Thank you for breaking this down today. Cheers, md On 3/10/2014 3:46 PM, Jonas Maebe wrote: On 10 Mar 2014, at 19:07, m...@rpzdesign.com wrote: Unfortunately, your suggestion while appreciated does

[fpc-pascal] $LINKLIB MSVCRT on windows/osx

2014-03-09 Thread m...@rpzdesign.com
Hey: Has anybody got a clue how to statically link the windows c run time with lazarus/freepascal on Windows 7/8 x32 or x64? Looking at gdbint.pp, there are all sorts of references to {$LINKLIB libmsvcrt.a} But there is only libmsvcrt.a when I install MingW 4.8.1 compiler Since

Re: [fpc-pascal] $LINKLIB MSVCRT on windows/osx

2014-03-09 Thread m...@rpzdesign.com
Oops: That was a typo error. First I need to link to c run time on Windows. Then I need to link to c run time on OSX. Cheers, marco On 3/9/2014 1:42 PM, m...@rpzdesign.com wrote: Hey: Has anybody got a clue how to statically link the windows c run time with lazarus/freepascal on Windows 7

Re: [fpc-pascal] $LINKLIB MSVCRT on windows/osx

2014-03-09 Thread m...@rpzdesign.com
solved on OSX. Thanks for any advice you may have, Cheers, md On 3/9/2014 1:53 PM, Marco van de Voort wrote: In our previous episode, m...@rpzdesign.com said: Has anybody got a clue how to statically link the windows c run time with lazarus/freepascal on Windows 7/8 x32 or x64? No idea

Re: [fpc-pascal] $LINKLIB MSVCRT on windows/osx

2014-03-09 Thread m...@rpzdesign.com
Kenobi, your my only hope. md On 3/9/2014 2:52 PM, Marco van de Voort wrote: In our previous episode, m...@rpzdesign.com said: Thanks for your response. I am trying to use {$LINKLIB ceecodelib.a} . But this compiled c code makes references to Windows C Runtime calls like _memcpy, etc

[fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-09 Thread m...@rpzdesign.com
Now that OSX Mavericks 10.9 is running full speed, it has broken the {$LINKLIB gcc} compiler directive. {$LINKLIB c} still WORKS. But {$LINKLIB gcc} does not. The reason is that Mavericks does not use GCC any more, it is using clang, a new compiler. So now Freepascal users need to know how to

Re: [fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

2014-03-09 Thread m...@rpzdesign.com
continues md On 3/9/2014 11:32 PM, m...@rpzdesign.com wrote: Now that OSX Mavericks 10.9 is running full speed, it has broken the {$LINKLIB gcc} compiler directive. {$LINKLIB c} still WORKS. But {$LINKLIB gcc} does not. The reason is that Mavericks does not use GCC any more, it is using

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread m...@rpzdesign.com
But how do you enable the anchor docking extension for Lazarus 1.0.12 and get some control of all the floating panels. I personally would want all the panels to come to the front when I click on any panel instead of having to click a couple of times to bring console or messages panel to the

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread m...@rpzdesign.com
Sven: You ROCK! md On 9/30/2013 11:19 AM, Sven Barth wrote: Am 30.09.2013 15:57, schrieb m...@rpzdesign.com: But how do you enable the anchor docking extension for Lazarus 1.0.12 and get some control of all the floating panels. Install AnchorDockingDsgn package, rebuild Lazarus and now

Re: [fpc-pascal] how to speed up lazarus compilation and debugging

2013-09-30 Thread m...@rpzdesign.com
Here is a suggestion that might help your compile times. If you want superfast increases in compiling under linux/freepascal/lazarus, switch your development computer to a super fast CPU and especially an SSD solid state disk drive. Make sure you have no spinning disks/media in your

Re: [fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-11 Thread m...@rpzdesign.com
, and Android NDK targets! Cheers, md je...@j-software.dk Could you maybe describe this weird, erratic behavior? On 6/11/2013 12:58 AM, Marco van de Voort wrote: In our previous episode, m...@rpzdesign.com said: Passing a Pchar gives weird, erratic behavior Please make minimal examples in a few

Re: [fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-11 Thread m...@rpzdesign.com
Oops, those parameters for Posex were backwards: res := PosEx('NEEDLE',mypchar,35) ; On 6/11/2013 7:10 AM, m...@rpzdesign.com wrote: To Marco and Jeppe: As for 2 examples: res := PosEx(mypchar,'NEEDLE',35) ; res := Copy (mypchar, 10,15) ; What are the byte boundaries here? Zero Based from

[fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-10 Thread m...@rpzdesign.com
Under Linux using Lazarus 1.0.8/Fpc 2.6.2/Fedora 14 x64: it seems like mixing Ansistrings and Pchars on certain run time functions is a real no-no. I just spent HOURs, trying to see why I was not getting good program behavior. Lesson #1: Never call function like Copy( pchar, start,

Re: [fpc-pascal] FPC to create PHP extensions for Linux

2013-06-02 Thread m...@rpzdesign.com
/2013 6:45 PM, m...@rpzdesign.com wrote: Anybody have an opinion about writing dynamic extensions for PHP in free pascal? The samples and discussion at: http://community.freepascal.org/bboards/message?message_id=342130forum_id=24082 Indicates PHPToolkit, but all of the definitions inside

Re: [fpc-pascal] FPC to create PHP extensions for Linux - GOTCHA

2013-06-02 Thread m...@rpzdesign.com
independent code or the linker inside Lazarus/freepascal goes bonkers. Just an FYI for anybody who comes across this post in history. md On 6/2/2013 7:04 AM, m...@rpzdesign.com wrote: Ok: After a night of dwelling on the problem, the easiest solution is to create your linux dynamic libraries

[fpc-pascal] FPC to create PHP extensions for Linux

2013-06-01 Thread m...@rpzdesign.com
Anybody have an opinion about writing dynamic extensions for PHP in free pascal? The samples and discussion at: http://community.freepascal.org/bboards/message?message_id=342130forum_id=24082 Indicates PHPToolkit, but all of the definitions inside these file are way out of date. My current

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread m...@rpzdesign.com
wrote: m...@rpzdesign.com m...@rpzdesign.com hat am 22. Mai 2013 um 17:18 geschrieben: Anybody successful putting Freepascal 2.6.2 / Lazarus 1.0.8 on Fedora 18. I built successfully the 64bit rpms on a FC 18 64bit and had no such problems. Mattias

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread m...@rpzdesign.com
Oops, Looks like there is an internal list coded identifier that links the thread of emails together. The moral of the story is to create a completely new email to start another discussion thread and stay away from Reply button for convenience. Sorry about the hijacking, it was not

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread m...@rpzdesign.com
Are you saying that you are writing JNI routines in Pascal for android? If so, can you post some of the things like the pascal header files you use to allow for the creation of the .so files so that Java can call into pascal across the JNI interface. I have 2 projects that I need Pascal

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread m...@rpzdesign.com
You sir, Are a good man. Thx for the link. Watch out when the Intel mobile processors come along, I doubt they will be ARM 7 compatible. But they may be x86! md On 5/22/2013 7:29 AM, Felipe Monteiro de Carvalho wrote: Hello, On Wed, May 22, 2013 at 1:50 PM, m...@rpzdesign.com m

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread m...@rpzdesign.com
, m...@rpzdesign.com m...@rpzdesign.com wrote: Are you saying that you are writing JNI routines in Pascal for android? Yes. And luckly it works in all devices =) I was a bit scared that I might hit a wierd problem here involving code generation or whatever, but ... just a normal typo in my program

[fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-22 Thread m...@rpzdesign.com
Anybody successful putting Freepascal 2.6.2 / Lazarus 1.0.8 on Fedora 18. It seems like Fedora 18 has symbolic links which point /bin and /sbin to /usr/bin and /usr/sbin respectively. /bin - /usr/bin /sbin - /usr/sbin Then the compiler chokes an error about You must have an old compiler

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-22 Thread m...@rpzdesign.com
Which package did you download? (Source package or other?) md On 5/22/2013 10:41 AM, Bart wrote: I installed fpc 2.6.2 from the installscript (not from rpm) in /usr/local. This works well. Bart ___ fpc-pascal maillist -

Re: [fpc-pascal] CoreFoundation Freepascal MAC OSX

2013-05-05 Thread m...@rpzdesign.com
cfset.pas. Any comment Cheers, md On 5/4/2013 10:20 PM, m...@rpzdesign.com wrote: Anybody have any success with the included units for CoreFoundation on Mac OSX. I was trying to use CFSetGetCount( ) function call, it is clearly defined in CFSet.pas and yet the linker error is: Identifier

Re: [fpc-pascal] CoreFoundation Freepascal MAC OSX

2013-05-05 Thread m...@rpzdesign.com
AM, m...@rpzdesign.com wrote: I thought of a trick to get around this. Using XCode, I can build a static library to get me access to the functions that I need. But that is not really the point, I would like my freepascal environment to be correct and to be able to use the functions contained

[fpc-pascal] MacOSX Console Output

2013-05-05 Thread m...@rpzdesign.com
Inside Lazarus 1.08/FPC 2.6.2, I cannot find where the console output is sent while on Mac OSX Lion. There is a debugger output window, but there does not seem to be a console output window while debugging a program. Where does writeln( ) output go? If I run the program from the terminal,

Re: [fpc-pascal] MacOSX Console Output

2013-05-05 Thread m...@rpzdesign.com
for MariaDB (mysql) in Freepascal. Thank you for all! md On 5/5/2013 3:52 PM, Martin wrote: On 05/05/2013 22:45, m...@rpzdesign.com wrote: Inside Lazarus 1.08/FPC 2.6.2, I cannot find where the console output is sent while on Mac OSX Lion. There is a debugger output window, but there does

[fpc-pascal] CoreFoundation Freepascal MAC OSX

2013-05-04 Thread m...@rpzdesign.com
Anybody have any success with the included units for CoreFoundation on Mac OSX. I was trying to use CFSetGetCount( ) function call, it is clearly defined in CFSet.pas and yet the linker error is: Identifier Not Found CFSetGetCount But magically, the constants from CFBase.pas compile OK, so

[fpc-pascal] $LINKLIB or $LINK in Lazarus/FPC on Mac OSX

2013-05-03 Thread m...@rpzdesign.com
Hello: I am new to the list, I have posted on the forum, but I don't really know where the center of gravity is for this FPC/Lazarus Community, so I will post on the mailing lists as well. And then I do not know if the Mac List is well subscribed or just the general fpc-pascal list is better