Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_pocketsphinx compilation error with GCC 14/sphinxbase-0.8.tar.gz #2656

Open
space88man opened this issue Dec 1, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@space88man
Copy link

space88man commented Dec 1, 2024

Describe the bug
mod_pocketsphinx doesn't build with GCC 14 due to the sphinxbase-0.8.tar.gz dependency which has a function use yyparse(...) with no prototype. This is now an error with GCC 14.

To Reproduce
Steps to reproduce the behavior:

  1. FreeSWITCH 1.10.12 with configuration including mod_pocketsphinx
  2. Build with GCC 14

Expected behavior
Compilation succeeds

Package version or git hash

  • Version 1.10.12

Build logs
Compilation error in sphinxbase-0.8/src/libsphinxbase/lm/jsgf.c as yyparse has no prototypte

This is the needed patch:

diff '--color=auto' -ur a/src/libsphinxbase/lm/jsgf.c sphinxbase-0.8/src/libsphinxbase/lm/jsgf.c
--- a/src/libsphinxbase/lm/jsgf.c       2012-12-05 22:06:07.000000000 +0800
+++ sphinxbase-0.8/src/libsphinxbase/lm/jsgf.c  2024-12-01 19:57:04.138416256 +0800
@@ -730,6 +730,7 @@
     return NULL;
 }
 
+int yyparse (void* yyscanner, jsgf_t *jsgf);
 jsgf_t *
 jsgf_parse_file(const char *filename, jsgf_t *parent)
 {
@space88man space88man added the bug Something isn't working label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant