[postgis-devel] Postgis 1.4RC1 compile error
Stefano Bonnin
stefano.bonnin at comai.to
Fri Jul 3 01:26:23 PDT 2009
I can't compile postgis 1.4rc1, when I try to compile it I receve an error.
OS: FreeBSD 5.3
Postgresql: 8.4
GEOS: 3.1.1
My compilation command is:
./configure --with-pgconfig=/usr/local/postgresql/8.4/bin/pg_config
--with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local
gmake
gmake install
Configure result is:
PostGIS is now configured for i386-unknown-freebsd5.3
-------------- 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/local/postgresql/8.4/bin/pg_config
PostgreSQL version: 8.4
PROJ4 version: 46
PostGIS debug level: 0
-------- Documentation Generation --------
xsltproc: /usr/local/bin/xsltproc
xsl style sheets:
dblatex:
convert:
The error is ....
---------------------------------------------------------------
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o lwgeom_geojson.o
lwgeom_geojson.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o lwgeom_triggers.o
lwgeom_triggers.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o lwgeom_dump.o
lwgeom_dump.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o
lwgeom_functions_lrs.o lwgeom_functions_lrs.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o long_xact.o long_xact.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o lwgeom_sqlmm.o
lwgeom_sqlmm.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local/include
-I../liblwgeom -I. -I/usr/local/postgresql/8.4/include/server
-I/usr/local/postgresql/8.4/include/internal -c -o lwgeom_rtree.o
lwgeom_rtree.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -fPIC -DPIC -shared 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/local/lib
-L/usr/local/postgresql/8.4/lib -lgeos_c -lproj ../liblwgeom/liblwgeom.a
-Wl,-R'/usr/local/postgresql/8.4/lib' -o postgis-1.4.so
gmake[1]: Leaving directory `/usr/src/smit/postgis-1.4.0rc1/postgis'
gmake -C loader
gmake[1]: Entering directory `/usr/src/smit/postgis-1.4.0rc1/loader'
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o shpopen.o
shpopen.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o dbfopen.o
dbfopen.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o getopt.o
getopt.c
getopt.c:618: warning: no previous prototype for 'pgis_getopt'
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o shp2pgsql.o
shp2pgsql.c
shp2pgsql.c: In function `ParseCmdline':
shp2pgsql.c:1366: warning: implicit declaration of function `pgis_getopt'
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes shpopen.o dbfopen.o
getopt.o shp2pgsql.o ../liblwgeom/liblwgeom.a -lm -o shp2pgsql
../liblwgeom/liblwgeom.a(vsprintf.o)(.text+0x1c): In function
`lw_vasprintf':
/usr/src/smit/postgis-1.4.0rc1/liblwgeom/vsprintf.c:150: undefined
reference to `__va_copy'
gmake[1]: *** [shp2pgsql] Error 1
gmake[1]: Leaving directory `/usr/src/smit/postgis-1.4.0rc1/loader'
gmake: *** [loaderdumper] Error 2
gmake -C liblwgeom
gmake[1]: Entering directory `/usr/src/smit/postgis-1.4.0rc1/liblwgeom'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/src/smit/postgis-1.4.0rc1/liblwgeom'
gmake -C postgis
gmake[1]: Entering directory `/usr/src/smit/postgis-1.4.0rc1/postgis'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/src/smit/postgis-1.4.0rc1/postgis'
gmake -C loader
gmake[1]: Entering directory `/usr/src/smit/postgis-1.4.0rc1/loader'
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes shpopen.o dbfopen.o
getopt.o shp2pgsql.o ../liblwgeom/liblwgeom.a -lm -o shp2pgsql
../liblwgeom/liblwgeom.a(vsprintf.o)(.text+0x1c): In function
`lw_vasprintf':
/usr/src/smit/postgis-1.4.0rc1/liblwgeom/vsprintf.c:150: undefined
reference to `__va_copy'
gmake[1]: *** [shp2pgsql] Error 1
gmake[1]: Leaving directory `/usr/src/smit/postgis-1.4.0rc1/loader'
gmake: *** [loaderdumper] Error 2
----------------------------------------------------------------------------
Thanks in advance.
--
Stefano Bonnin
Comai Torino S.r.l
Via Livorno 60, 10144 TORINO
Italia
http://www.comai.to
More information about the postgis-devel
mailing list