[postgis-devel] 1.5.0rc2 - FAST TURNAROUND

Greg Troxel gdt at ir.bbn.com
Tue Feb 2 05:27:24 PST 2010


  http://postgis.refractions.net/download/postgis-1.5.0rc2.tar.gz

I tried to build this on NetBSD 5.0 against Postgresql 8.4 (built from
pkgsrc) and had a number of problems.  (None of these seem new compared
to 1.4.1.)  pkgsrc has fixes for the first three issues for 1.4.1, and
with those fixes make check passes.  I tried both 'make' (traditional
BSD make), as documented, and also 'gmake' (GNU make), and got similar
results.

I can put my whole build area up for download if anyone wants to see it.

* There's a dependency on GNU make, or at least using make caused it to
  find and invoke GNU make, but this isn't listed in README.postgis.

* libxml2 is required but not listed in README.postgis (I see it in NEWS).      

* liblwgeom doesn't use the pgxs shared library mechanism.  libtool
  complained that it should not be linking a static library
  (liblwgeom.a) into libpostgis.so, and omitted it.  (The commands to
  build liblwgeom as objects that are ok in a shlib look nonportable,
  but not obviously problematic.)

libtool --mode=link cc -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -Wl,--as-needed -Wl,-R'/usr/pkg/lib'  -rpath /usr/pkg/lib -version-info 0:0 -o libpostgis-1.5.la lwgeom_pg.lo lwgeom_debug.lo lwgeom_accum.lo lwgeom_spheroid.lo lwgeom_ogc.lo lwgeom_functions_analytic.lo lwgeom_inout.lo lwgeom_estimate.lo lwgeom_functions_basic.lo lwgeom_gist.lo lwgeom_btree.lo lwgeom_transform.lo lwgeom_box.lo lwgeom_box3d.lo lwgeom_box2dfloat4.lo lwgeom_chip.lo lwgeom_geos.lo lwgeom_geos_prepared.lo lwgeom_export.lo lwgeom_svg.lo lwgeom_gml.lo lwgeom_kml.lo lwgeom_geojson.lo lwgeom_in_gml.lo lwgeom_in_kml.lo lwgeom_triggers.lo lwgeom_dump.lo lwgeom_functions_lrs.lo long_xact.lo lwgeom_sqlmm.lo lwgeom_rtree.lo geography_inout.lo geography_gist.lo geography_btree.lo geography_estimate.lo geography_measurement.lo -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lgeos_c -lproj -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -lz -lm ../liblwgeom/liblwgeom.a

*** Warning: Trying to link with static lib archive ../liblwgeom/liblwgeom.a.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.
libtool: link: cc -shared  .libs/lwgeom_pg.o .libs/lwgeom_debug.o .libs/lwgeom_accum.o .libs/lwgeom_spheroid.o .libs/lwgeom_ogc.o .libs/lwgeom_functions_analytic.o .libs/lwgeom_inout.o .libs/lwgeom_estimate.o .libs/lwgeom_functions_basic.o .libs/lwgeom_gist.o .libs/lwgeom_btree.o .libs/lwgeom_transform.o .libs/lwgeom_box.o .libs/lwgeom_box3d.o .libs/lwgeom_box2dfloat4.o .libs/lwgeom_chip.o .libs/lwgeom_geos.o .libs/lwgeom_geos_prepared.o .libs/lwgeom_export.o .libs/lwgeom_svg.o .libs/lwgeom_gml.o .libs/lwgeom_kml.o .libs/lwgeom_geojson.o .libs/lwgeom_in_gml.o .libs/lwgeom_in_kml.o .libs/lwgeom_triggers.o .libs/lwgeom_dump.o .libs/lwgeom_functions_lrs.o .libs/long_xact.o .libs/lwgeom_sqlmm.o .libs/lwgeom_rtree.o .libs/geography_inout.o .libs/geography_gist.o .libs/geography_btree.o .libs/geography_estimate.o .libs/geography_measurement.o   -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkg/lib -L/usr/pkg/lib -L/usr/lib /usr/pkg/lib/libgeos_c.so /usr/pkg/lib/libgeos.so /usr/pkg/lib/libproj.so /usr/pkg/lib/libxml2.so -lz -lm  -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Wl,--as-needed -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib   -Wl,-soname -Wl,libpostgis-1.5.so.0 -o .libs/libpostgis-1.5.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libpostgis-1.5.so.0" && ln -s "libpostgis-1.5.so.0.0.0" "libpostgis-1.5.so.0")
libtool: link: (cd ".libs" && rm -f "libpostgis-1.5.so" && ln -s "libpostgis-1.5.so.0.0.0" "libpostgis-1.5.so")
libtool: link: ar cru .libs/libpostgis-1.5.a ../liblwgeom/liblwgeom.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_export.o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_geojson.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o geography_inout.o geography_gist.o geography_btree.o geography_estimate.o geography_measurement.o
libtool: link: ranlib .libs/libpostgis-1.5.a
libtool: link: ( cd ".libs" && rm -f "libpostgis-1.5.la" && ln -s "../libpostgis-1.5.la" "libpostgis-1.5.la" )

* pgsql2shp link command didn't use the LDFLAGS passed into configure,
  leaving out rpath:

gcc -g -O2  -fPIC -DPIC  -Wall -Wmissing-prototypes shpopen.o dbfopen.o getopt.o pgsql2shp.o ../liblwgeom/liblwgeom.a -lc -L/usr/pkg/lib -lpq -lm -o pgsql2shp

resulting in

gdt 92 ~/POSTGIS/postgis-1.5.0rc2 > ./loader/pgsql2shp
Shared object "libpq.so.5" not found

* The path to the postgis module in postgis.sql doesn't match where it
  gets put.  I think this has something to do with the pgxs override
  from 8.5.

In postgis.sql built for regress:

-- Deprecation in 1.5.0
CREATE OR REPLACE FUNCTION st_spheroid_in(cstring)
        RETURNS spheroid
        AS '/usr/home/gdt/POSTGIS/postgis-1.5.0rc2/regress/00-regress-install/lib/postgis-1.5','ellipsoid_in'
        LANGUAGE 'C' IMMUTABLE STRICT;

but

-rw-r--r--  1 gdt  users  1169958 Feb  2 07:53 /usr/home/gdt/POSTGIS/postgis-1.5.0rc2/regress/00-regress-install/lib/libpostgis-1.5.a
-rwxr-xr-x  1 gdt  users     1106 Feb  2 07:53 /usr/home/gdt/POSTGIS/postgis-1.5.0rc2/regress/00-regress-install/lib/libpostgis-1.5.la
lrwxr-xr-x  1 gdt  users       23 Feb  2 07:53 /usr/home/gdt/POSTGIS/postgis-1.5.0rc2/regress/00-regress-install/lib/libpostgis-1.5.so -> libpostgis-1.5.so.0.0.0
lrwxr-xr-x  1 gdt  users       23 Feb  2 07:53 /usr/home/gdt/POSTGIS/postgis-1.5.0rc2/regress/00-regress-install/lib/libpostgis-1.5.so.0 -> libpostgis-1.5.so.0.0.0
-rwxr-xr-x  1 gdt  users   351096 Feb  2 07:53 /usr/home/gdt/POSTGIS/postgis-1.5.0rc2/regress/00-regress-install/lib/libpostgis-1.5.so.0.0.0

This name is also in $(prefix) after make install:

-rwxr-xr-x  1 root  wheel   351096 Feb  2 08:08 /usr/pkg/lib/libpostgis-1.5.so.0.0.0
lrwxr-xr-x  1 root  wheel       23 Feb  2 08:08 /usr/pkg/lib/libpostgis-1.5.so.0 -> libpostgis-1.5.so.0.0.0
lrwxr-xr-x  1 root  wheel       23 Feb  2 08:08 /usr/pkg/lib/libpostgis-1.5.so -> libpostgis-1.5.so.0.0.0
-rwxr-xr-x  1 root  wheel     1106 Feb  2 08:08 /usr/pkg/lib/libpostgis-1.5.la
-rw-r--r--  1 root  wheel  1169958 Feb  2 08:08 /usr/pkg/lib/libpostgis-1.5.a

* (not important) There are a bunch of warnings:

pgsql2shp.c: In function 'initialize':
pgsql2shp.c:1620: warning: array subscript has type 'char'

These are caused by passing a char to toupper, which is defined to take
an int, and has defined behavior only if the value passed is
representable as an unsigned character.  The warning arises because on
NetBSD toupper is a macro (which relies on the restrictions in the
specification).  This is basically harmless and fairly common but a C99
compliance nit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20100202/51d5d685/attachment.sig>


More information about the postgis-devel mailing list