Cannot Compile - Invalid Regex Prevents Generation of Parsetab Module
Summary
The Bind project (version 9.16.23) cannot be compiled due to regex
issues in the bin/python/isc/policy.py
file.
Here is the output generated when running make
:
BIND version affected
9.16.23
Steps to reproduce
- On a Fedora 39 system (this probably applies beyond Fedora 39, too), with Python 3.12.1 installed, simply clone the source code of the repo corresponding to version 9.16.23.
- Run
./configure
and ensure that it completes successfully - Run
make
What is the current bug behavior?
Make finishes prematurely because it cannot find the parsetab
module.
What is the expected correct behavior?
Make should be able to run the Python script and generate the parsetab
module
successfully.
Relevant configuration files
n/a
Relevant logs
Here is the output of make
:
/usr/bin/python policy.py parse /dev/null > /dev/null
ERROR: /home/olegs/Programming/cve-gen-ai/FixMorph/experiments/bind-backports/bind/bind-9.16.23/bin/python/isc/policy.py:63: Invalid regular expression for rule 't_DATESUFFIX'. missing -, : or ) at position 20
ERROR: /home/olegs/Programming/cve-gen-ai/FixMorph/experiments/bind-backports/bind/bind-9.16.23/bin/python/isc/policy.py:68: Invalid regular expression for rule 't_KEYTYPE'. global flags not at the start of the expression at position 14
ERROR: /home/olegs/Programming/cve-gen-ai/FixMorph/experiments/bind-backports/bind/bind-9.16.23/bin/python/isc/policy.py:73: Invalid regular expression for rule 't_ALGNAME'. global flags not at the start of the expression at position 14
PYTHONPATH=. /usr/bin/python -m parsetab
/usr/bin/python: No module named parsetab
make[3]: *** [Makefile:457: parsetab.py] Error 1