Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#192 closed defect (fixed)

Broken configuration of regression tests

Reported by: mloskot Owned by: pramsey
Priority: critical Milestone:
Component: postgis Version:
Keywords: Cc:

Description

Something has got broken recently and PostGIS tests no longer run and pass on my Ubuntu 9.04 machine. Presumely, it's broken configuration of regression tests.

Everything worked well last week. Today I updated my copy of the trunk to r4132 and tests do not pass:

  • Bootstrap:
$ ./autogen.sh
* Running /usr/bin/libtoolize (2.2.6)
	OPTIONS = --force --copy --install
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `macros'.
libtoolize: copying file `macros/libtool.m4'
libtoolize: copying file `macros/ltoptions.m4'
libtoolize: copying file `macros/ltsugar.m4'
libtoolize: copying file `macros/ltversion.m4'
libtoolize: copying file `macros/lt~obsolete.m4'
libtoolize: Consider adding `-I macros' to ACLOCAL_AMFLAGS in Makefile.am.
* Running /usr/bin/aclocal (1.10.2)
* Running /usr/bin/autoconf (2.63)
======================================
Now you are ready to run './configure'
======================================
  • Configure
./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if g++ supports -Wall... yes
checking if g++ supports -Wmissing-prototypes... yes
checking for flex... no
checking for lex... no
checking for bison... no
checking for byacc... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for convert... no
configure: WARNING: ImageMagick does not seem to be installed. Documentation cannot be built
checking for xsltproc... /usr/bin/xsltproc
checking for dblatex... no
configure: WARNING: dblatex is not installed so PDF documentation cannot be built
configure: WARNING: could not locate Docbook stylesheets required to build the documentation
checking CUnit/CUnit.h usability... yes
checking CUnit/CUnit.h presence... yes
checking for CUnit/CUnit.h... yes
checking for CU_initialize_registry in -lcunit... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for libiconv_open in -liconv... no
checking for iconv_open in -lc... yes
checking for pg_config... /usr/bin/pg_config
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking for PQserverVersion in -lpq... yes
checking for geos-config... /usr/local/bin/geos-config
checking geos_c.h usability... yes
checking geos_c.h presence... yes
checking for geos_c.h... yes
checking for initGEOS in -lgeos_c... yes
checking proj_api.h usability... yes
checking proj_api.h presence... yes
checking for proj_api.h... yes
checking for pj_get_release in -lproj... yes
configure: creating ./config.status
config.status: creating liblwgeom/Makefile
config.status: creating liblwgeom/cunit/Makefile
config.status: creating postgis/Makefile
config.status: creating postgis/sqldefines.h
config.status: creating loader/Makefile
config.status: creating topology/Makefile
config.status: creating regress/Makefile
config.status: creating doc/Makefile
config.status: creating doc/html/image_src/Makefile
config.status: creating postgis_config.h
config.status: executing libtool commands

  PostGIS is now configured for i686-pc-linux-gnu

 -------------- Compiler Info ------------- 
  C compiler:           gcc -g -O2
  C++ compiler:         g++ -g -O2

 -------------- Dependencies -------------- 
  GEOS config:          /usr/local/bin/geos-config
  GEOS version:         3.1
  PostgreSQL config:    /usr/bin/pg_config
  PostgreSQL version:   8.3
  PROJ4 version:        46
  PostGIS debug level:  0

 -------- Documentation Generation -------- 
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:     
  dblatex:              
  convert:              
  • Clean
/usr/bin/make -C liblwgeom clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
rm -f measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o lwcircstring.o lwcompound.o lwcurvepoly.o lwmcurve.o lwmsurface.o lwutil.o lwalgorithm.o lwgunparse.o lwgparse.o lwsegmentize.o wktparse.tab.o lex.yy.o vsprintf.o	 
rm -f liblwgeom.a 
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
/usr/bin/make -C postgis clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
rm -f libpostgis-1.4.a
rm -f libpostgis-1.4.so libpostgis-1.4.so.0 libpostgis-1.4.so.0.0
rm -f postgis.sql postgis_upgrade.sql
rm -f lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o
rm -f postgis.sql.in
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
/usr/bin/make -C loader clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/loader'
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/loader'
/usr/bin/make -C doc clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/doc'
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/doc'
/usr/bin/make -C regress clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/regress'
rm -f postgis.sql 
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/regress'
rm -f postgis.sql postgis_upgrade.sql
  • Build
/usr/bin/make -C liblwgeom 
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o measures.o measures.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o box2d.o box2d.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o ptarray.o ptarray.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwgeom_api.o lwgeom_api.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwgeom.o lwgeom.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwpoint.o lwpoint.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwline.o lwline.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwpoly.o lwpoly.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwmpoint.o lwmpoint.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwmline.o lwmline.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwmpoly.o lwmpoly.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwcollection.o lwcollection.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwcircstring.o lwcircstring.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwcompound.o lwcompound.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwcurvepoly.o lwcurvepoly.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwmcurve.o lwmcurve.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwmsurface.o lwmsurface.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwutil.o lwutil.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwalgorithm.o lwalgorithm.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwgunparse.o lwgunparse.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwgparse.o lwgparse.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwsegmentize.o lwsegmentize.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o wktparse.tab.o wktparse.tab.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lex.yy.o lex.yy.c
lex.yy.c:4126: warning: ‘yyunput’ defined but not used
lex.yy.c:4169: warning: ‘input’ defined but not used
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o vsprintf.o vsprintf.c
ar rs liblwgeom.a measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o lwcircstring.o lwcompound.o lwcurvepoly.o lwmcurve.o lwmsurface.o lwutil.o lwalgorithm.o lwgunparse.o lwgparse.o lwsegmentize.o wktparse.tab.o lex.yy.o vsprintf.o	 	
ar: creating liblwgeom.a
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
/usr/bin/make -C postgis 
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
cc -E -traditional-cpp postgis.sql.in.c | grep -v '^#' > postgis.sql.in
sed 's,MODULE_PATHNAME,$libdir/postgis-1.4,g' postgis.sql.in >postgis.sql
"/usr/bin/perl" ../utils/postgis_proc_upgrade.pl postgis.sql > postgis_upgrade.sql
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_pg.o lwgeom_pg.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_debug.o lwgeom_debug.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_accum.o lwgeom_accum.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_spheroid.o lwgeom_spheroid.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_ogc.o lwgeom_ogc.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_functions_analytic.o lwgeom_functions_analytic.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_inout.o lwgeom_inout.c
lwgeom_inout.c: In function ‘elog_ERROR’:
lwgeom_inout.c:462: warning: format not a string literal and no format arguments
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_estimate.o lwgeom_estimate.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_functions_basic.o lwgeom_functions_basic.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_gist.o lwgeom_gist.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_btree.o lwgeom_btree.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_transform.o lwgeom_transform.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_box.o lwgeom_box.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_box3d.o lwgeom_box3d.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_box2dfloat4.o lwgeom_box2dfloat4.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_chip.o lwgeom_chip.c
lwgeom_chip.c: In function ‘CHIP_in’:
lwgeom_chip.c:171: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘unsigned int’
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_geos.o lwgeom_geos.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_geos_prepared.o lwgeom_geos_prepared.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_svg.o lwgeom_svg.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_gml.o lwgeom_gml.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_kml.o lwgeom_kml.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_geojson.o lwgeom_geojson.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_triggers.o lwgeom_triggers.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_dump.o lwgeom_dump.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_functions_lrs.o lwgeom_functions_lrs.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o long_xact.o long_xact.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_sqlmm.o lwgeom_sqlmm.c
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/include  -I../liblwgeom -I. -I/usr/include/postgresql/8.3/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o lwgeom_rtree.o lwgeom_rtree.c
ar crs libpostgis-1.4.a lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o
ranlib libpostgis-1.4.a
cc -g -O2 -g -Wall -O2 -fPIC -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -shared -Wl,-soname,libpostgis-1.4.so.0   lwgeom_pg.o lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o -L/usr/local/lib -L/usr/lib -lgeos_c -lproj ../liblwgeom/liblwgeom.a -o libpostgis-1.4.so.0.0
rm -f libpostgis-1.4.so.0
ln -s libpostgis-1.4.so.0.0 libpostgis-1.4.so.0
rm -f libpostgis-1.4.so
ln -s libpostgis-1.4.so.0.0 libpostgis-1.4.so
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
/usr/bin/make -C loader
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/loader'
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes   -c -o shpopen.o shpopen.c
shpopen.c: In function ‘SHPOpen’:
shpopen.c:455: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
shpopen.c:465: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
shpopen.c:544: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
shpopen.c: In function ‘SHPReadObject’:
shpopen.c:1325: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes   -c -o dbfopen.o dbfopen.c
dbfopen.c: In function ‘DBFUpdateHeader’:
dbfopen.c:337: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
dbfopen.c: In function ‘DBFClose’:
dbfopen.c:519: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
dbfopen.c: In function ‘DBFWriteAttribute’:
dbfopen.c:1112: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
dbfopen.c: In function ‘DBFWriteAttributeDirectly’:
dbfopen.c:1281: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
dbfopen.c: In function ‘DBFWriteTuple’:
dbfopen.c:1427: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
dbfopen.c: In function ‘DBFReadTuple’:
dbfopen.c:1471: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes   -c -o getopt.o getopt.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes   -c -o shp2pgsql.o shp2pgsql.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes shpopen.o dbfopen.o getopt.o shp2pgsql.o ../liblwgeom/liblwgeom.a -lc -lm -o shp2pgsql 
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes -I/usr/include/postgresql -c pgsql2shp.c
gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes shpopen.o dbfopen.o getopt.o pgsql2shp.o ../liblwgeom/liblwgeom.a -lc -L/usr/lib -lpq -lm -o pgsql2shp 
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/loader'
/usr/bin/make -C utils
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/utils'
chmod +x postgis_restore.pl create_undef.pl postgis_proc_upgrade.pl profile_intersects.pl test_estimation.pl test_joinestimation.pl
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/utils'
PostGIS was built successfully. Ready to install.
  • Build comments
/usr/bin/make -C doc comments
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/doc'
/usr/bin/xsltproc ./xsl/postgis_comments.sql.xsl reference.xml > postgis_comments.sql
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/doc'
  • Test
/usr/bin/make -C liblwgeom 
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
/usr/bin/make -C postgis 
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
/usr/bin/make -C liblwgeom/cunit check
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom/cunit'
gcc -o cu_tester cu_tester.o cu_algorithm.o cu_measures.o ../liblwgeom.a -lm -lcunit


     CUnit - A Unit testing framework for C - Version 2.1-0
     http://cunit.sourceforge.net/


Suite: PostGIS Computational Geometry Suite
  Test: test_lw_segment_side() ... passed
  Test: test_lw_segment_intersects() ... passed
  Test: test_lwline_crossing_short_lines() ... passed
  Test: test_lwline_crossing_long_lines() ... passed
  Test: test_lwpoint_set_ordinate() ... passed
  Test: test_lwpoint_get_ordinate() ... passed
  Test: test_lwpoint_interpolate() ... passed
  Test: test_lwline_clip() ... passed
  Test: test_lwline_clip_big() ... passed
  Test: test_lwmline_clip() ... passed
  Test: test_geohash_point() ... passed
  Test: test_geohash_precision() ... passed
  Test: test_geohash() ... passed
Suite: PostGIS Measures Suite
  Test: test_mindistance2d_recursive_tolerance() ... passed

--Run Summary: Type      Total     Ran  Passed  Failed
               suites        2       2     n/a       0
               tests        14      14      14       0
               asserts      84      84      84       0
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom/cunit'
/usr/bin/make -C regress check
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/regress'
/usr/bin/make -C ../postgis
make[2]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
ERROR:  function postgis_lib_version() does not exist
LINE 1: select postgis_lib_version()
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
cp ../postgis/postgis.sql .
Creating spatial db postgis_reg    Something went wrong (no postgis installed in postgis_reg).  For details, check /tmp/pgis_reg_25425/regress_log
/bin/sh: Syntax error: "(" unexpected
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/regress'
make: *** [check] Error 2

Inspecting regress_log

cat /tmp/pgis_reg_25425/regress_log 
postgis.sql: No such file or directory

Attachments (1)

postgis-r4130-rebuild-log.txt (32.8 KB) - added by mloskot 12 years ago.
The problem can be fixed by reverting to r4130. This is a log file with all steps of complete rebuild and tests run.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by mloskot

Trying to debug it, I found that it can be fixed with the following sequence of commands:

$ svn-clean
$ rm install-sh
$ svn up
Restored 'install-sh'
At revision 4132.

Feel free to close the ticket with proper resolution status.

comment:2 Changed 12 years ago by mloskot

Grrr, sorry for messing it up. It still does NOT work! Previously, I missed the unit tests actually did not run:

Database postgis_reg already exist.
Run with the --nocreate flag to use it  or drop it and try again.
cp ../postgis/postgis.sql .

So, the problem still exists.

Changed 12 years ago by mloskot

The problem can be fixed by reverting to r4130. This is a log file with all steps of complete rebuild and tests run.

comment:3 Changed 12 years ago by robe

Okay I looked at this and get the same error. There appear to be two problems here one is in regress/run_test and the other I believe is in regress/Makefile.in.

Both introduced in r4131

Problem 1: It appears to be the change introduced in regress/run_test at r4131. I'm not sure what that section does so don't want to mess with it. So if I revert run_test, I get passed that. postgis_lib_version();

Though the tests go thru, I then get a syntax error.

Problem 2: Is it my imagination that check is running twice now? I'm running PostgreSQL 8.2 on OpenSUSE. Anyrate -- check goes thru and fails with 11 out of 42 tests. I suspect the fail is because of a typo introduced somewhere or a missing ; in the generated SQL. I'm guessing

$(shell USE_VERSION=$(POSTGIS_PGSQL_VERSION) USE_PATH=$(PGSQL_BINDIR) ./run_test $(TESTS))

is the culprit but then again I have no clue what that is saying.

at first I thought it was maybe r4040 but taking that out did not fix things -- Note to PSC : Kevin I see you put in a cryptic IF check to support PostgreSQL 8.1 users. I think we decided for 1.4 we are NOT going to support PostgreSQL 8.1 users so the DROP IF EXISTS you suggested would be more legible. version 1.3 will be the last version to support 8.1 users. Though that is vaguely fuzzy in my head so maybe I was the only one in that conversation. Perhaps we should make that official somewhere if we can all agree on that..

comment:4 Changed 12 years ago by robe

Forgot to mention the output I get after reverting the run_test is below: Note it seems to run twice and I get and error /bin/sh: -c: line 0: syntax error near unexpected token `(' Between the runs.

make -C ../postgis make[1]: Entering directory `/projects/postgis-1.4SVN/postgis' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/projects/postgis-1.4SVN/postgis' cp ../postgis/postgis.sql . Creating spatial db postgis_reg TMPDIR is /tmp/pgis_reg_30651 PostgreSQL 8.2.6 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux) Postgis 1.4.0SVN - 2009-06-04 11:55:16 GEOS: 3.1.0-CAPI-1.5.0 PROJ: Rel. 4.6.0, 21 Dec 2007 Running tests loader/Point.............. ok loader/PointM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/PointZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/MultiPoint.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/MultiPointM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/MultiPointZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/Arc.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/ArcM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/ArcZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/Polygon.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/PolygonM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/PolygonZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) regress. ok regress_index. ok regress_index_nulls. ok lwgeom_regress. ok regress_lrs. ok removepoint. ok setpoint. ok simplify. ok snaptogrid. ok affine. ok wkt. ok measures. ok long_xact. ok ctors. ok sql-mm-serialize. ok sql-mm-circularstring. ok sql-mm-compoundcurve. ok sql-mm-curvepoly. ok sql-mm-general. ok sql-mm-multicurve. ok sql-mm-multisurface. ok geojson. ok gml. ok svg. ok kml. ok regress_ogc. ok regress_bdpoly. ok regress_proj. ok regress_ogc_cover. ok regress_ogc_prep. ok Run tests: 42 Failed: 11 /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `Creating spatial db postgis_reg TMPDIR is /tmp/pgis_reg_30651 PostgreSQL 8.2.6 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux) Postgis 1.4.0SVN - 2009-06-04 11:55:16 GEOS: 3.1.0-CAPI-1.5.0 PROJ: Rel. 4.6.0, 21 Dec 2007 Running tests loader/Point.............. ok loader/PointM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/PointZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/MultiPoint.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/MultiPointM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/MultiPointZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/Arc.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/ArcM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/ArcZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/Polygon.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/PolygonM.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) loader/PolygonZ.. failed (sourcing shp2pgsql output: /tmp/pgis_reg_30651/loader.err) regress. ok regress_index. ok regress_index_nulls. ok lwgeom_regress. ok regress_lrs. ok removepoint. ok setpoint. ok simplify. ok snaptogrid. ok affine. ok wkt. ok measures. ok long_xact. ok ctors. ok sql-mm-serialize. ok sql-mm-circularstring. ok sql-mm-compoundcurve. ok sql-mm-curvepoly. ok sql-mm-general. ok sql-mm-multicurve. ok sql-mm-multisurface. ok geojson. ok gml. ok svg. ok kml. ok regress_ogc. ok regress_bdpoly. ok regress_proj. ok regress_ogc_cover. ok regress_ogc_prep. ok Run tests: 42 Failed: 11' make: * [check] Error 2

comment:5 Changed 12 years ago by pramsey

Resolution: fixed
Status: newclosed

Fix at r4143. Incidentally, we have an assumption that bash is the shell built into the Makefile.

comment:6 Changed 12 years ago by robe

Paul you are becoming dyslexic in your old age -- its fixed at r4134

Okay that seems to work. Though I had to completely blow out my SVN to get it to work. Not sure why. (deleting my regress folder and svn up and make clean was not enough). Probably just my machine.

comment:7 Changed 12 years ago by mloskot

Summary: Broken configuration of regression tests

Continuation of related issues as ticket #219

comment:8 Changed 12 years ago by mloskot

Summary: Broken configuration of regression tests

Restoring accidentally removed summary text

Note: See TracTickets for help on using tickets.