[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-devel
Subject:    [postgis-devel] Postgis-1.3.5 Build Failure Against PG 8.4
From:       Talha Rizwan <talha.rizwan () enterprisedb ! com>
Date:       2009-02-18 8:15:05
Message-ID: 274f971b0902180015y6954b9f0w425a099b559bfb00 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Postgis-1.3.5 build is failing against PostgreSQL 8.4:

Error - 1:
lwgeom_estimate.c: In function 'build_lwhistogram2d':
lwgeom_estimate.c:376: error: 'textout' undeclared (first use in this
function)

Fix: extern Datum textout (PG_FUNCTION_ARGS);

Error - 2:
lwgeom_estimate.c: In function 'LWGEOM_gist_joinsel':
lwgeom_estimate.c:824: error: 'PlannerInfo' undeclared (first use in this
function)

Fix: #include "utils/selfuncs.h"

Error - 3:
lwgeom_estimate.c: In function 'LWGEOM_gist_joinsel':
lwgeom_estimate.c:899: error: 'STATRELATT' undeclared (first use in this
function)

Fix: #include "utils/syscache.h"

Error - 4:
lwgeom_estimate.c: In function 'LWGEOM_estimated_extent':
lwgeom_estimate.c:2449: error: 'ArrayType' undeclared (first use in this
function)

Fix:  #include "utils/guc.h"

-----------------------

Build gets fixed by adding following four lines into the file
lwgeom/lwgeom_estimate.c

#include "utils/selfuncs.h"
#include "utils/syscache.h"
#include "utils/guc.h"
extern Datum textout (PG_FUNCTION_ARGS);

>> PFA "postgis-fix.patch" and do let me know if you find any problem in it.

--
Regards
Talha Bin Rizwan

[Attachment #5 (text/html)]

Postgis-1.3.5 build is failing against PostgreSQL 8.4:<br><br>Error - 1:<br=
>lwgeom_estimate.c: In function &#39;build_lwhistogram2d&#39;:<br>lwgeom_es=
timate.c:376: error: &#39;textout&#39; undeclared (first use in this functi=
on)<br>
<br>Fix: extern Datum textout (PG_FUNCTION_ARGS);<br><br>Error - 2:<br>lwge=
om_estimate.c: In function &#39;LWGEOM_gist_joinsel&#39;:<br>lwgeom_estimat=
e.c:824: error: &#39;PlannerInfo&#39; undeclared (first use in this functio=
n)<br>
<br>Fix: #include &quot;utils/selfuncs.h&quot;<br><br>Error - 3:<br>lwgeom_=
estimate.c: In function &#39;LWGEOM_gist_joinsel&#39;:<br>lwgeom_estimate.c=
:899: error: &#39;STATRELATT&#39; undeclared (first use in this function)<b=
r>
<br>Fix: #include &quot;utils/syscache.h&quot;<br><br>Error - 4:<br>lwgeom_=
estimate.c: In function &#39;LWGEOM_estimated_extent&#39;:<br>lwgeom_estima=
te.c:2449: error: &#39;ArrayType&#39; undeclared (first use in this functio=
n)<br>
<br>Fix:&nbsp; #include &quot;utils/guc.h&quot;<br><br>--------------------=
---<br><br>Build gets fixed by adding following four lines into the file lw=
geom/lwgeom_estimate.c<br><br>#include &quot;utils/selfuncs.h&quot;<br>#inc=
lude &quot;utils/syscache.h&quot;<br>
#include &quot;utils/guc.h&quot;<br>extern Datum textout (PG_FUNCTION_ARGS)=
;<br><br>&gt;&gt; PFA &quot;postgis-fix.patch&quot; and do let me know if y=
ou find any problem in it.<br><br>--<br>Regards<br>Talha Bin Rizwan<br>

--000e0cd177ce69f54604632d041e--
["postgis-fix.patch" (text/x-diff)]

*** postgis-1.3.5/lwgeom/lwgeom_estimate.c	2007-10-17 20:24:42.000000000 +0500
--- lwgeom/lwgeom_estimate.c	2009-02-18 12:03:53.529542488 +0500
***************
*** 25,30 ****
--- 25,35 ----
  #include "liblwgeom.h"
  #include "lwgeom_pg.h"
  
+ #include "utils/selfuncs.h"
+ #include "utils/syscache.h"
+ #include "utils/guc.h"
+ extern Datum textout (PG_FUNCTION_ARGS);
+ 
  /*#define DEBUG_GEOMETRY_STATS 1*/
  
  


_______________________________________________
postgis-devel mailing list
postgis-devel@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic