[postgis-devel] 2.0.7 build error on Fedora 22

Paul Ramsey pramsey at cleverelephant.ca
Tue Jul 7 08:56:29 PDT 2015


That’s an odd one… the error says that

lwgeom_accum.c:109:46: error: 'AggState {aka struct AggState}' has no member named ‘aggcontext'

But, in all of 9.3, 9.4, 9.5, it does in fact have such a member… is it possible that there’s an ancient (8.4 or < ) header lying around that the build is picking up by accident instead of the one we want used?

P 

-- 
http://postgis.net
http://cleverelephant.ca


On July 7, 2015 at 8:40:21 AM, Devrim GÜNDÜZ (devrim at gunduz.org) wrote:


Hi,

Just noticed this while working RPMs. This is gcc 5.1.1:


gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_ADJ=0 -fpic -I../liblwgeom -I../libpgcommon -I/usr/include -I/usr/include/libxml2 -I. -I./ -I/usr/pgsql-9.5/include/server -I/usr/pgsql-9.5/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o lwgeom_box3d.o lwgeom_box3d.c
lwgeom_accum.c: In function 'pgis_geometry_accum_transfn':
lwgeom_accum.c:109:46: error: 'AggState {aka struct AggState}' has no member named 'aggcontext'
aggcontext = ((AggState *) fcinfo->context)->aggcontext;
^
<builtin>: recipe for target 'lwgeom_accum.o' failed
make[2]: *** [lwgeom_accum.o] Error 1
make[2]: *** Waiting for unfinished jobs....
lwgeom_functions_analytic.c: In function 'ptarray_grid':
lwgeom_functions_analytic.c:300:11: warning: variable 'opn' set but not used [-Wunused-but-set-variable]
int ipn, opn; /* point numbers (input/output) */
^
lwgeom_functions_analytic.c: In function 'lwpoly_grid':
lwgeom_functions_analytic.c:376:9: warning: variable 'minvisiblearea' set but not used [-Wunused-but-set-variable]
double minvisiblearea;
^
lwgeom_functions_analytic.c: In function 'point_in_polygon':
lwgeom_functions_analytic.c:1180:14: warning: variable 'ring' set but not used [-Wunused-but-set-variable]
POINTARRAY *ring;
^
lwgeom_functions_analytic.c: In function 'point_in_multipolygon':
lwgeom_functions_analytic.c:1226:14: warning: variable 'ring' set but not used [-Wunused-but-set-variable]
POINTARRAY *ring;
^
make[2]: Leaving directory '/home/devrim/rpm/BUILD/postgis-2.1.8/postgis-2.0.7/postgis'
GNUmakefile:14: recipe for target 'all' failed
make[1]: *** [all] Error 1

--  
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


_______________________________________________
postgis-devel mailing list
postgis-devel at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150707/e376bd93/attachment.html>


More information about the postgis-devel mailing list