[postgis-tickets] [PostGIS] #3695: Compiler warnings when building raster

PostGIS trac at osgeo.org
Mon Jan 23 11:07:22 PST 2017


#3695: Compiler warnings when building raster
---------------------+---------------------------
 Reporter:  dbaston  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.4.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 Here's a short excerpt:

 {{{
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpostgis.c:132:
 /usr/include/postgresql/9.6/server/pg_config.h:734:0: note: this is the
 location of the previous definition
  #define PACKAGE_TARNAME "postgresql"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpostgis.c:140:
 /usr/include/gdal/cpl_config.h:215:0: warning: "PACKAGE_VERSION" redefined
  #define PACKAGE_VERSION ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpostgis.c:132:
 /usr/include/postgresql/9.6/server/pg_config.h:740:0: note: this is the
 location of the previous definition
  #define PACKAGE_VERSION "9.6.1"
  ^
 gcc "-I../../liblwgeom"  -fpic -I/usr/include  -I/usr/include/libxml2
 -I/usr/include/gdal "-I../../libpgcommon"  -I../rt_core -I. -I./
 -I/usr/include/postgresql/9.6/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
 -I/usr/include/tcl8.6  -c -o rtpg_internal.o rtpg_internal.c
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_internal.h:33,
                  from rtpg_internal.c:34:
 /usr/include/gdal/cpl_config.h:200:0: warning: "PACKAGE_BUGREPORT"
 redefined
  #define PACKAGE_BUGREPORT ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_internal.c:31:
 /usr/include/postgresql/9.6/server/pg_config.h:725:0: note: this is the
 location of the previous definition
  #define PACKAGE_BUGREPORT "pgsql-bugs at postgresql.org"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_internal.h:33,
                  from rtpg_internal.c:34:
 /usr/include/gdal/cpl_config.h:203:0: warning: "PACKAGE_NAME" redefined
  #define PACKAGE_NAME ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_internal.c:31:
 /usr/include/postgresql/9.6/server/pg_config.h:728:0: note: this is the
 location of the previous definition
  #define PACKAGE_NAME "PostgreSQL"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_internal.h:33,
                  from rtpg_internal.c:34:
 /usr/include/gdal/cpl_config.h:206:0: warning: "PACKAGE_STRING" redefined
  #define PACKAGE_STRING ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_internal.c:31:
 /usr/include/postgresql/9.6/server/pg_config.h:731:0: note: this is the
 location of the previous definition
  #define PACKAGE_STRING "PostgreSQL 9.6.1"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_internal.h:33,
                  from rtpg_internal.c:34:
 /usr/include/gdal/cpl_config.h:209:0: warning: "PACKAGE_TARNAME" redefined
  #define PACKAGE_TARNAME ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_internal.c:31:
 /usr/include/postgresql/9.6/server/pg_config.h:734:0: note: this is the
 location of the previous definition
  #define PACKAGE_TARNAME "postgresql"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_internal.h:33,
                  from rtpg_internal.c:34:
 /usr/include/gdal/cpl_config.h:215:0: warning: "PACKAGE_VERSION" redefined
  #define PACKAGE_VERSION ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_internal.c:31:
 /usr/include/postgresql/9.6/server/pg_config.h:740:0: note: this is the
 location of the previous definition
  #define PACKAGE_VERSION "9.6.1"
  ^
 gcc "-I../../liblwgeom"  -fpic -I/usr/include  -I/usr/include/libxml2
 -I/usr/include/gdal "-I../../libpgcommon"  -I../rt_core -I. -I./
 -I/usr/include/postgresql/9.6/server -I/usr/include/postgresql/internal
 -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2
 -I/usr/include/tcl8.6  -c -o rtpg_spatial_relationship.o
 rtpg_spatial_relationship.c
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_spatial_relationship.c:36:
 /usr/include/gdal/cpl_config.h:200:0: warning: "PACKAGE_BUGREPORT"
 redefined
  #define PACKAGE_BUGREPORT ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_spatial_relationship.c:30:
 /usr/include/postgresql/9.6/server/pg_config.h:725:0: note: this is the
 location of the previous definition
  #define PACKAGE_BUGREPORT "pgsql-bugs at postgresql.org"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_spatial_relationship.c:36:
 /usr/include/gdal/cpl_config.h:203:0: warning: "PACKAGE_NAME" redefined
  #define PACKAGE_NAME ""
  ^
 In file included from /usr/include/postgresql/9.6/server/c.h:53:0,
                  from /usr/include/postgresql/9.6/server/postgres.h:47,
                  from rtpg_spatial_relationship.c:30:
 /usr/include/postgresql/9.6/server/pg_config.h:728:0: note: this is the
 location of the previous definition
  #define PACKAGE_NAME "PostgreSQL"
  ^
 In file included from /usr/include/gdal/cpl_port.h:81:0,
                  from /usr/include/gdal/gdal.h:42,
                  from /usr/include/gdal/gdal_alg.h:41,
                  from ../rt_core/librtcore.h:138,
                  from rtpostgis.h:31,
                  from rtpg_spatial_relationship.c:36:
 /usr/include/gdal/cpl_config.h:206:0: warning: "PACKAGE_STRING" redefined
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3695>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list