Lukas Gebauer schrieb:
I ran into some problems trying to get a program using synapse compiled on
OSX. The current stable synapse reports an error while compiling - as the
fpc osx sockets unit does not have MSG_NOSIGNAL defined.

Just defining MSG_NOSIGNAL to some random number (42) lets the program
compile but results in a SIGPIPE abort while running the program.

OSX does not having this flag? If not, set this to value 0.
I'll try.
Or OSX have this flag, and just not defined in FPC units?
Nope. Neither in the freepascal's socket.pp not in the systems socket.h c-header.
Purpose of MSG_NOSIGNAL flag is do not call SIGPIPEs...
My program seems to abort due to an uncought SIGPIPE - so I fear setting the flag to 0 will not improve things.
However AFAIK you are using version 2.1.5, what not have stable status yet. Creating libraries for FPC is big headache, because FPC developers likely mades incomatible changes... :-/ I rather waiting for stable versions and then I creating tons of fixes...
Right:

PerOxyd:~ file$ /usr/local/bin/fpc Free Pascal Compiler version 2.1.5 [2007/07/04] for i386
Copyright (c) 1993-2007 by Florian Klaempfl

So I have to wait for a stable fpc release?


BTW. On both linux and windows platform, it compiles and runs like a charm (using fpc/lazarus). Not quite sure on the fpc version, it is maybe a 2.0.2 on these systems.

/michi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to