Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error: Missing jsquery_gram.h #20

Open
3dmashup opened this issue Feb 24, 2016 · 4 comments
Open

Build Error: Missing jsquery_gram.h #20

3dmashup opened this issue Feb 24, 2016 · 4 comments

Comments

@3dmashup
Copy link

@3dmashup 3dmashup commented Feb 24, 2016

Build on Ubuntu 14 and Postgres 9.5

~/jsquery$ make USE_PGXS=1
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -I. -I./ -I/usr/include/postgresql/9.5/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.6 -c -o jsquery_gram.o jsquery_gram.c
jsquery_gram.y:50:26: fatal error: jsquery_gram.h: No such file or directory
#include <jsquery_gram.h>

@electric-al
Copy link

@electric-al electric-al commented Apr 28, 2016

+1 Any fix?

@bvenkat
Copy link

@bvenkat bvenkat commented Jun 26, 2016

I was able to compile it by reversing the order in the Makefile so that it reads as below:

jsquery_gram.c: BISONFLAGS += -d

jsquery_gram.o: jsquery_scan.c

Maybe you can give it a shot.

@soledaddiez
Copy link

@soledaddiez soledaddiez commented Aug 5, 2016

HI. +1 here.
I've tried @bvenkat solution but still getting:

~/jsquery make USE_PGXS=1
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -arch i386 -arch x86_64 -O2  -I. -I./ -I/Library/PostgreSQL/9.5/include/postgresql/server -I/Library/PostgreSQL/9.5/include/postgresql/internal -I/opt/local/20150618/include/libxml2  -I/opt/local/Current/include/libxml2 -I/opt/local/Current/include  -c -o jsquery_gram.o jsquery_gram.c
jsquery_gram.y:50:10: fatal error: 'jsquery_gram.h' file not found
#include <jsquery_gram.h>
         ^
1 error generated.
make: *** [jsquery_gram.o] Error 1

Any idea?. Does it working for you now @electric-al ?

@DataGreed
Copy link

@DataGreed DataGreed commented Oct 1, 2018

Same problem, stuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.