Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-11

fcl/net doesn't build

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Johannes Berg

I added the following to allow fcl/net/fpsock.pp to build, however this is a bad hack. The MSG_NOSIGNAL constant is used in fpsock.pp, but not declared anywhere in the RTL.

+{$IF not declared(MSG_NOSIGNAL)}
+ {$IFDEF LINUX}
+ const
+ MSG_NOSIGNAL = $4000;
+ {$ELSE}
+ const
+ MSG_NOSIGNAL = 0;
+ {$ENDIF}
+{$ENDIF}

johannes

http://www.sipsolutions.de/ GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc Key-ID: 9AB78CA5 Johannes Berg Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5

Reply by email

Marco van de Voort
to Johannes Berg

-- Start of PGP signed section.

I added the following to allow fcl/net/fpsock.pp to build, however this is a bad hack. The MSG_NOSIGNAL constant is used in fpsock.pp, but not declared anywhere in the RTL.

That's probably because it is linux specific. I quicksearched through the FreeBSD include dir, and it doesn't exist.

Reply by email

Johannes Berg
to Marco van de Voort
Marco van de Voort wrote
That's probably because it is linux specific. I quicksearched through the FreeBSD include dir, and it doesn't exist.

Yes, I know, it only exists on Linux. Thats why I did the IFDEF LINUX in my hack.
However, there doesn't appear to be a good strategy on systems other than linux wrt SIGPIPE handling in recv/send (in linux you just exclude it with this flag if you don't want it).

johannes

http://www.sipsolutions.de/ GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc Key-ID: 9AB78CA5 Johannes Berg Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5

Reply by email

Unknown author
to Marco van de Voort: -- Start of PGP signed section. That's probably because it is linux specific. I…
Marco van de Voort wrote 7 lines
-- Start of PGP signed section. > I added the following to allow fcl/net/fpsock.pp to build, however this > is a bad hack. The MSG_NOSIGNAL constant is used in fpsock.pp, but not > declared anywhere in the RTL. That's probably because it is linux specific. I quicksearched through the FreeBSD include dir, and it doesn't exist.

Sebastian sent me some patches to apply to the sockets unit, which should fix this. I'll try and commit everything ASAP.

Michael.

Reply by email

Marco van de Voort
to Unknown author
Show quoted text 14 lines
On Sat, 22 Nov 2003, Marco van de Voort wrote: > -- Start of PGP signed section. > > I added the following to allow fcl/net/fpsock.pp to build, however this > > is a bad hack. The MSG_NOSIGNAL constant is used in fpsock.pp, but not > > declared anywhere in the RTL. > > That's probably because it is linux specific. I quicksearched through > the FreeBSD include dir, and it doesn't exist. Sebastian sent me some patches to apply to the sockets unit, which should fix this. I'll try and commit everything ASAP.
socketsh.inc(24,19) Error: Duplicate identifier "PF_LOCAL"
socketsh.inc(31,26) Error: Duplicate identifier "AF_LOCAL"

Reply by email

Johannes Berg
to Unknown author: Sebastian sent me some patches to apply to the sockets unit, which should fix this. I'll…
Sebastian sent me some patches to apply to the sockets unit, which should fix this. I'll try and commit everything ASAP.

I think MSG_NOSIGNAL shouldn't be in socketsh.inc, at least not unconditionally, because people will assume that the constant actually does something. AFAIK know though, it only works on linux, thus is somewhat "polluting" the file.

johannes

http://www.sipsolutions.de/ GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc Key-ID: 9AB78CA5 Johannes Berg Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5

Reply by email

Unknown author
to Johannes Berg
Johannes Berg wrote 8 lines
On Sat, 2003-11-22 at 18:17, wrote: > Sebastian sent me some patches to apply to the sockets unit, which should > fix this. I'll try and commit everything ASAP. I think MSG_NOSIGNAL shouldn't be in socketsh.inc, at least not unconditionally, because people will assume that the constant actually does something. AFAIK know though, it only works on linux, thus is somewhat "polluting" the file.

I will take up the issue with Sebastian.

Michael.

Reply by email