Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2046 closed defect (fixed)

raster: Getting compile errors on postgresql 9.0 build caused by raster

Reported by: robe Owned by: Bborie Park
Priority: blocker Milestone: PostGIS 2.1.0
Component: build Version: master
Keywords: mingw64 Cc:

Description

This is winnie mingw64 9.0.

Still need to setup debbie to build 9.0 chain so not sure it's a global 9.0 issue.

I'm actually not sure when this started since I neglected to add 9.0 to my regress and my packaging was bogusly reporting success.

make[2]: Entering directory `/c/jenkins/postgis/branches/2.1/raster/rt_pg'
x86_64-w64-mingw32-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g  -I/c/jenkins/geos/rel-3.4.0devw64/include -I/c/ming64/projects/proj/rel-4.8.0w64/include -I/c/ming64/projects/json-c/rel-0.9w64/include -I/c/ming64/projects/libxml/rel-libxml2-2.7.8w64/include/libxml2 "-I../../liblwgeom" -I/c/jenkins/gdal/rel-1.9.1w64/include "-I../../libpgcommon" -I/c/ming64/projects/proj/rel-4.8.0w64/include -I../rt_core -I. -I. -Ic:/jenkins/POSTGR~1/rel/PG9~1.0W6/include/server -Ic:/jenkins/POSTGR~1/rel/PG9~1.0W6/include/internal -I./src/include/port/win32 -DEXEC_BACKEND  "-Ic:/jenkins/POSTGR~1/rel/PG9~1.0W6/lib/pgxs/src/MAKEFI~1/../../src/include/port/win32" -Ic:/jenkins/POSTGR~1/rel/PG9~1.0W6/include/server/port/win32  -c -o rt_pg.o rt_pg.c
rt_pg.c: In function 'RASTER_nMapAlgebra':
rt_pg.c:14149:134: error: macro "InitFunctionCallInfoData" passed 6 arguments, but takes just 5
rt_pg.c:14149:3: error: 'InitFunctionCallInfoData' undeclared (first use in this function)
rt_pg.c:14149:3: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [rt_pg.o] Error 1
make[2]: Leaving directory `/c/jenkins/postgis/branches/2.1/raster/rt_pg'
make[1]: *** [pglib] Error 2
make[1]: Leaving directory `/c/jenkins/postgis/branches/2.1/raster'
make: *** [all] Error 1

It looks like a difference between 9.0 and 9.1 to me.

Change History (4)

comment:1 by robe, 12 years ago

Yap debbie doesn't like it either. Just set her up with 9.0 and she's complaining about the same thing.

rt_pg.c:14149:134: error: macro "InitFunctionCallInfoData" passed 6 arguments, but takes just 5
rt_pg.c: In function ‘RASTER_nMapAlgebra’:
rt_pg.c:14149: error: ‘InitFunctionCallInfoData’ undeclared (first use in this function)
rt_pg.c:14149: error: (Each undeclared identifier is reported only once
rt_pg.c:14149: error: for each function it appears in.)
make[2]: *** [rt_pg.o] Error 1
make[2]: Leaving directory `/var/lib/jenkins/workspace/postgis/branches/2.1/raster/rt_pg'
make[1]: *** [pglib] Error 2
make[1]: Leaving directory `/var/lib/jenkins/workspace/postgis/branches/2.1/raster'
make: *** [all] Error 1

I'm going to add 9.0 as a separate regress name so it's easier to distiguish from the regular regress until this issue is fixed.

comment:2 by robe, 12 years ago

Aha this is related to the change between 9.0 and 9.1 I oggoled and what came up was a ticket I submitted when 9.1 was in beta :)

#940

comment:3 by robe, 12 years ago

Resolution: fixed
Status: newclosed

Compiles now at r10428

comment:4 by Bborie Park, 12 years ago

Thanks for fixing this while I was AWOL for the weekend. The fix is correct.

Note: See TracTickets for help on using tickets.