[postgis-devel] build break in lwgeom

Paul Ramsey pramsey at opengeo.org
Mon Feb 6 21:51:33 PST 2012


It works for me with a very similar set-up. The error is consistent
with not finding the projects.h file, which in turn would be
consistent with failing to re-run ./configure and pick up a chance in
liblwgeom.h.in. However you say you're configuring each time, so I
dunno.

P.

On Mon, Feb 6, 2012 at 5:17 PM, Greg Troxel <gdt at ir.bbn.com> wrote:
>
> 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; \
> done;
> ---- 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.
>
>
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list