[postgis-tickets] [PostGIS] #2727: Can't compile with --enable-debug anymore get error in pgsql2shp

PostGIS trac at osgeo.org
Tue May 6 22:19:57 PDT 2014


#2727: Can't compile with --enable-debug anymore get error in pgsql2shp
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.1.3
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 For 2.1 branch, when I try compiling with

 --enable-debug

 I get this error:


 {{{
 safileio.c:75:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
  #       pragma comment(lib, "kernel32.lib")
  ^
 safileio.c:220:16: warning: no previous prototype for 'Utf8ToWideChar'
 [-Wmissing-prototypes]
  const wchar_t* Utf8ToWideChar( const char *pszFilename )
                 ^
 safileio.c:248:8: warning: no previous prototype for 'SAUtf8WFOpen'
 [-Wmissing-prototypes]
  SAFile SAUtf8WFOpen( const char *pszFilename, const char *pszAccess )
         ^
 safileio.c:267:5: warning: no previous prototype for 'SAUtf8WRemove'
 [-Wmissing-prototypes]
  int SAUtf8WRemove( const char *pszFilename )
      ^
 x86_64-w64-mingw32-gcc -I ../liblwgeom -g -O2  -DDLL_EXPORT -DPIC  -Wall
 -Wmissing-prototypes -I/projects/proj/rel-4.8.0w64gcc48/inc
 x86_64-w64-mingw32-gcc -I ../liblwgeom -g -O2  -DDLL_EXPORT -DPIC  -Wall
 -Wmissing-prototypes -I/projects/proj/rel-4.8.0w64gcc48/inc
 /include/internal -I./src/include/port/win32 -DEXEC_BACKEND
 "-Ic:/MING64~1/projects/POSTGR~1/rel/PG9~1.3W6/lib/pgxs/src/MAKEFI~1/..
 /bin/sh ../libtool --mode=link \
   x86_64-w64-mingw32-gcc -I ../liblwgeom -g -O2  -DDLL_EXPORT -DPIC  -Wall
 -Wmissing-prototypes -I/projects/proj/rel-4.8.0w64gcc48/i
 o shp2pgsql.exe  -L/projects/rel-libiconv-1.13.1w64gcc48/lib -liconv
 libtool: link: warning: library `/projects/rel-
 libiconv-1.13.1w64gcc48/lib/libiconv.la' was moved.
 libtool: link: warning: library `/projects/rel-
 libiconv-1.13.1w64gcc48/lib/libiconv.la' was moved.
 libtool: link: x86_64-w64-mingw32-gcc -I ../liblwgeom -g -O2 -DDLL_EXPORT
 -DPIC -Wall -Wmissing-prototypes -I/projects/proj/rel-4.8.
 l.exe  ../liblwgeom/.libs/liblwgeom.a
 -L/projects/postgresql/rel/pg9.3w64gcc48/lib
 -L/projects/gdal/rel-1.10.0w64gcc48/lib -L/projec
 cts/proj/rel-4.8.0w64gcc48/lib/libproj.dll.a
 /projects/json-c/rel-0.10w64gcc48/lib/libjson.a /projects/rel-
 libiconv-1.13.1w64gcc48/l
 x86_64-w64-mingw32-gcc -I ../liblwgeom -g -O2  -DDLL_EXPORT -DPIC  -Wall
 -Wmissing-prototypes -I/projects/proj/rel-4.8.0w64gcc48/inc
 In file included from pgsql2shp-core.c:39:0:
 pgsql2shp-core.c: In function 'projFileCreate':
 pgsql2shp-core.c:837:55: error: 'result' undeclared (first use in this
 function)
      LWDEBUGF(3, "\n result %d proj SRText is %s .\n", result, srtext);
                                                        ^
 ../liblwgeom/lwgeom_log.h:43:47: note: in definition of macro 'LWDEBUGF'
                  __FILE__, __func__, __LINE__, __VA_ARGS__); \
                                                ^
 pgsql2shp-core.c:837:55: note: each undeclared identifier is reported only
 once for each function it appears in
      LWDEBUGF(3, "\n result %d proj SRText is %s .\n", result, srtext);
                                                        ^
 ../liblwgeom/lwgeom_log.h:43:47: note: in definition of macro 'LWDEBUGF'
                  __FILE__, __func__, __LINE__, __VA_ARGS__); \
                                                ^
 Makefile:93: recipe for target `pgsql2shp-core.o' failedmake[1]:
 *** [pgsql2shp-core.o] Error 1
 make[1]: Leaving directory `/projects/postgis/branches/2.1/loader'
 GNUmakefile:14: recipe for target `all' failedmake:
 *** [all] Error 1
 }}}

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