During the build process, the openvas-libnasl Makefile calls the "bison" executable to generate
the nasl_grammar.tab.c file. This works if the executable is provided by the bison package, but fails in Debian (and
possibly other distributions) if it is provided by bison++.
The bug leads to the following error message:
/usr/share/bison++/bison.cc: In function 'naslparse':
/usr/share/bison++/bison.cc:730: error: too few arguments to function 'nasllex'
make[1]: *** [nasl_grammar.tab.o] Error 1
make[1]: Leaving directory `/root/openvas-libnasl-1.0.1/nasl'
make: *** [all] Error 2
As a workaround, openvas-libnasl should check for the correct bison executable during configuration and alert the user
if bison++ is found.
If compatibility with bison++ is desired, the incompatibilities prevent the build should be addressed.
This bug was first described by Sven Wurth. |