[postgis-users] Encountering error while installing postgis from source?

Greg Troxel gdt at ir.bbn.com
Thu Jul 7 04:31:33 PDT 2016


"Regina Obe" <lr at pcorp.us> writes:

> 4) this error 
> lwout_wkb.c: In function  empty_to_wkb_buf :
> lwout_wkb.c:319:22: error:  NAN  undeclared (first use in this function)
>    static double nn = NAN;
>                       ^
> lwout_wkb.c:319:22: note: each undeclared identifier is reported only once for each function it appears in
>
> I've seen that before might be GCC version specific - which GCC
> version are you running?

NAN is defined by IEEE754, and is in math.h.  lwout_wkb.c includes
math.h.  So the OP should look for stray math.h files.  I have had
problems with include files from old gcc versions still present after an
upgrade (gcc 3 to 4??).

(I suppose postgis really requires IEEE754 math, and so won't build on
the vax.  I noticed at some point that code with IEEE754-specifc
constructs like NAN fails to build on NetBSD/vax.   But that seems ok,
as IEEE754 has become almost universal.)


-------------- 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/postgis-users/attachments/20160707/52e55079/attachment.sig>


More information about the postgis-users mailing list