zeek / spicy

C++ parser generator for dissecting protocols & files.
https://docs.zeek.org/projects/spicy
Other
248 stars 37 forks source link

Fix Flex linker error when building as part of Zeek. #1749

Closed bbannier closed 4 months ago

bbannier commented 5 months ago

When building Spicy as part of Zeek against the Homebrew flex-2.6.4 I saw linker errors after f523256,

ld: Undefined symbols:
  HiltiFlexLexer::LexerInput(char*, unsigned long), referenced from:
      vtable for hilti::detail::parser::Scanner in driver.cc.o
  HiltiFlexLexer::LexerOutput(char const*, unsigned long), referenced from:
      vtable for hilti::detail::parser::Scanner in driver.cc.o

It is still not clear to me how this error comes about, but the change in this patch seems to address the issue.