[postgis-devel] build break in lwgeom

Greg Troxel gdt at ir.bbn.com
Mon Feb 6 17:17:26 PST 2012

I have been using a script to configure, build, and regression test
postgis for a week or more, and it's been stable.  After updating
tonight (and resolving conflicts due to sed being replaced by perl),
postgis failed to build:

for s in liblwgeom libpgcommon postgis regress raster topology loader utils extensions  ; do \
	echo "---- Making all in ${s}"; \
	gmake -C ${s} all || exit 1; \
---- Making all in liblwgeom
gmake[1]: Entering directory `/home/gdt/SOFTWARE/POSTGIS/postgis/liblwgeom'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/gdt/SOFTWARE/POSTGIS/postgis/liblwgeom'
---- Making all in libpgcommon
gmake[1]: Entering directory `/home/gdt/SOFTWARE/POSTGIS/postgis/libpgcommon'
gcc -g -O2 -I/usr/pkg/include/postgresql/server -I/usr/pkg/include -I../liblwgeom  -fPIC -DPIC  -Wall -Wmissing-prototypes  -c -o lwgeom_transform.o lwgeom_transform.c
lwgeom_transform.c: In function 'spheroid_init_from_srid':
lwgeom_transform.c:717: error: 'PJ' undeclared (first use in this function)
lwgeom_transform.c:717: error: (Each undeclared identifier is reported only once
lwgeom_transform.c:717: error: for each function it appears in.)
lwgeom_transform.c:717: error: 'p' undeclared (first use in this function)
lwgeom_transform.c:732: error: expected expression before ')' token
lwgeom_transform.c: In function 'srid_is_latlong':
lwgeom_transform.c:749: error: 'SRID_DEFAULT' undeclared (first use in this function)
gmake[1]: *** [lwgeom_transform.o] Error 1
gmake[1]: Leaving directory `/home/gdt/SOFTWARE/POSTGIS/postgis/libpgcommon'
gmake: *** [all] Error 1

proj_api.h is in /usr/pkg/include, and there was no error about not
finding it.  So I'm guessing something is newly wrong, and that it isn't
specific to my system.  This seems to have something to do with avoiding
or not avoiding the private header file.  (Why does proj install a
private header file??)

I am at r9058 and have proj 4.7.0.

-------------- 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/20120206/d37c8592/attachment.sig>

More information about the postgis-devel mailing list