Could not build jsquery
niquola opened this issue · 7 comments
I've tried to build jsquery with 9.4 and 9.5, but it failed with:
jsquery_gram.y:56:5: error: conflicting types for 'jsquery_yyparse'
int jsquery_yyparse(void *result);
^
In file included from jsquery_gram.y:52:0:
jsquery_gram.h:85:5: note: previous declaration of 'jsquery_yyparse' was here
int jsquery_yyparse (void);
^
jsquery_gram.y: In function 'jsquery_yyparse':
jsquery_gram.y:228:29: error: 'result' undeclared (first use in this function)
expr { *((JsQueryParseItem**)result) = $1; }
^
jsquery_gram.y:228:29: note: each undeclared identifier is reported only once for each function it appears in
make: *** [jsquery_gram.o] Error 1
Which version of postgresql || jsquery should i use?
I could help setup travis ci to track build status ( like here https://github.com/fhirbase/fhirbase/blob/master/.travis.yml)
- use USE_PGXS=1 for make command:
% make USE_PGXS=1 all install
2 Which version of bison do you use?
% bison -V
Mine is bison (GNU Bison) 2.7.12-4996
bison -V
bison (GNU Bison) 3.0.2
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Had similar problems, and as Teodor said, USE_PGXS=1 helped. Do it in 3
steps: 1) make USE_PGXS=1. 2) sudo make USE_PGXS=1 install, 3) create
extension jsquery; -- that's it.
On Thu, Aug 21, 2014 at 11:28 PM, niquola notifications@github.com wrote:
bison -V
bison (GNU Bison) 3.0.2
Written by Robert Corbett and Richard Stallman.Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.—
Reply to this email directly or view it on GitHub
#3 (comment).
commit 2328c9a
Author: Teodor Sigaev teodor@sigaev.ru
Date: Fri Aug 22 16:25:59 2014 +0400
compatibility with bison 3.0
I'm building postgresql and then jsquery from contrib dir, as i understand USE_PGXS not required?
USE_PGXS is needed for build outside contrib directory