[Kea-users] How to Enable Parser Generation with Meson in Kea 3.0.0?

Andrei Pavel andrei at isc.org
Tue Jul 15 19:30:48 UTC 2025


In an attempt to simplify the build interface, parser generation, just 
as other features that can be detected automatically, are enabled 
whenever the required programs are available, in this case: bison 
version 3.3.0 or later or flex version 2.6.4 or later.

You can search for lines such as these displayed on meson setup to 
determine if these programs were found:

Program bison found: YES 3.8.2 3.8.2 (/sbin/bison)
Program flex found: YES 2.6.4 2.6.4 (/sbin/flex)

Or look in `build/config.report` for:

Flex:                 /sbin/flex
Bison:                /sbin/bison

Additionally, if the programs were not found, and if as a result parser 
generation is disabled, trying to generate parsers with "meson compile 
parser" will simply display "Parser generation is disabled."

I hope this helps.

If you have suggestions about how this could be improved, you can open a 
GitLab issue.

--
Andrei Pavel

On 15/07/2025 20:40, Dipesh Kayastha wrote:
>
> Dear Kea Developers,
>
> I have recently upgraded Kea from version 2.6.2 to 3.0.0. In the 
> earlier version (2.6.2), there was a |--enable-generate-parser| option 
> available with the |configure| to enable the generation of parsers 
> during the build process.
>
> However, I noticed that Kea 3.0.0 now uses the Meson build system 
> instead of Autotools, and I couldn't find an equivalent option for 
> |--enable-generate-parser| in the Meson configuration.
>
> Could you please guide me on how to enable parser generation with 
> Meson in Kea 3.0.0? Is there a specific option or environment variable 
> I need to set during the Meson setup?
>
> Any help would be greatly appreciated.
>
>
> Best regards,
> Dipesh Kayastha
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250715/e4253d76/attachment.htm>


More information about the Kea-users mailing list