openabe icon indicating copy to clipboard operation
openabe copied to clipboard

make issue when running bison -d -v zparser.yy

Open qiuxiangdong opened this issue 5 years ago • 4 comments

Hi, I am trying to install the package on Ubuntu 18.04. I caught the error when running the make command. The following is the error info.

mkdir -p /home/ubuntu/openabe/root/include/openabe cp -r include/openabe/* /home/ubuntu/openabe/root/include/openabe g++ -I/home/ubuntu/openabe/deps/root/include -I/home/ubuntu/openabe/src -I/home/ubuntu/openabe/root/include -std=c++11 -fPIC -DGTEST_USE_OWN_TR1_TUPLE=0 -pthread -Wall -fstrict-overflow -Wsign-compare -g -O2 -DSSL_LIB_INIT -c zobject.cpp g++ -I/home/ubuntu/openabe/deps/root/include -I/home/ubuntu/openabe/src -I/home/ubuntu/openabe/root/include -std=c++11 -fPIC -DGTEST_USE_OWN_TR1_TUPLE=0 -pthread -Wall -fstrict-overflow -Wsign-compare -g -O2 -DSSL_LIB_INIT -c openabe.cpp g++ -I/home/ubuntu/openabe/deps/root/include -I/home/ubuntu/openabe/src -I/home/ubuntu/openabe/root/include -std=c++11 -fPIC -DGTEST_USE_OWN_TR1_TUPLE=0 -pthread -Wall -fstrict-overflow -Wsign-compare -g -O2 -DSSL_LIB_INIT -c zcontext.cpp g++ -I/home/ubuntu/openabe/deps/root/include -I/home/ubuntu/openabe/src -I/home/ubuntu/openabe/root/include -std=c++11 -fPIC -DGTEST_USE_OWN_TR1_TUPLE=0 -pthread -Wall -fstrict-overflow -Wsign-compare -g -O2 -DSSL_LIB_INIT -c zcrypto_box.cpp g++ -I/home/ubuntu/openabe/deps/root/include -I/home/ubuntu/openabe/src -I/home/ubuntu/openabe/root/include -std=c++11 -fPIC -DGTEST_USE_OWN_TR1_TUPLE=0 -pthread -Wall -fstrict-overflow -Wsign-compare -g -O2 -DSSL_LIB_INIT -c zsymcrypto.cpp bison -d -v zparser.yy zparser.yy: warning: 3 shift/reduce conflicts [-Wconflicts-sr] zparser.yy:42.9-24: error: %define variable 'api.parser.class' is not used %define api.parser.class {Parser} ^^^^^^^^^^^^^^^^ Makefile:58: recipe for target 'zparser.o' failed

qiuxiangdong avatar Sep 01 '19 22:09 qiuxiangdong

Did anyone get this issue as well? How could I fix it? Thanks!

qiuxiangdong avatar Sep 01 '19 22:09 qiuxiangdong

Ah, I think it's related to the version of bison. Updates to parser means we now require bison 3.4+. The fix is to make it backward compatible, @qiuxiangdong.

jakinyele avatar Sep 08 '19 03:09 jakinyele

@qiuxiangdong hello, i got the same problem, have you sovled it, how do deal with it

xanarry avatar Dec 31 '19 14:12 xanarry

@xanarry @qiuxiangdong I got the same problem and fixed with the method used in this pull request https://github.com/zeutro/openabe/pull/28

hello0827 avatar Jun 04 '20 03:06 hello0827