[postgis-devel] configure error while building WKTRaster on Ubuntu8.10

Mateusz Loskot Mateusz.Loskot at cadcorp.com
Tue Mar 3 08:02:53 PST 2009


Tyler wrote:
> I'm running into some problems building WKTRaster on my local machine
> (running Ubuntu 8.10).  The first issue was that the configure step
> failed when it could not find ./ltmain.sh.  Manually adding a ltmain.sh
> file (provided by strk) allowed me to get past the configure step,

Tyler,

You can generate necessary files by running these two commands before ./configure

$ ./autogen.sh
$ libtoolize

> but I then encounter errors during make.  Because  I don't know whether the
> errors are related to the custom ltmain.sh or something else, I'd like
> to determine how to run the configure step without needing to manually
> add the ltmain.sh file.

There is no way to investigate it unless you sent complete errors dump here.

> So my specific question is:
> (1) Why would my build look for ltmain.sh (since strk indicated that
> the build script doesn't use libtool) ?

Sandro, so what is the libtool stuff checked for, in configure.ac?


Tyler, I just rebuild WKTRaster from SVN, on Ubuntu 8.10, and below you can find
complete dump of all commnands I used. See 3rd step for all configure & build commands
given in one shot.


mloskot at ubuntu-vm:~/dev/postgis/_svn/spike/wktraster$ uname -a
Linux ubuntu-vm 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686 GNU/Linux
 
mloskot at ubuntu-vm:~/dev/postgis/_svn/spike/wktraster$ svn up
At revision 3787.
 
mloskot at ubuntu-vm:~/dev/postgis/_svn/spike/wktraster$ ./autogen.sh && libtoolize && ./configure --with-postgis-sources=/home/mloskot/dev/postgis/_svn/trunk && make clean && make && make check
libtoolize: Consider adding `-I macros' to ACLOCAL_AMFLAGS in Makefile.am.
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 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... (cached) yes
checking for flex... no
checking for lex... no
checking for bison... no
checking for byacc... no
checking for xsltproc... /usr/bin/xsltproc
checking for db2pdf... no
configure: WARNING: db2pdf is not installed so PDF documentation cannot be built
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 for low-level RASTER API debug mode... disabled
checking for PostGIS RASTER activity debug mode... disabled
checking for PostGIS RASTER memory activity debug mode... disabled
checking CUnit/CUnit.h usability... no
checking CUnit/CUnit.h presence... no
checking for CUnit/CUnit.h... no
configure: WARNING: could not locate CUnit required for liblwgeom unit tests
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
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
configure: creating ./config.status
config.status: creating rt_core/Makefile
config.status: creating rt_pg/Makefile
config.status: creating rt_pg/test/Makefile
config.status: creating wktraster_config.h
config.status: executing libtool commands
/usr/bin/make -C rt_core clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_core'
rm -f testapi testwkb rt_api.o 
rm -f librtcore.a 
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_core'
/usr/bin/make -C rt_pg clean
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_pg'
rm -f librtpostgis.a
rm -f librtpostgis.so librtpostgis.so.0 librtpostgis.so.0.0
rm -f rtpostgis.sql
rm -f rt_pg.o
rm -f rtpostgis.sql.in rtpostgis.sql
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_pg'
/usr/bin/make -C rt_core
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_core'
cc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -I/home/mloskot/dev/postgis/_svn/trunk/liblwgeom    -c -o rt_api.o rt_api.c
rt_api.c: In function ‘write_float64’:
rt_api.c:1373: warning: integer constant is too large for ‘long’ type
rt_api.c:1374: warning: integer constant is too large for ‘long’ type
rt_api.c:1375: warning: integer constant is too large for ‘long’ type
rt_api.c:1376: warning: integer constant is too large for ‘long’ type
rt_api.c:1384: warning: integer constant is too large for ‘long’ type
rt_api.c:1385: warning: integer constant is too large for ‘long’ type
rt_api.c:1386: warning: integer constant is too large for ‘long’ type
rt_api.c:1387: warning: integer constant is too large for ‘long’ type
rt_api.c: In function ‘rt_raster_serialize’:
rt_api.c:2141: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’
rt_api.c:2143: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’
rt_api.c:2180: warning: cast from pointer to integer of different size
rt_api.c:2240: warning: cast from pointer to integer of different size
rt_api.c:2262: warning: cast from pointer to integer of different size
rt_api.c:2267: warning: cast from pointer to integer of different size
rt_api.c: In function ‘rt_raster_deserialize’:
rt_api.c:2412: warning: cast from pointer to integer of different size
rt_api.c:2434: warning: cast from pointer to integer of different size
rt_api.c:2437: warning: cast from pointer to integer of different size
rt_api.c: At top level:
rt_api.c:1152: warning: ‘write_uint8’ defined but not used
rt_api.c:1164: warning: ‘write_int8’ defined but not used
rt_api.c:1211: warning: ‘write_int16’ defined but not used
rt_api.c:1278: warning: ‘write_int32’ defined but not used
rt_api.c:1311: warning: ‘write_float32’ defined but not used
rt_api.c:1359: warning: ‘write_float64’ defined but not used
ar rs librtcore.a rt_api.o 
ar: creating librtcore.a
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_core'
/usr/bin/make -C rt_pg
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_pg'
cc -E -traditional-cpp rtpostgis.sql.in.c | grep -v '^#' > rtpostgis.sql.in
sed 's,MODULE_PATHNAME,$libdir/rtpostgis,g' rtpostgis.sql.in >rtpostgis.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/home/mloskot/dev/postgis/_svn/trunk/liblwgeom -I../rt_core -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 rt_pg.o rt_pg.c
In file included from rt_pg.c:42:
../wktraster_config.h:45:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from /usr/include/postgresql/8.3/server/c.h:53,
                 from /usr/include/postgresql/8.3/server/postgres.h:48,
                 from rt_pg.c:30:
/usr/include/postgresql/8.3/server/pg_config.h:606:1: warning: this is the location of the previous definition
In file included from rt_pg.c:42:
../wktraster_config.h:48:1: warning: "PACKAGE_NAME" redefined
In file included from /usr/include/postgresql/8.3/server/c.h:53,
                 from /usr/include/postgresql/8.3/server/postgres.h:48,
                 from rt_pg.c:30:
/usr/include/postgresql/8.3/server/pg_config.h:609:1: warning: this is the location of the previous definition
In file included from rt_pg.c:42:
../wktraster_config.h:51:1: warning: "PACKAGE_STRING" redefined
In file included from /usr/include/postgresql/8.3/server/c.h:53,
                 from /usr/include/postgresql/8.3/server/postgres.h:48,
                 from rt_pg.c:30:
/usr/include/postgresql/8.3/server/pg_config.h:612:1: warning: this is the location of the previous definition
In file included from rt_pg.c:42:
../wktraster_config.h:54:1: warning: "PACKAGE_TARNAME" redefined
In file included from /usr/include/postgresql/8.3/server/c.h:53,
                 from /usr/include/postgresql/8.3/server/postgres.h:48,
                 from rt_pg.c:30:
/usr/include/postgresql/8.3/server/pg_config.h:615:1: warning: this is the location of the previous definition
In file included from rt_pg.c:42:
../wktraster_config.h:57:1: warning: "PACKAGE_VERSION" redefined
In file included from /usr/include/postgresql/8.3/server/c.h:53,
                 from /usr/include/postgresql/8.3/server/postgres.h:48,
                 from rt_pg.c:30:
/usr/include/postgresql/8.3/server/pg_config.h:618:1: warning: this is the location of the previous definition
rt_pg.c: In function ‘RASTER_getPixelValue’:
rt_pg.c:989: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘char * (*)(const char *, int)’
rt_pg.c:960: warning: unused variable ‘height’
rt_pg.c:959: warning: unused variable ‘width’
ar crs librtpostgis.a rt_pg.o
ranlib librtpostgis.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,librtpostgis.so.0   rt_pg.o  -L/usr/lib -lgeos_c -lproj ../rt_core/librtcore.a /home/mloskot/dev/postgis/_svn/trunk/liblwgeom/liblwgeom.a -o librtpostgis.so.0.0
rm -f librtpostgis.so.0
ln -s librtpostgis.so.0.0 librtpostgis.so.0
rm -f librtpostgis.so
ln -s librtpostgis.so.0.0 librtpostgis.so
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_pg'
/usr/bin/make -C rt_pg rtpostgis.sql
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_pg'
make[1]: `rtpostgis.sql' is up to date.
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_pg'
/usr/bin/make -C rt_core check
make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_core'
cc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -I/home/mloskot/dev/postgis/_svn/trunk/liblwgeom  -o testapi testapi.c rt_api.c -lm /home/mloskot/dev/postgis/_svn/trunk/liblwgeom/liblwgeom.a 
testapi.c: In function ‘testBand32BUI’:
testapi.c:576: warning: this decimal constant is unsigned only in ISO C90
testapi.c:579: warning: this decimal constant is unsigned only in ISO C90
testapi.c:582: warning: integer constant is too large for ‘long’ type
testapi.c:586: warning: integer constant is too large for ‘long’ type
testapi.c:591: warning: integer constant is too large for ‘long’ type
testapi.c:615: warning: this decimal constant is unsigned only in ISO C90
testapi.c:618: warning: this decimal constant is unsigned only in ISO C90
testapi.c: In function ‘testBand32BSI’:
testapi.c:651: warning: this decimal constant is unsigned only in ISO C90
testapi.c:656: warning: this decimal constant is unsigned only in ISO C90
rt_api.c: In function ‘write_float64’:
rt_api.c:1373: warning: integer constant is too large for ‘long’ type
rt_api.c:1374: warning: integer constant is too large for ‘long’ type
rt_api.c:1375: warning: integer constant is too large for ‘long’ type
rt_api.c:1376: warning: integer constant is too large for ‘long’ type
rt_api.c:1384: warning: integer constant is too large for ‘long’ type
rt_api.c:1385: warning: integer constant is too large for ‘long’ type
rt_api.c:1386: warning: integer constant is too large for ‘long’ type
rt_api.c:1387: warning: integer constant is too large for ‘long’ type
rt_api.c: In function ‘rt_raster_serialize’:
rt_api.c:2141: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’
rt_api.c:2143: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’
rt_api.c:2180: warning: cast from pointer to integer of different size
rt_api.c:2240: warning: cast from pointer to integer of different size
rt_api.c:2262: warning: cast from pointer to integer of different size
rt_api.c:2267: warning: cast from pointer to integer of different size
rt_api.c: In function ‘rt_raster_deserialize’:
rt_api.c:2412: warning: cast from pointer to integer of different size
rt_api.c:2434: warning: cast from pointer to integer of different size
rt_api.c:2437: warning: cast from pointer to integer of different size
rt_api.c: At top level:
rt_api.c:1152: warning: ‘write_uint8’ defined but not used
rt_api.c:1164: warning: ‘write_int8’ defined but not used
rt_api.c:1211: warning: ‘write_int16’ defined but not used
rt_api.c:1278: warning: ‘write_int32’ defined but not used
rt_api.c:1311: warning: ‘write_float32’ defined but not used
rt_api.c:1359: warning: ‘write_float64’ defined but not used
cc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes  -I/home/mloskot/dev/postgis/_svn/trunk/liblwgeom  -o testwkb testwkb.c rt_api.c -lm /home/mloskot/dev/postgis/_svn/trunk/liblwgeom/liblwgeom.a 
rt_api.c: In function ‘write_float64’:
rt_api.c:1373: warning: integer constant is too large for ‘long’ type
rt_api.c:1374: warning: integer constant is too large for ‘long’ type
rt_api.c:1375: warning: integer constant is too large for ‘long’ type
rt_api.c:1376: warning: integer constant is too large for ‘long’ type
rt_api.c:1384: warning: integer constant is too large for ‘long’ type
rt_api.c:1385: warning: integer constant is too large for ‘long’ type
rt_api.c:1386: warning: integer constant is too large for ‘long’ type
rt_api.c:1387: warning: integer constant is too large for ‘long’ type
rt_api.c: In function ‘rt_raster_serialize’:
rt_api.c:2141: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’
rt_api.c:2143: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’
rt_api.c:2180: warning: cast from pointer to integer of different size
rt_api.c:2240: warning: cast from pointer to integer of different size
rt_api.c:2262: warning: cast from pointer to integer of different size
rt_api.c:2267: warning: cast from pointer to integer of different size
rt_api.c: In function ‘rt_raster_deserialize’:
rt_api.c:2412: warning: cast from pointer to integer of different size
rt_api.c:2434: warning: cast from pointer to integer of different size
rt_api.c:2437: warning: cast from pointer to integer of different size
rt_api.c: At top level:
rt_api.c:1152: warning: ‘write_uint8’ defined but not used
rt_api.c:1164: warning: ‘write_int8’ defined but not used
rt_api.c:1211: warning: ‘write_int16’ defined but not used
rt_api.c:1278: warning: ‘write_int32’ defined but not used
rt_api.c:1311: warning: ‘write_float32’ defined but not used
rt_api.c:1359: warning: ‘write_float64’ defined but not used
./testapi
Raster starts with 0 bands
First point on envelope ring is 0,0
Second point on envelope ring is 256,0
Third point on envelope ring is 256,256
Fourth point on envelope ring is 0,256
Fifth point on envelope ring is 0,0
Testing 1BB band
WARNING: Nodata value for 1BB band got truncated from 2 to 0
WARNING: Nodata value for 1BB band got truncated from 3 to 1
WARNING: Pixel value for 1BB band got truncated from 2 to 0
WARNING: Pixel value for 1BB band got truncated from 3 to 0
Testing 2BB band
WARNING: Nodata value for 2BUI band got truncated from 4 to 0
WARNING: Nodata value for 2BUI band got truncated from 5 to 1
WARNING: Pixel value for 2BUI band got truncated from 4 to 0
WARNING: Pixel value for 2BUI band got truncated from 5 to 0
Testing 4BUI band
WARNING: Nodata value for 4BUI band got truncated from 16 to 0
WARNING: Nodata value for 4BUI band got truncated from 17 to 1
WARNING: Pixel value for 4BUI band got truncated from 35 to 0
Testing 8BUI band
WARNING: Nodata value for 8BUI band got truncated from 256 to 0
WARNING: Pixel value for 8BUI band got truncated from 256 to 0
Testing 8BSI band
WARNING: Nodata value for 8BSI band got truncated from -129 to 127
WARNING: Nodata value for 8BSI band got truncated from 129 to -127
WARNING: Pixel value for 8BSI band got truncated from -129 to 0
WARNING: Pixel value for 8BSI band got truncated from 129 to 0
Testing 16BSI band
WARNING: Nodata value for 16BSI band got truncated from -32769 to -32768
WARNING: Nodata value for 16BSI band got truncated from 32769 to -32768
WARNING: Pixel value for 16BSI band got truncated from -32769 to 0
WARNING: Pixel value for 16BSI band got truncated from 32769 to 0
ERROR: Coordinates ouf of range
Testing 16BUI band
WARNING: Nodata value for 16BUI band got truncated from 65536 to 0
WARNING: Pixel value for 16BUI band got truncated from 65536 to 0
ERROR: Coordinates ouf of range
Testing 32BUI band
WARNING: Nodata value for 32BUI band got truncated from 4.29497e+09 to 0
WARNING: Pixel value for 32BUI band got truncated from 4.29497e+09 to 0
ERROR: Coordinates ouf of range
Testing 32BSI band
WARNING: Nodata value for 32BSI band got truncated from 2.14748e+09 to -2.14748e+09
WARNING: Pixel value for 32BSI band got truncated from 2.14748e+09 to 0
ERROR: Coordinates ouf of range
Testing 16BF band
 16BF type not implemented yet
Testing 32BF band
Testing 64BF band
./testwkb
Serialized size with just header:64 - now adding size of 0 bands
sizeof(struct rt_raster_serialized_t):64
sizeof(struct rt_raster_t):68
serialized size:64
 in hexwkb len: 122
out hexwkb len: 122
 in hexwkb: 00000000003FF0000000000000400000000000000040080000000000004010000000000000401400000000000040180000000000000000000A00070008
out hexwkb: 0100000000000000000000F03F000000000000004000000000000008400000000000001040000000000000144000000000000018400A00000007000800
 in hexwkb len: 128
out hexwkb len: 128
 in hexwkb len: 138
out hexwkb len: 138
Serialized size with just header:64 - now adding size of 1 bands
Size before alignment is 72
Size after alignment is 80
sizeof(struct rt_raster_serialized_t):64
sizeof(struct rt_raster_t):68
serialized size:80
 in hexwkb len: 152
out hexwkb len: 152
 in hexwkb len: 152
out hexwkb len: 152
ext band path: /tmp/t.tif
ext band  num: 3
 in hexwkb len: 152
out hexwkb len: 152
Serialized size with just header:64 - now adding size of 1 bands
Size before alignment is 74
Size after alignment is 80
sizeof(struct rt_raster_serialized_t):64
sizeof(struct rt_raster_t):68
serialized size:80
All tests successful !
make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/spike/wktraster/rt_core'
 
Consider also running make post-install-check after installation
 
mloskot at ubuntu-vm:~/dev/postgis/_svn/spike/wktraster$


Best regards,
--
Mateusz Loskot
Senior Programmer, Cadcorp
http://www.cadcorp.com


More information about the postgis-devel mailing list