The flex version in source tree is out of date. The latest version of flex is 2.6.4 (release date 06 May 2017) at https://github.com/westes/flex/tags, but source tree has the version 2.5.37. Is it possible to update ? Most of the ports that dependso on flex (for example snort3), find the base system's flex while in configure step. So that installing latest flex from ports doesn't solve issues.
flex 2.6.4 was imported almost a year ago and is included in FreeBSD 13.0: https://cgit.freebsd.org/src/commit/?id=7e38239042df09edbbdc443ccb4825f9155c6bb7
Is there anything that needs to be done for this PR?
But the flex version on FreeBSD stable/12 is out of date
(In reply to Ozkan KIRIK from comment #3) Ok. As I understand it we require packages for 12.x to build on 12.0, so workarounds for an outdated flex are required anyway. But I will defer to Jung-uk on this since he does the work to maintain flex in the tree.
Unfortunately, Flex 2.6.4 introduced a regression. Please see Bug 253440. Although it was worked around by 4e3fa977a14f, I have no intention to update stable/12 at the time. Sorry, you will have to use flex from the ports tree. *** This bug has been marked as a duplicate of bug 239058 ***
(In reply to Ozkan KIRIK from comment #0) Is there any feature you need from the latest Flex?
What is opened the bug report, the security/snort3 port couldn't detect the flex from ports. The cmake configure was detecting the flex from system altough flex from ports was installed. This problem was fixed later. Now security/snort3 configure step can detect the flex from ports.