Re: [fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread Mark Morgan Lloyd
on : function OneToTwoComplement(AValue: Int64): Int64; begin Result := (Abs(AValue) xor $) + 1; end; What happens in the first case if you cast that constant to a QWord? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread Mark Morgan Lloyd
/subversion-deps-1.6.17.tar.bz2;. Start off with those, then see what else you /really/ need for http. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2012-10-20 Thread Mark Morgan Lloyd
if it would be good enough to embed the ECLiPSe CLP solver in an application-specific Lazarus frontend? That combination could be seriously useful for timetabling etc. http://eclipseclp.org/doc/embedding/embroot.html -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] problems compiling FPC

2012-10-17 Thread Mark Morgan Lloyd
to be accepted, or FORCE=1.1 to accept anything up to 2.7.1. However the thing that's really needed in my opinion is a clear statement for each SVN tag which FPC version should be used for compilation. Ditto for Lazarus, it shouldn't be necessary to delve into the source to find this. -- Mark Morgan

Re: [fpc-pascal] problems compiling FPC

2012-10-17 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 2012-10-17 10:10, Mark Morgan Lloyd wrote: Some slack would be desirable: stable is 2.6.0 but there are known issues which are fixed by 2.6.1. Nope, the FPC developers made the rules quite clear! Not even the fixes branch is guaranteed to compile FPC Trunk. ONLY

Re: [fpc-pascal] Re: problems compiling FPC

2012-10-17 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 17-10-2012 12:49, Mark Morgan Lloyd wrote: Graeme Geldenhuys wrote: On 2012-10-17 10:10, Mark Morgan Lloyd wrote: Some slack would be desirable: stable is 2.6.0 but there are known issues which are fixed by 2.6.1. Nope, the FPC developers made the rules quite

Re: [fpc-pascal] Memory alignment with FPC

2012-10-11 Thread Mark Morgan Lloyd
access crossed a cacheline boundery ? (32 bytes now, 64 bytes on Haswell) In any event, I run FPC and Lazarus on SPARC which is susceptible to misalignment and am not currently aware of any problems. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread Mark Morgan Lloyd
want to transfer such record data (e.g. through files) between systems with different endianess. In that case you'll need to write the record field by field and convert the endianess in one of the two cases... I've had some success defining a custom := operator for this. -- Mark Morgan Lloyd

Re: [fpc-pascal] Running FPC on a system that supports multiple architectures

2012-10-09 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: IIRC there is also a CROSSBINUTILSPREFIX in case you only have to override it for the cross part. Thanks Marco, I'd missed -XP since I was mistakenly looking at the -A section

Re: [fpc-pascal] Running FPC on a system that supports multiple architectures

2012-10-05 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: This is an out of interest question rather than being particularly important. I've managed to get my hands on an Itanium-based system for my collection, and find that it runs the x86 Linux variant of FPC fairly happily

Re: [fpc-pascal] Running FPC on a system that supports multiple architectures

2012-10-05 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 05.10.2012 11:34, schrieb Mark Morgan Lloyd: For information, it works, but I'm getting an error when it calls the linker. If I link using a script it's fine: It would help very much if you'd post the error that you get. I posted the minimum to report (partial) success

Re: [fpc-pascal] Running FPC on a system that supports multiple architectures

2012-10-05 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Sven Barth wrote: Am 05.10.2012 11:34, schrieb Mark Morgan Lloyd: For information, it works, but I'm getting an error when it calls the linker. If I link using a script it's fine: It would help very much if you'd post the error that you get. I posted the minimum

Re: [fpc-pascal] Running FPC on a system that supports multiple architectures

2012-10-05 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: IIRC there is also a CROSSBINUTILSPREFIX in case you only have to override it for the cross part. Thanks Marco, I'd missed -XP since I was mistakenly looking at the -A section. For information, it works, but I'm

[fpc-pascal] Running FPC on a system that supports multiple architectures

2012-10-04 Thread Mark Morgan Lloyd
in makefiles? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Problems with Postgresql Character Encoding

2012-09-26 Thread Mark Morgan Lloyd
change isn't retained. I had to delve into this when getting listen/notify running reliably. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

Re: [fpc-pascal] FPC 2.6.1

2012-09-20 Thread Mark Morgan Lloyd
from a pointer to a TByte, and I need to track the version number change in units that depend on this. I think that's going to need attention from a core developer/manager. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Function for checking correct file name

2012-09-16 Thread Mark Morgan Lloyd
() (or whatever the name of the Windows function is) and so on: that's why Perl has the tainted concept that allows anything injected by a user to be tracked and treated as potentially hostile. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Mark Morgan Lloyd
in the form designer etc.? I wonder whether it would run on Solaris 8 which doesn't have some of the libraries required for Lazarus? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Function for checking correct file name

2012-09-14 Thread Mark Morgan Lloyd
if AFilename[i] in c then Exit(False); end; So, problem solved. Thanks and regards But several of those are fine in filenames- just inadvisable since they need special quoting/escaping to get past the shell. As does ' ' which isn't in your list :-) -- Mark Morgan Lloyd markMLl

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 14/09/12 09:10, Mark Morgan Lloyd wrote: I don't believe you've mentioned Maximus here before, does it pull in the form designer etc.? I've tested in OpenSolaris 2009 release, but I don't have Solaris 8 to try. I can say that I have run fpGUI executables under

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 14/09/12 14:22, Mark Morgan Lloyd wrote: It was just an idle query... it might turn out to be possible to build it by taking sources of about the right age from e.g. Slackware 8.1, but right now I've got too much else on my plate to get into this. The alternative

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 14/09/12 14:22, Mark Morgan Lloyd wrote: It was just an idle query... it might turn out to be possible to build it by taking sources of about the right age from e.g. Slackware 8.1, but right now I've got too much else on my plate to get into this. Thinking about

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Mark Morgan Lloyd
with. If anybody has contacts, please let me know. I think I've had to install those on any Debian system I've used for development, so for any change you'd be up against the entire Debian philosophy. Good luck. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Debug information

2012-09-11 Thread Mark Morgan Lloyd
adresses are the same in both cases. What OS? Are you expecting a line number associated with code in the calling program or the .DLL/.so? What has caused the error- is the calling convention etc. correct? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Debug information

2012-09-11 Thread Mark Morgan Lloyd
an extra or missing word)? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Debug information

2012-09-11 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Tuesday 11 September 2012 18:14:57 schrieb Mark Morgan Lloyd: Martin wrote: On 11/09/2012 10:28, Rainer Stratmann wrote: I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library

Re: [fpc-pascal] Re: Issue with deploying linux application in /opt directory

2012-09-04 Thread Mark Morgan Lloyd
responds? What files were changed by the chown -R operation? In other words, compare before and after. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal

Re: [fpc-pascal] Re: Issue with deploying linux application in /opt directory

2012-09-04 Thread Mark Morgan Lloyd
of the user who started them (unless you set the suid bit which is considered evil and should not be neccessary in most normal situations). Setuid root does not work with GTK. Appropriate use of capabilities does. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Re: Editing resource of executable

2012-09-01 Thread Mark Morgan Lloyd
was between having an extra file or patching the executable, and if the patched executable failed on 5% of customer systems due to an OS or anti-virus check, I'd settle for the extra file and count myself lucky. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Re: Identifier not found result

2012-08-31 Thread Mark Morgan Lloyd
of the developers not liking changing established features: sometimes that frustrates almost everybody, but it's something to be lived with. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Re: Identifier not found result

2012-08-31 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Friday 31 August 2012 10:38:32 schrieb Mark Morgan Lloyd: FPC is mature in terms of age, mature in terms of stability, and mature in terms of the developers not liking changing established features: sometimes that frustrates almost everybody, but it's something

Re: [fpc-pascal] Re: Identifier not found result

2012-08-31 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Friday 31 August 2012 11:23:49 schrieb Mark Morgan Lloyd: Rainer Stratmann wrote: Am Friday 31 August 2012 10:38:32 schrieb Mark Morgan Lloyd: FPC is mature in terms of age, mature in terms of stability, and mature in terms of the developers not liking changing

Re: [fpc-pascal] Re: Editing resource of executable

2012-08-31 Thread Mark Morgan Lloyd
would be to leave the executable alone and to put an early check in the startup code that a subsidiary key file existed, and for that key to include something that identified the machine or site on which the program was entitled to run. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] Editing resource of executable

2012-08-30 Thread Mark Morgan Lloyd
to a working area before manipulating it, unless you can serialise the CGI or whatever you're using. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-30 Thread Mark Morgan Lloyd
declared once, and is not being passed around as a parameter. So I'd suggest that there are cases where the first example is appropriate, except obviously that that ..10 is rarely if ever acceptable. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: [fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Mark Morgan Lloyd
. procedure xxx(var result2: yyy); begin result := zzz -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Mark Morgan Lloyd
operators would result in something like operator := (wle: WordLE): word; begin {$ifdef ENDIAN_LITTLE } Move(wle, result, SizeOf(:=)) .. which is clearly absurd :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Mark Morgan Lloyd
to me by Jonas et. al. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Rainer Stratmann wrote: TP for DOS at least supports a function result (as I remember) thus it is not Delphi only as you mention. It supports a function result, but it doesn't IIRC treat 'result' as a special identifier. Delphi /has/ to have 'result', since

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
, for reasons that might make sense to me but not to others. I've generally got the grace to respect core developers' recommendations and to recognise that they've got other things to get on with- including a job to keep them fed and clothed. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Wednesday 29 August 2012 10:58:52 schrieb Mark Morgan Lloyd: Looking at the earlier thread, what you appear to be suggesting is some way of using $i for pulling binary data into your program. However, $i is by definition for including source fragments, if you want

Re: [fpc-pascal] Including binary data making easy

2012-08-29 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: Am Wednesday 29 August 2012 11:59:01 schrieb Mark Morgan Lloyd: You are trying to make a very simple thing complicated. I know bytes with values from 0 to 255. I do not see an illegal character/byte there. If you read exactly I did not type $i but $ir which I think

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-29 Thread Mark Morgan Lloyd
of Gothic or Japanese style, easily constructible (compostable) to any form you like. I'm curious: where do you get this 1948 date from? I'm not even sure that assemblers (as we know them) existed in 1949... -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Mark Morgan Lloyd
with. It's only marginally more difficult to add a warning (or even error) if the compiler version isn't as expected. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Assembler file generate by compiler

2012-08-19 Thread Mark Morgan Lloyd
mileage might vary for other OSes. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

[fpc-pascal] Resourcestring and multi-line text

2012-08-17 Thread Mark Morgan Lloyd
Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Resourcestring and multi-line text

2012-08-17 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: When putting text into a resourcestring, for example for i18n, what is best practice for multiline blocks? I'm thinking of, for example, explanatory text that goes on a page in a wizard-style set of dialogues

Re: RE : RE : RE : [fpc-pascal] Re: linux: should we hard-codeversionedorunversioned shared libraries in our apps?

2012-08-16 Thread Mark Morgan Lloyd
and miscomprehensions (assuming that is a shared objective) then it would already be a big step forward. I agree. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Mark Morgan Lloyd
that protects executable code from being read? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

OT: Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Mark Morgan Lloyd
? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Mark Morgan Lloyd
lines that sometimes get inserted on behalf of some posters, which detracts from the legibility of their questions or opinions. I can't remember for certain, but I think that this was again a gmail issue. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's

Re: OT: Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Mark Morgan Lloyd
end. Anybody: does any computer close to the list server use ClamAV? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Mark Morgan Lloyd
is permanently available when in fact it's a short-term NFS mount. And doing it that way means that the user would be aware of the problem, and if enough users are aware of the problem it might trickle through to the awareness of the distreaux maintainers. -- Mark Morgan Lloyd markMLl .AT. telemetry.co

Re: [fpc-pascal] linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Mark Morgan Lloyd
derivative? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-12 Thread Mark Morgan Lloyd
the compiled code. Hey, Jonas, when are you introducing the optimisation that a call at the end of a procedure can be replaced by a jmp? :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] Get all caller adresses of a procedure/function

2012-08-06 Thread Mark Morgan Lloyd
. feeding the program all possible input states etc.) you'd probably miss combinations. You're left with the options of learning how to use resourcestrings effectively, or using a language such as Smalltalk where the senders of a message are known in advance. -- Mark Morgan Lloyd markMLl

[fpc-pascal] Translating from error numbers to symbolic name

2012-08-03 Thread Mark Morgan Lloyd
it to a concise literal such as 'EAGAIN'? I want the log to report that accept() has failed with EAGAIN, rather than having explanatory text that doesn't match the kernel documentation. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] Translating from error numbers to symbolic name

2012-08-03 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: When using a function like fpAccept on a non-blocking socket, in some cases -1 is returned with a documented (Linux kernel) error code of EAGAIN. Should I be looking for this in errno or SocketError? Socketerror

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-30 Thread Mark Morgan Lloyd
potentially be protected by patent, or by the DMCA) but chatty description (comments etc.) of them probably is. Remember that Jonas has asked that this thread adjourn to the fpc-other list. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

[fpc-pascal] Byte ordering in IP4 and IP6 addresses

2012-07-30 Thread Mark Morgan Lloyd
() appear to be consistent. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] Getting UTC time etc.

2012-07-28 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I know that this was discussed a couple of months ago, but I had difficulty working out what the consensus was. i)Is there an FPC function which will get the raw time from the RTC, which on unix systems will usually be UTC (specifically, without a DST correction

Re: [fpc-pascal] FPC and IPv6, and BSD

2012-07-27 Thread Mark Morgan Lloyd
ZAN DoYe wrote: On 2012-07-23 21:51, Mark Morgan Lloyd wrote: I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear to be having problems at the bind() call for IP6 (returns

[fpc-pascal] Getting UTC time etc.

2012-07-27 Thread Mark Morgan Lloyd
the client for status messages etc. before connection. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Mark Morgan Lloyd
of whether he could have got it elsewhere. Alternatively, the basic framework is GPL but dynamically-linked extensions are proprietary. I suppose that the bigger question is: how does one find an affordable lawyer, well-versed in the laws covering the major jurisdictions? -- Mark Morgan Lloyd

[fpc-pascal] POSIX capabilities library

2012-07-25 Thread Mark Morgan Lloyd
Does FPC have an interface to the POSIX capabilities library, which I believe is libcap or possibly libcap-ng? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc

[fpc-pascal] FPC and IPv6, and BSD

2012-07-23 Thread Mark Morgan Lloyd
; .. so that it initialises the sin6_len field if present (some BSD variants?), does it see that conditional automatically if defined? Otherwise how best to do it? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [fpc-pascal] FPC and IPv6, and BSD

2012-07-23 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear to be having problems at the bind() call for IP6 (returns -1), which I suspect is down to my

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-22 Thread Mark Morgan Lloyd
in a standard library. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-20 Thread Mark Morgan Lloyd
for the diversion ;) If you were using the very early MS networking for unix (mentioned in the Samba entry on Wp IIRC, but I think I've also got other references) then they probably had both. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-19 Thread Mark Morgan Lloyd
waldo kitty wrote: On 7/18/2012 08:48, Mark Morgan Lloyd wrote: I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a keyword to a help viewer. I am obviously aware of the fact that FPC

[fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a keyword to a help viewer. I am obviously aware

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
OBones wrote: Mark Morgan Lloyd wrote: A couple of weeks ago, out of curiosity rather than necessity, I started looking at whether the library could be ported to Windows using MS-style named pipes. However I seem to have hit a snag since it appears that Windows can't both create a named pipe

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
. I will do, but I do note that http://lazarus-ccr.sourceforge.net/docs/rtl/ipc/index.html explicitly says that It works only on the linux operating system. Where's the source- I can only see ./fpcsrc/rtl/unix/ipc.pp -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
OBones wrote: Mark Morgan Lloyd wrote: Basically, what I was trying to do was this. In the main thread: fIpcPipe:= CreateNamedPipe(PChar(fIpcName), PIPE_ACCESS_INBOUND, PIPE_TYPE_MESSAGE + PIPE_READMODE_MESSAGE, 1, 0, 0, 1000, NIL

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: No need to apologize, I'm just curious where you got your info from. The implementation has been the same since day 1, which means your statement puzzles me. So instead of re

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread Mark Morgan Lloyd
already exists. Of course, time spent learning APIs is never wasted :) I'll certainly take a close look at that if I come back to this problem- if nothing else to see whether it works in the context of a single process :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Mark Morgan Lloyd
, not a SIGBUS which is what you would get for an alignment problem. This problem no longer exists in 2.7.1 (21919 + Reinier's solarisdbtrunk2.diff). However, I've got an unknown fieldtype which I'll investigate and if necessary raise separately. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Mark Morgan Lloyd
that it isn't forgotten. I'll do that, but first I'm working through another odd issue to determine whether it's down to Lazarus on Solaris or is a recently-introduced problem in 2.7.1 targeting SPARC. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Sven Barth wrote: Now, you are getting a SIGSEGV, not a SIGBUS which is what you would get for an alignment problem. This problem no longer exists in 2.7.1 (21919 + Reinier's solarisdbtrunk2.diff). Then it might be good if you report this in Mantis together

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used by registersqldb Fatal: Compilation aborted make

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
missed any stages out: applied patch successfully, make distclean, make all? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 16-7-2012 18:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite

[fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
? Problem appears to be in pqconnection.pp and I can see that it's recently been worked on. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
SPARC Linux is OK it's unlikely to be a straight alignment error. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
Thomas Schatzl wrote: Hi, On Thu, 2012-07-12 at 09:47 +, Mark Morgan Lloyd wrote: Ludo Brands wrote: Builds OK on SPARC Solaris 10 using 2.6.0, but on running get a consistent error Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 4] 0x004b08b8

Re: [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Thomas Schatzl wrote on Thu, 12 Jul 2012: On Thu, 2012-07-12 at 09:47 +, Mark Morgan Lloyd wrote: Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 4] 0x004b08b8 in TPQCONNECTION__LOADFIELD (CURSOR=0xfad601a0, FIELDDEF=0xfad30f20, BUFFER=0xfa5f00bc

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-12 Thread Mark Morgan Lloyd
: *** [bigidecomponents] Error 2 -bash-3.00$ svn up At revision 37922. Anybody got any quick suggestions? all builds OK but I presume I need bigide because I've used the TQuery etc. on the form. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-pascal] SIGTERM and thread

2012-07-11 Thread Mark Morgan Lloyd
a non-reentrant function, and so on). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] How can a project determine if it's using cmem?

2012-07-09 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Tomas Hajny wrote: On Wed, July 4, 2012 11:32, Mark Morgan Lloyd wrote: When building a shared library, I'm putting a (function that returns a) magic number into both the library and the calling program. This returns an integer, and allows the program and library

Re: [fpc-pascal] StackTop and StackBottom are bogus in a Win32/64 Dll

2012-07-06 Thread Mark Morgan Lloyd
think is consistent with what you're saying. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] How can a project determine if it's using cmem?

2012-07-04 Thread Mark Morgan Lloyd
Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-27 Thread Mark Morgan Lloyd
on tinkering with this, I've not yet retrieved the exact error message and I'm interested in seeing what happens if the .so itself tries to use libdl to reopen the main program. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-27 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Can such an alternative entry point in the main unit be called by a shared library, i.e. either resolved at load time or with the main binary reopened like a library? Or is the only way to pass a main- program entry point to a shared library by using

Re: [fpc-pascal] Unhandled exception from library crashes host exe

2012-06-27 Thread Mark Morgan Lloyd
-reported. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
the number of a particular object being allocated/deallocated), but distinct across program invocations (i.e. two programs using the same shared library wouldn't clash)? The discussion of libraries in ch16 of the Language reference guide is rather quiet on the semantics. -- Mark Morgan Lloyd

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I'm currently tinkering with shared libraries, using cmem, mainly on Linux. In one case the main-program code is multithreaded, but so far I'm not moving data between threads inside the library. Am I correct in believing that unit-level variables in a shared library

Re: [fpc-pascal] Shared libraries and threadvars

2012-06-26 Thread Mark Morgan Lloyd
for an embedded system, but have never tried exploiting it with a real OS. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Strings and objects crossing dll boundaries

2012-06-14 Thread Mark Morgan Lloyd
best debugs operation as control is transferred from the main program into the shared library, bearing in mind that this might be important since the library might have all the tricky code. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

<    3   4   5   6   7   8   9   10   11   >