#15 Building contrib cube on Ubuntu

9.2rc
closed
nobody
None
3
None
nobody
2014-08-12
2014-05-29
mason_s
No

On Ubuntu 14.04 LTS, there appears to be some build errors related to the cube contrib module.

We could not reproduce this issue on CentOS 6 (gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
).

Reported by Vladimir Koković

make world
:
gcc -DPGXC -DXCP -gdwarf-2 -g3 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I/mnt/sdb1/temporary/Postgres-XL-git/build-debug/../postgres-xl-postgres-xl/contrib/cube -I../../src/include -I/mnt/sdb1/temporary/Postgres-XL-git/build-debug/../postgres-xl-postgres-xl/src/include -D_GNU_SOURCE -c -o cubeparse.o cubeparse.c
cubeparse.c:163:5: error: conflicting types for ‘cube_yyparse’
int cube_yyparse (void);
^
/mnt/sdb1/temporary/Postgres-XL-git/build-debug/../postgres-xl-postgres-xl/contrib/cube/cubeparse.y:32:5: note: previous declaration of ‘cube_yyparse’ was here
int cube_yyparse(void result);
^
cubeparse.c:63:25: error: conflicting types for ‘cube_yyparse’
#define yyparse cube_yyparse
^
cubeparse.c:1004:1: note: in expansion of macro ‘yyparse’
yyparse (void)
^
/mnt/sdb1/temporary/Postgres-XL-git/build-debug/../postgres-xl-postgres-xl/contrib/cube/cubeparse.y:32:5: note: previous declaration of ‘cube_yyparse’ was here
int cube_yyparse(void
result);
^
/mnt/sdb1/temporary/Postgres-XL-git/build-debug/../postgres-xl-postgres-xl/contrib/cube/cubeparse.y: In function ‘cube_yyparse’:
/mnt/sdb1/temporary/Postgres-XL-git/build-debug/../postgres-xl-postgres-xl/contrib/cube/cubeparse.y:73:14: error: ‘result’ undeclared (first use in this function)
((void *)result) = write_box( dim, $2, $4 );

Discussion

    • status: open --> closed
     
  • Cherry-picked the upstream commit with bison 3.0 compatibility fix
    commit c290a6833de2b9495e76b50ad12eb0b7b13cfb84