[postgis-users] FC2 Compile Error

Richard_D_Levine at raytheon.com Richard_D_Levine at raytheon.com
Tue Oct 12 06:35:00 PDT 2004


Jean David,

Thanks!  That fixed it.

Rick


|---------+--------------------------------------------->
|         |           "TECHER Jean David"               |
|         |           <davidtecher at yahoo.fr>            |
|         |           Sent by:                          |
|         |           postgis-users-bounces at postgis.refr|
|         |           actions.net                       |
|         |                                             |
|         |                                             |
|         |           10/12/2004 08:10 AM               |
|         |           Please respond to PostGIS Users   |
|         |           Discussion                        |
|         |                                             |
|---------+--------------------------------------------->
  >----------------------------------------------------------------------------------------------|
  |                                                                                              |
  |       To:       "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>           |
  |       cc:                                                                                    |
  |       Subject:  Re: [postgis-users] FC2 Compile Error                                        |
  >----------------------------------------------------------------------------------------------|




Open
              postgis-0.9.0/postgis_estimate.c

At line 515, do the following change:

SPIportal = SPI_cursor_open(NULL, SPIplan, NULL, NULL,1);
   if (SPIportal == NULL)
   {
     elog(ERROR,"build_histogram2d: couldn't create cursor via SPI");
     PG_RETURN_NULL() ;
   }

then

rm -f *.o
make clean
make
----------------------------------------------------------------
TECHER Jean David
Responsable Informatique 01MAP
e-mail: davidtecher at yahoo.fr
site: http://techer.pascal.free.fr/postgis/
------------------------------------------------------------
----- Original Message -----
From: <Richard_D_Levine at raytheon.com>
To: <postgis-users at postgis.refractions.net>
Sent: Tuesday, October 12, 2004 3:01 PM
Subject: [postgis-users] FC2 Compile Error


> I'm running Fedora Core 2 and got the following compile error while
running
> make for PostGIS 0.9.0.  More details follow the error listing.
>
> [root at cp09426 postgis-0.9.0]# make
> ./geos_version.sh /usr/local > postgis_geos_version.h
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -g -fexceptions  -I. -DFRONTEND
> -DSYSCONFDIR='"/usr/local/pgsql/etc"'  -DUSE_VERSION=80
> -DPOSTGIS_LIB_VERSION='"0.9.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.0.1"'
> -I/usr/local/include -DUSE_GEOS -I/usr/local/include -DUSE_PROJ
> -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o
> postgis_estimate.o postgis_estimate.c
> postgis_estimate.c: In function `build_histogram2d':
> postgis_estimate.c:515: error: too few arguments to function
> `SPI_cursor_open'
> make: *** [postgis_estimate.o] Error 1
>
> I'm running PostgreSQL 8.0.0 Beta 3, which I made and installed without a
> problem from the tarball.
> I'm installing as root.
> I built Proj.4 and installed it without a problem.
> I built the GEOS library and installed it without a problem.
> I can't wait to get this working cause I want to play with it.
>
> Thanks,
>
> Rick
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users


_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users








More information about the postgis-users mailing list