I recieved this error while executing the make check for pocketspinx. Can anyone advise on a solution besides redefine the delcaration of the variable?
Thanks
phone_search.Tpo -c allphone_search.c -fPIC -DPIC -o .libs/allphone_search.o
allphone_search.c: In function ‘allphone_search_free’:
allphone_search.c:651:5: warning: implicit declaration of function ‘allphone_clear_segments’; did you mean ‘allphone_search_seg_next’? [-Wimplicit-function-declaration]
allphone_clear_segments(allphs);
^~~~~~~~~~~~~~~~~~~~~~~
allphone_search_seg_next
allphone_search.c: At top level:
allphone_search.c:759:1: warning: conflicting types for ‘allphone_clear_segments’
allphone_clear_segments(allphone_search_t * allphs)
^~~~~~~~~~~~~~~~~~~~~~~
allphone_search.c:759:1: error: static declaration of ‘allphone_clear_segments’ follows non-static declaration
allphone_search.c:651:5: note: previous implicit declaration of ‘allphone_clear_segments’ was here
allphone_clear_segments(allphs);
^~~~~~~~~~~~~~~~~~~~~~~
Makefile:558: recipe for target 'allphone_search.lo' failed
make[2]: [allphone_search.lo] Error 1
make[2]: Leaving directory '/home/design/speechrec/pocketsphinx/src/libpocketsphinx'
Makefile:382: recipe for target 'check-recursive' failed
make[1]: [check-recursive] Error 1
make[1]: Leaving directory '/home/design/speechrec/pocketsphinx/src'
Makefile:477: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recieved this error while executing the make check for pocketspinx. Can anyone advise on a solution besides redefine the delcaration of the variable?
Thanks
phone_search.Tpo -c allphone_search.c -fPIC -DPIC -o .libs/allphone_search.o
allphone_search.c: In function ‘allphone_search_free’:
allphone_search.c:651:5: warning: implicit declaration of function ‘allphone_clear_segments’; did you mean ‘allphone_search_seg_next’? [-Wimplicit-function-declaration]
allphone_clear_segments(allphs);
^~~~~~~~~~~~~~~~~~~~~~~
allphone_search_seg_next
allphone_search.c: At top level:
allphone_search.c:759:1: warning: conflicting types for ‘allphone_clear_segments’
allphone_clear_segments(allphone_search_t * allphs)
^~~~~~~~~~~~~~~~~~~~~~~
allphone_search.c:759:1: error: static declaration of ‘allphone_clear_segments’ follows non-static declaration
allphone_search.c:651:5: note: previous implicit declaration of ‘allphone_clear_segments’ was here
allphone_clear_segments(allphs);
^~~~~~~~~~~~~~~~~~~~~~~
Makefile:558: recipe for target 'allphone_search.lo' failed
make[2]: [allphone_search.lo] Error 1
make[2]: Leaving directory '/home/design/speechrec/pocketsphinx/src/libpocketsphinx'
Makefile:382: recipe for target 'check-recursive' failed
make[1]: [check-recursive] Error 1
make[1]: Leaving directory '/home/design/speechrec/pocketsphinx/src'
Makefile:477: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
This issue is already reported at https://github.com/cmusphinx/pocketsphinx/issues/139