UndernetIRC / ircu2

Undernet IRC Daemon
Other
52 stars 20 forks source link

"error: ‘YYEOF’ undeclared" on GitHub CI #15

Closed progval closed 2 years ago

progval commented 2 years ago

Hi,

I just started getting the following error on my GitHub Actions workflows when building ircu2:

2021-12-11T09:57:09.3784393Z ircd_lexer.c: In function ‘yylex’:
2021-12-11T09:57:09.3905288Z ircd_lexer.c:301:12: error: ‘YYEOF’ undeclared (first use in this function)
2021-12-11T09:57:09.3906281Z   301 |     return YYEOF;
2021-12-11T09:57:09.3906823Z       |            ^~~~~
2021-12-11T09:57:09.3907677Z ircd_lexer.c:301:12: note: each undeclared identifier is reported only once for each function it appears in
2021-12-11T09:57:09.3915240Z ircd_lexer.c:304:12: error: ‘YYerror’ undeclared (first use in this function); did you mean ‘yyerror’?
2021-12-11T09:57:09.3916351Z   304 |     return YYerror;
2021-12-11T09:57:09.3916875Z       |            ^~~~~~~
2021-12-11T09:57:09.3917381Z       |            yyerror
2021-12-11T09:57:09.3965648Z make[1]: *** [Makefile:235: ircd_lexer.o] Error 1

(full logs here)

Here are the commands I use to build it: https://github.com/progval/irctest/blob/2684e7edb7a52d42f844a1b3e2b161941e55bb37/.github/workflows/test-devel.yml#L633-L646

However, it is working fine on my own machine. Any idea what is causing this?

progval commented 2 years ago

Thanks, that fixed it!