Opened 11 years ago
Closed 11 years ago
#2727 closed defect (fixed)
Can't compile with --enable-debug anymore get error in pgsql2shp
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.1.3 |
Component: | postgis | Version: | 2.1.x |
Keywords: | Cc: |
Description
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
Change History (3)
comment:1 by , 11 years ago
Owner: | changed from | to
---|
comment:2 by , 11 years ago
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
2.2 didn't have the same issue so backported changes from 2.2 at r12521
Note:
See TracTickets
for help on using tickets.
I got to compile at r12520 for postgis 2.1. Not sure if I did the right thing. I couldn't find result variable and didn't see srid or anything that could take its place.
Still need to chake if 2.2 suffers from same