openabe
openabe copied to clipboard
make issue when running bison -d -v zparser.yy
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
Did anyone get this issue as well? How could I fix it? Thanks!
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.
@qiuxiangdong hello, i got the same problem, have you sovled it, how do deal with it
@xanarry @qiuxiangdong I got the same problem and fixed with the method used in this pull request https://github.com/zeutro/openabe/pull/28