sippy / rtpproxy

The RTPproxy is a high-performance software proxy for RTP streams that can work together with Sippy B2BUA, Kamailio, OpenSIPS and SER.
http://rtpproxy.org
BSD 2-Clause "Simplified" License
404 stars 114 forks source link

../../src/rtpp_module.h:142:5: error: unknown type name ‘pthread_t’ #110

Open ramagurijala opened 4 years ago

ramagurijala commented 4 years ago

I am trying to compile on CentOS 7 with GCC 7 and I'm getting below error:

Making all in acct_rtcp_hep make[2]: Entering directory /usr/src/rtpproxy/modules/acct_rtcp_hep' /bin/sh ../../libtool --tag=CC --mode=compile gcc -Wall -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -DHAVE_CONFIG_H -I../../src -DRTPP_MODULE -Dmalloc=mod_malloc -Dfree=mod_free -Drealloc=mod_realloc -I../../hepconnector -I../../external/libucl/include -D_DEFAULT_SOURCE -D_ISOC99_SOURCE -DLINUX_XXX -g3 -O2 -std=c11 -D_BSD_SOURCE -D_XOPEN_SOURCE -pipe -MT rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.lo -MD -MP -MF .deps/rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.Tpo -c -o rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.lotest -f 'rtpp_acct_rtcp_hep.c' || echo './'rtpp_acct_rtcp_hep.c libtool: compile: gcc -Wall -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -DHAVE_CONFIG_H -I../../src -DRTPP_MODULE -Dmalloc=mod_malloc -Dfree=mod_free -Drealloc=mod_realloc -I../../hepconnector -I../../external/libucl/include -D_DEFAULT_SOURCE -D_ISOC99_SOURCE -DLINUX_XXX -g3 -O2 -std=c11 -D_BSD_SOURCE -D_XOPEN_SOURCE -pipe -MT rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.lo -MD -MP -MF .deps/rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.Tpo -c rtpp_acct_rtcp_hep.c -fPIC -DPIC -o .libs/rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.o In file included from rtpp_acct_rtcp_hep.c:41:0: ../../src/rtpp_module.h:142:5: error: unknown type name ‘pthread_t’ pthread_t thread_id; ^~~~~~~~~ make[2]: *** [rtpp_acct_rtcp_hep_la-rtpp_acct_rtcp_hep.lo] Error 1 make[2]: Leaving directory/usr/src/rtpproxy/modules/acct_rtcp_hep' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/rtpproxy/modules' make: [all-recursive] Error 1

Sh0g0Cub3 commented 4 years ago

I'm getting the same error. gcc version 10.1.0 (GCC)

sobomax commented 4 years ago

Should be fixed in the latest master. Sorry for the breakage. :(

Anyone know any good CI that supports github and has centos/rhel images?