[Lazarus] checksums for downloads
Hi, since I have managed to destroy my fpc and/or lazarus installation and have to install fresh ones, i wondered: Are there chechsums available anywhere for the needed downloads - fpc, fpc sources, lazarus? I would feel mauch better, if so. Thanks in advance, Marc -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] checksums for downloads
On 19/07/2015 12:56, Marc Santhoff wrote: Hi, since I have managed to destroy my fpc and/or lazarus installation and have to install fresh ones, i wondered: Are there chechsums available anywhere for the needed downloads - fpc, fpc sources, lazarus? I would feel mauch better, if so. I am not aware of them being separately published (except for the ones on sourceforge, which are calculated by sourceforge). As for the win installers, here are the checksums from the original installers (the local copies I kept after the build). MD5 SHA-1 -fc90c4a3f0e34fecec9026be5b7a96bf 610f535bfd3c6ea1addcdf019d21fc2c14edadb1 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-x86_64-win64-win32.exe f177f00cbb16a87f044efc8cd7c90789 77b0a6914a9b4b5416b4cb4d14e867cbfa89c635 1.4.2\lazarus-1.4.2-fpc-2.6.4-win32.exe 28d8cd24dfb443ca48f8abec84d251a0 3b2a389fc5746ce7ea2d59125bd02b707528ba9e 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-arm-wince-win32.exe fd1f7ddc01762a9c86b742c607b33319 34e89dd020e302414f1aa546b4318d104fee3ed1 1.4.2\w64\lazarus-1.4.2-fpc-2.6.4-cross-i386-win32-win64.exe b4d4b91854915e6ca0a5772f2a27013b 88b537a1ef50ae321c0323adc627cdf600e6e43f 1.4.2\w64\lazarus-1.4.2-fpc-2.6.4-win64.exe Sourceforrge is (as of today) still showing the same checksums (so it seems their recent downtime, has not led to modifications). Though of course that is, if the checksums shown today by sourceforge actually matches the files online today. I have not downloaded todays files to check if they indeed have the checksum that SF claims. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] checksums for downloads
On 19/07/2015 14:18, Martin Frb wrote: On 19/07/2015 12:56, Marc Santhoff wrote: Hi, since I have managed to destroy my fpc and/or lazarus installation and have to install fresh ones, i wondered: Are there chechsums available anywhere for the needed downloads - fpc, fpc sources, lazarus? I would feel mauch better, if so. I am not aware of them being separately published (except for the ones on sourceforge, which are calculated by sourceforge). As for the win installers, here are the checksums from the original installers (the local copies I kept after the build). MD5 SHA-1 -fc90c4a3f0e34fecec9026be5b7a96bf 610f535bfd3c6ea1addcdf019d21fc2c14edadb1 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-x86_64- Trust your mail program to mess up the text MD5 SHA-1 - fc90c4a3f0e34fecec9026be5b7a96bf 610f535bfd3c6ea1addcdf019d21fc2c14edadb1 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-x86_64-win64-win32.exe f177f00cbb16a87f044efc8cd7c90789 77b0a6914a9b4b5416b4cb4d14e867cbfa89c635 1.4.2\lazarus-1.4.2-fpc-2.6.4-win32.exe 28d8cd24dfb443ca48f8abec84d251a0 3b2a389fc5746ce7ea2d59125bd02b707528ba9e 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-arm-wince-win32.exe fd1f7ddc01762a9c86b742c607b33319 34e89dd020e302414f1aa546b4318d104fee3ed1 1.4.2\w64\lazarus-1.4.2-fpc-2.6.4-cross-i386-win32-win64.exe b4d4b91854915e6ca0a5772f2a27013b 88b537a1ef50ae321c0323adc627cdf600e6e43f 1.4.2\w64\lazarus-1.4.2-fpc-2.6.4-win64.exe -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] checksums for downloads
On So, 2015-07-19 at 14:18 +0100, Martin Frb wrote: On 19/07/2015 12:56, Marc Santhoff wrote: Hi, since I have managed to destroy my fpc and/or lazarus installation and have to install fresh ones, i wondered: Are there chechsums available anywhere for the needed downloads - fpc, fpc sources, lazarus? I would feel mauch better, if so. I am not aware of them being separately published (except for the ones on sourceforge, which are calculated by sourceforge). I think it may be only little effort to publish those sums on the website or put a file mdsums.txt aside wioth the downloads. As for the win installers, here are the checksums from the original installers (the local copies I kept after the build). Many thanks, but I'm using FreeBSD (8 and 9). MD5 SHA-1 -fc90c4a3f0e34fecec9026be5b7a96bf 610f535bfd3c6ea1addcdf019d21fc2c14edadb1 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-x86_64-win64-win32.exe f177f00cbb16a87f044efc8cd7c90789 77b0a6914a9b4b5416b4cb4d14e867cbfa89c635 1.4.2\lazarus-1.4.2-fpc-2.6.4-win32.exe 28d8cd24dfb443ca48f8abec84d251a0 3b2a389fc5746ce7ea2d59125bd02b707528ba9e 1.4.2\lazarus-1.4.2-fpc-2.6.4-cross-arm-wince-win32.exe fd1f7ddc01762a9c86b742c607b33319 34e89dd020e302414f1aa546b4318d104fee3ed1 1.4.2\w64\lazarus-1.4.2-fpc-2.6.4-cross-i386-win32-win64.exe b4d4b91854915e6ca0a5772f2a27013b 88b537a1ef50ae321c0323adc627cdf600e6e43f 1.4.2\w64\lazarus-1.4.2-fpc-2.6.4-win64.exe Your're right, the text is a bit messy but usable. Sourceforrge is (as of today) still showing the same checksums (so it seems their recent downtime, has not led to modifications). Though of course that is, if the checksums shown today by sourceforge actually matches the files online today. I have not downloaded todays files to check if they indeed have the checksum that SF claims. How do you manage to see checksums on Sourceforge? That would be a start. -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Using semaphores to limit thread access
|Hi guys A number of threads need to access an object, but no more than three threads must access simultaneously. Thats a job for a semaphore someone said.|||I understand|that under Delphi and Windows something like this could be used: FSemaphoreHandle:= CreateSemaphore(nil, 3, 3, nil); ||WaitForSingleObject(FSemaphoreHandle, timeout);| How to do that under Lazarus and Linux? I have found TThreadManager with its SemaphoreInit and SemaphoreWait etc. But how to use it, especially how do you specify the number of threads that can access the object? Using 32 bit Lazarus trunk and FPC trunk. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
On Mo, 2015-07-20 at 00:08 +0100, Graeme Geldenhuys wrote: On 2015-07-19 18:16, Marc Santhoff wrote: gdb --version GNU gdb 6.1.1 [FreeBSD] I forgot to mention in my previous reply, when you install a later GDB via ports, they use a different executable name so you can have multiple versions installed. /usr/bin/gdb -- v6.6 /usr/local/bin/gdb781-- v7.8.1 Seems to be the case, the newer gdb from ports is installed, I only need to tell lazarus. Will do, will test, but not today. -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
On So, 2015-07-19 at 23:40 +0100, Martin Frb wrote: On 19/07/2015 18:16, Marc Santhoff wrote: Hi, still in the reconstruction process: Which version of gdb is requiered at least for us with lazarus on freebsd with fpc 2.6.4? I'm using nthe systems gdb which does not seem to suffice: gdb --version GNU gdb 6.1.1 [FreeBSD] Lazarus is from today, 1.4.2. It might not just be the version number. The lowest version regularly tested is or was till recently 6.3.5 (the apple mac edition). But it is well possible that even older versions still work. IIRC the problem on freebsd is that some commands returns different values. Instead of PID you get a Lightweight thread id, or something, and it has a diff abbreviation. I remember 1 or 2 years back some reports and some changes. But I have not tested since. (And I do not know, if those changes apply only to certain version of the freebsd gdb.) Lets start with a log, on whatever gdb you currently have http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session If the newer gdb doesn't run, I will. Since i really shot down my installation I cannot tell which gdb has been used lastly, but lazarus was version 1.2.0 and that combination worked - well somehow at least. Debugging a programm killed some config files, some of my sources and maybe the compiler itself, cannot tell because in the end the machine freezed and shortly rebooted on CTRL-F9. The problem worked at was some confusion in the contruction chain, so I had to stop several times even before a window showed up on the screen. I kept the defect fpc and lazarus dirs, but not the hosed configuration, it is repaired now. Lazarus stumbled across some zero length files, but it should not reboot the computer. I think the damaged file system killed the compiler or the like. -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
On 2015-07-19 18:16, Marc Santhoff wrote: gdb --version GNU gdb 6.1.1 [FreeBSD] Yeah, don't use that one. FreeBSD includes that one by default because of licensing issues with newer versions. Use ports and install a later GDB (/usr/ports/devel/gdb). I have gdb 7.8.1 installed here on FreeBSD 10.1 and it works perfectly with FPC 2.6.4. I see GDB 7.9.1 is available in ports too, but I don't want to fix what isn't broken. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
On 20/07/2015 00:44, Marc Santhoff wrote: Since i really shot down my installation I cannot tell which gdb has been used lastly, but lazarus was version 1.2.0 and that combination worked - well somehow at least. Well there were some changes in the startup of the debug session You can try (in the option / property grid) to set InternalStartBreak to a diff value: gdsbMain or gdsbEntry my be good. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
On 19/07/2015 18:16, Marc Santhoff wrote: Hi, still in the reconstruction process: Which version of gdb is requiered at least for us with lazarus on freebsd with fpc 2.6.4? I'm using nthe systems gdb which does not seem to suffice: gdb --version GNU gdb 6.1.1 [FreeBSD] Lazarus is from today, 1.4.2. It might not just be the version number. The lowest version regularly tested is or was till recently 6.3.5 (the apple mac edition). But it is well possible that even older versions still work. IIRC the problem on freebsd is that some commands returns different values. Instead of PID you get a Lightweight thread id, or something, and it has a diff abbreviation. I remember 1 or 2 years back some reports and some changes. But I have not tested since. (And I do not know, if those changes apply only to certain version of the freebsd gdb.) Lets start with a log, on whatever gdb you currently have http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
On 2015-07-19 18:16, Marc Santhoff wrote: gdb --version GNU gdb 6.1.1 [FreeBSD] I forgot to mention in my previous reply, when you install a later GDB via ports, they use a different executable name so you can have multiple versions installed. /usr/bin/gdb -- v6.6 /usr/local/bin/gdb781-- v7.8.1 Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] gdb version for use with lazarus
Hi, still in the reconstruction process: Which version of gdb is requiered at least for us with lazarus on freebsd with fpc 2.6.4? I'm using nthe systems gdb which does not seem to suffice: gdb --version GNU gdb 6.1.1 [FreeBSD] Lazarus is from today, 1.4.2. TIA, Marc -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] checksums for downloads
On So, 2015-07-19 at 12:08 -0400, waldo kitty wrote: On 07/19/2015 09:29 AM, Marc Santhoff wrote: On So, 2015-07-19 at 14:18 +0100, Martin Frb wrote: I am not aware of them being separately published (except for the ones on sourceforge, which are calculated by sourceforge). I think it may be only little effort to publish those sums on the website or put a file mdsums.txt aside wioth the downloads. ideally there would be one md5sum file for each individual file available for download... this way, one can check the remote checksum file with a local one to see if the file has been updated since the checksums would be different... we use this for automated update mechanisms... Indeed, you're right. And then it would even better to have the archives signed with a gpg key of the developer(s) tracable to the root cert. But I wanted to keep things simple, not demanding too much. ;) -- Marc Santhoff m.santh...@web.de -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] gdb version for use with lazarus
GNU gdb 6.1.1 [FreeBSD] Wow! That's about 11 years ago :o I don't know what's the lower bound, but 7.1-7.2 is found to be working. I'm on a rolling release distro which always provides latest GDB (7.9.1 atm) and it works quite fine (well, there are hiccups here and there, but only in certain corner cases). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-gdb-version-for-use-with-lazarus-tp4043248p4043249.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] checksums for downloads
On 07/19/2015 09:29 AM, Marc Santhoff wrote: On So, 2015-07-19 at 14:18 +0100, Martin Frb wrote: I am not aware of them being separately published (except for the ones on sourceforge, which are calculated by sourceforge). I think it may be only little effort to publish those sums on the website or put a file mdsums.txt aside wioth the downloads. ideally there would be one md5sum file for each individual file available for download... this way, one can check the remote checksum file with a local one to see if the file has been updated since the checksums would be different... we use this for automated update mechanisms... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] checksums for downloads
On 19/07/2015 14:29, Marc Santhoff wrote: Many thanks, but I'm using FreeBSD (8 and 9). I am only doing the windows builds.. How do you manage to see checksums on Sourceforge? That would be a start. Click on the (i) symbol behind the entry. You may have to scroll down, after you clicked, because sometimes the info (in-side popup) is displayed a bit far down. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Using semaphores to limit thread access
Am 19.07.2015 18:33 schrieb kapibara kapibara@aol.com: Hi guys A number of threads need to access an object, but no more than three threads must access simultaneously. Thats a job for a semaphore someone said. I understand that under Delphi and Windows something like this could be used: FSemaphoreHandle := CreateSemaphore(nil, 3, 3, nil); WaitForSingleObject(FSemaphoreHandle, timeout); How to do that under Lazarus and Linux? I have found TThreadManager with its SemaphoreInit and SemaphoreWait etc. But how to use it, especially how do you specify the number of threads that can access the object? Using 32 bit Lazarus trunk and FPC trunk. FPC does not yet have a public semaphore API. The functions in TThreadManager are only implemented on Unix systems ans only used for specific purposes inside the RTL. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus