[postgis-devel] Ready for 1.0.0 FINAL ?

strk at refractions.net strk at refractions.net
Thu Apr 14 09:37:57 PDT 2005


Thanks, I have the same warnings, it's newer GCC
being somewhat more pedantic.
Note that some are given for the code generated by flex/bison...

I'd like to remove the one on lwpostgis.sql production, but
removing the comments after #endif blocks would make management
harder.

--strk;

On Thu, Apr 14, 2005 at 07:35:24PM +0300, Devrim GUNDUZ wrote:
> 
> Hi,
> 
> On Thu, 14 Apr 2005 strk at refractions.net wrote:
> 
> <snip>
> 
> >I'd release FINAL early next week, does anyone have open issues ?
> 
> I'm relatively new to PostGIS. I hope these warnings haven't been reported 
> before:
> =================================================================
> g++ -O2 -Wall -Wmissing-prototypes -Wpointer-arith 
> -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels 
> -fno-strict-aliasing -g -O2 -fexceptions -fPIC -DUSE_VERSION=80 
> -DPOSTGIS_LIB_VERSION='"1.0.0RC6"' -DPOSTGIS_SCRIPTS_VERSION='"0.3.0"' 
> -DPOSTGIS_BUILD_DATE='"2005-04-14 16:25:12"' -I/usr//include -DUSE_GEOS 
> -I/usr/local/include -DUSE_PROJ  -I/usr/local/include -DAUTOCACHE_BBOX=1 
> -I/usr/src/redhat/BUILD/postgis-1.0.0-rc6/../../src/include -D_GNU_SOURCE 
> -c -o lwgeom_geos_wrapper.o lwgeom_geos_wrapper.cpp
> cc1plus: warning: command line option "-Wmissing-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> cc1plus: warning: command line option "-Wdeclaration-after-statement" is 
> valid for C/ObjC but not for C++
> cc1plus: warning: command line option "-Wold-style-definition" is valid 
> for C/ObjC but not for C++
> =================================================
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith 
> -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels 
> -fno-strict-aliasing -g -O2 -fexceptions -fPIC -DUSE_VERSION=80 
> -DPOSTGIS_LIB_VERSION='"1.0.0RC6"' -DPOSTGIS_SCRIPTS_VERSION='"0.3.0"' 
> -DPOSTGIS_BUILD_DATE='"2005-04-14 16:29:51"' -I/usr//include -DUSE_GEOS 
> -I/usr/local/include -DUSE_PROJ  -I/usr/local/include -DAUTOCACHE_BBOX=1 
> -DUSE_STATS -fpic 
> -I/usr/src/redhat/BUILD/postgis-1.0.0-rc6/../../src/include -D_GNU_SOURCE 
> -c -o lex.yy.o lex.yy.c
> wktparse.lex: In function `close_parser':
> wktparse.lex:21: warning: old-style parameter declaration
> lex.yy.c: In function `yy_get_next_buffer':
> lex.yy.c:2847: warning: old-style parameter declaration
> lex.yy.c: In function `yy_get_previous_state':
> lex.yy.c:2979: warning: old-style parameter declaration
> lex.yy.c: In function `input':
> lex.yy.c:3086: warning: old-style parameter declaration
> wktparse.lex: At top level:
> lex.yy.c:3044: warning: 'yyunput' defined but not used
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith 
> -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels 
> -fno-strict-aliasing -g -O2 -fexceptions -fPIC -DUSE_VERSION=80 
> -DPOSTGIS_LIB_VERSION='"1.0.0RC6"' -DPOSTGIS_SCRIPTS_VERSION='"0.3.0"' 
> -DPOSTGIS_BUILD_DATE='"2005-04-14 16:29:51"' -I/usr//include -DUSE_GEOS 
> -I/usr/local/include -DUSE_PROJ  -I/usr/local/include -DAUTOCACHE_BBOX=1 
> -DUSE_STATS -fpic 
> -I/usr/src/redhat/BUILD/postgis-1.0.0-rc6/../../src/include -D_GNU_SOURCE 
> -c -o vsprintf.o vsprintf.c
> vsprintf.c: In function `int_vasprintf':
> vsprintf.c:44: warning: old-style parameter declaration
> vsprintf.c: In function `vasprintf':
> vsprintf.c:134: warning: old-style parameter declaration
> ==================================================
> gcc -g -Wall -I.. -I. 
> -I/usr/src/redhat/BUILD/postgis-1.0.0-rc6/../../src/interfaces/libpq -O2 
> -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement 
> -Wold-style-definition -Wendif-labels -fno-strict-aliasing -DFRONTEND 
> -DSYSCONFDIR='"/usr/local/pgsql/etc"' -DUSE_VERSION=80 
> -I/usr/src/redhat/BUILD/postgis-1.0.0-rc6/../../src/include -D_GNU_SOURCE 
> -c -o getopt.o getopt.c
> getopt.c: In function `exchange':
> getopt.c:184: warning: old-style parameter declaration
> getopt.c: In function `_getopt_internal':
> getopt.c:274: warning: old-style parameter declaration
> getopt.c: In function `getopt':
> getopt.c:605: warning: old-style parameter declaration
> getopt.c: In function `getopt_long':
> getopt.c:619: warning: old-style parameter declaration
> ==================================================
> cpp -P -traditional-cpp -DUSE_VERSION=80 lwpostgis.sql.in | sed -e 
> 's:@MODULE_FILENAME@:\$libdir/postgis.so:g;s:@POSTGIS_VERSION@:1.0 
> USE_GEOS=1 USE_PROJ=1 
> USE_STATS=1:g;s:@POSTGIS_SCRIPTS_VERSION@:0.3.0:g;s/@POSTGIS_BUILD_DATE@/2005-04-14 
> 16:29:51/g' | grep -v '^#' > lwpostgis.sql
> lwpostgis.sql.in:24: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:32: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:149: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:401: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:799: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:833: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:1819: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:1885: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2072: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2153: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:2155: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2172: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:2178: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2218: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:2220: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2233: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:2239: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2538: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2647: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2742: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2847: warning: extra tokens at end of #else directive
> lwpostgis.sql.in:2887: warning: extra tokens at end of #endif directive
> lwpostgis.sql.in:2953: warning: extra tokens at end of #endif directive 
> ==================================================
> 
> This is RHEL 4 and:
> 
> [root at buildfarm SPECS]# gcc -v
> Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
> --infodir=/usr/share/info --enable-shared --enable-threads=posix 
> --disable-checking --with-system-zlib --enable-__cxa_atexit 
> --disable-libunwind-exceptions --enable-java-awt=gtk 
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
> 
> Anyway, these don't stop PostGIS from compiling.
> 
> Regards,
> --
> Devrim GUNDUZ
> TDMSoft Technical Manager
> Teknoloji Destek Merkezi - http://www.TDMSoft.com.tr
> Tel : +90.312.405.4016        Fax : +90.312.428.1902
> PGP Key: www.TDMSoft.com.tr/devrimgunduz-tdmsoft.asc
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list