[postgis-tickets] [PostGIS] #2650: Can't compile with --enable-debug anymore

PostGIS trac at osgeo.org
Sat Feb 22 19:31:56 PST 2014


#2650: Can't compile with --enable-debug anymore
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.2
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 This might just be me, but in trying to test 2.1, I realized I can't
 compile with --enable-debug anymore.

 I deleted my 2.1 branch and repulled from svn to make sure it wasn't just
 me messing with stuff

 when compiling with

 {{{
 export XSLTPROCFLAGS=
 CPPFLAGS="-I${PGPATH}/include -I${PROJECTS}/rel-
 libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/include" \
 LDFLAGS="-L${PGPATH}/lib
 -L${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/lib -L${PROJECTS
 }/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/lib" ./configure \
   --host=${MINGHOST} --with-xml2config=${PROJECTS}/libxml/rel-
 libxml2-${LIBXML_VER}w${OS_BUILD}${GCC_TYPE}/bin/xml2-config \
   --with-pgconfig=${PGPATH}/bin/pg_config \
   --with-libiconv=${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE} \
   --with-
 geosconfig=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE}/bin
 /geos-config \
   --with-projdir=${PROJECTS}/proj/rel-${PROJ_VER}w${OS_BUILD}${GCC_TYPE} \
   --with-
 gdalconfig=${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/bin
 /gdal-config \
   --with-jsondir=${PROJECTS}/json-c/rel-${JSON_VER}w${OS_BUILD}${GCC_TYPE}
 \
   --with-xsldir=${PROJECTS}/docbook/docbook-xsl-1.76.1 \
   --with-gui --with-gettext=no --enable-debug
 }}}


 I get this error:


 {{{
 make[1]: Entering directory `/projects/postgis/branches/2.1/postgis'
 gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Wendif-labels -Wmissing-format-attribute -Wformat-security
 -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g
 -I../liblwgeom -I../libpgcommon
 -I/projects/geos/rel-3.5.0devw64gcc48/include -I/projects/proj/re
 l-4.8.0w64gcc48/include -I/projects/libxml/rel-
 libxml2-2.7.8w64gcc48/include/libxml2
 -I/projects/postgresql/rel/pg9.3w64gcc48/include -I/projects/rel-
 libiconv-1.13.1w64gcc48/include -fPIC -I. -I.
 -Ic:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/include/server
 -Ic:/MING64~1/projects/POSTGR~1/rel/PG9~1.
 3W6/include/internal -I./src/include/port/win32 -DEXEC_BACKEND
 "-Ic:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/lib/pgxs/src/MAKEFI~1/../../src/include/port/win32"
 -Ic:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/include/server/port/win32
 -c -o geography_measurement_trees.o geography_measurement_trees.
 c
 geography_measurement_trees.c:1:0: warning: -fPIC ignored for target (all
 code is position independent) [enabled by default]
  #include "geography_measurement_trees.h"
  ^
 In file included from
 c:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/include/server/postgres.h:48:0,
                  from ../libpgcommon/lwgeom_cache.h:16,
                  from geography_measurement_trees.h:3,
                  from geography_measurement_trees.c:1:
 geography_measurement_trees.c: In function 'CircTreePIP':
 geography_measurement_trees.c:88:67: error: 'lwgeom2' undeclared (first
 use in this function)
   POSTGIS_DEBUGF(3, "tree1_type=%d, lwgeom2->type=%d", tree1_type,
 lwgeom2->type);
                                                                    ^
 c:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/include/server/utils/elog.h:117:14:
 note: in definition of macro 'ereport_domain'
     errfinish rest; \
               ^
 ../libpgcommon/lwgeom_pg.h:42:25: note: in expansion of macro 'ereport'
                          ereport(NOTICE, (errmsg_internal("[%s:%s:%d] "
 msg, __FILE__, __func__, __LINE__, __VA_ARGS__))); \
                          ^
 geography_measurement_trees.c:88:2: note: in expansion of macro
 'POSTGIS_DEBUGF'
   POSTGIS_DEBUGF(3, "tree1_type=%d, lwgeom2->type=%d", tree1_type,
 lwgeom2->type);
   ^
 geography_measurement_trees.c:88:67: note: each undeclared identifier is
 reported only once for each function it appears in
   POSTGIS_DEBUGF(3, "tree1_type=%d, lwgeom2->type=%d", tree1_type,
 lwgeom2->type);
                                                                    ^
 c:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/include/server/utils/elog.h:117:14:
 note: in definition of macro 'ereport_domain'
     errfinish rest; \
               ^
 ../libpgcommon/lwgeom_pg.h:42:25: note: in expansion of macro 'ereport'
                          ereport(NOTICE, (errmsg_internal("[%s:%s:%d] "
 msg, __FILE__, __func__, __LINE__, __VA_ARGS__))); \
                          ^
 geography_measurement_trees.c:88:2: note: in expansion of macro
 'POSTGIS_DEBUGF'
   POSTGIS_DEBUGF(3, "tree1_type=%d, lwgeom2->type=%d", tree1_type,
 lwgeom2->type);
   ^
 <builtin>: recipe for target `geography_measurement_trees.o' failed
 make[1]: *** [geography_measurement_trees.o] Error 1
 make[1]: Leaving directory `/projects/postgis/branches/2.1/postgis'
 GNUmakefile:14: recipe for target `all' failed
 make: *** [all] Error 1

 }}}

 This used to work a while back when I was trying to poke at the geography
 tree issues we were having

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2650>
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