I am using Sphinxbase and Pocketsphinx from the release (https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/) and while installing I am getting following errors :
/sphinxbase/src/libsphinxbase/util/profile.c: In function ‘ptmr_start’:
/sphinxbase/src/libsphinxbase/util/profile.c:185:19: error: storage size of ‘start’ isn’t known
struct rusage start; /* CPU time */
^
/sphinxbase/src/libsphinxbase/util/profile.c:188:15: error: ‘RUSAGE_SELF’ undeclared (first use in this function)
getrusage(RUSAGE_SELF, &start);
^
/sphinxbase/src/libsphinxbase/util/profile.c:188:15: note: each undeclared identifier is reported only once for each function it appears in
/sphinxbase/src/libsphinxbase/util/profile.c: In function ‘ptmr_stop’:
/sphinxbase/src/libsphinxbase/util/profile.c:224:19: error: storage size of ‘stop’ isn’t known
struct rusage stop; /* CPU time */
^
/sphinxbase/src/libsphinxbase/util/profile.c:227:15: error: ‘RUSAGE_SELF’ undeclared (first use in this function)
getrusage(RUSAGE_SELF, &stop);
^
I am on Ubuntu, it compiles fine on Macintosh which is also Unix.