<b>Postgis-1.3.5 build is failing against PostgreSQL 8.4:</b><br><br><b>Error - 1:</b><br>lwgeom_estimate.c: In function 'build_lwhistogram2d':<br>lwgeom_estimate.c:376: error: 'textout' undeclared (first use in this function)<br>
<b><br>Fix: </b>extern Datum textout (PG_FUNCTION_ARGS);<br><br><b>Error - 2:</b><br>lwgeom_estimate.c: In function 'LWGEOM_gist_joinsel':<br>
lwgeom_estimate.c:824: error: 'PlannerInfo' undeclared (first use in this function)<br><br><b>Fix: </b>#include "utils/selfuncs.h"<br>
<br><b>Error - 3:</b><br>lwgeom_estimate.c: In function 'LWGEOM_gist_joinsel':<br>lwgeom_estimate.c:899: error: 'STATRELATT' undeclared (first use in this function)<br><br><b>Fix: </b>#include "utils/syscache.h"<br>
<br><b>Error - 4:</b><br>lwgeom_estimate.c: In function 'LWGEOM_estimated_extent':<br>lwgeom_estimate.c:2449: error: 'ArrayType' undeclared (first use in this function)<br>
<br><b>Fix:  </b>#include "utils/guc.h"<br><br>-----------------------<br><br>Build gets fixed by adding following four lines into the file lwgeom/lwgeom_estimate.c<br><br>#include "utils/selfuncs.h"<br>
#include "utils/syscache.h"<br>#include "utils/guc.h"<br>extern Datum textout (PG_FUNCTION_ARGS);<br><br>>> PFA "postgis-fix.patch" and do let me know if you find any problem in it.<br>
<br>--<br>Regards<br>Talha Bin Rizwan<br><br>