[gdal-dev] SIGPIPE missing due to not including signal.h

Greg Troxel gdt at ir.bbn.com
Sun Nov 1 09:04:11 PST 2015


Even Rouault <even.rouault at spatialys.com> writes:

> Le dimanche 01 novembre 2015 17:43:35, vous avez écrit :
>> I am building on netbsd-6 i386 with gcc 4.5.3.
>> 
>> I got an error about SIGPIPE being undefined.  The man page says that
>> signal.h is required to be included, and posix agrees:
>> 
>>   http://pubs.opengroup.org/onlinepubs/9699919799/functions/signal.html
>> 
>> I couldn't find an include of signal.h; the following patch resolves the
>> error.
>
> Couldn't you try to include signal.h in gdalserver.c only so as to avoid 
> growing cpl_port.h ?

Yes, that works too.  I filed a ticket with a patch.

https://trac.osgeo.org/gdal/ticket/6193
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 180 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151101/26dcacac/attachment.sig>


More information about the gdal-dev mailing list