=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for asterisk-1.8.32.3nb17 menuselect/menuselect --check-deps menuselect.makeopts Building Documentation For: Unknown value '' found in build_tools/menuselect-deps for NATIVE_ARCH menuselect/menuselect --check-deps menuselect.makeopts /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/pkgsrc.makeopts Unknown value '' found in build_tools/menuselect-deps for NATIVE_ARCH channels Generating embedded module rules ... pbx apps codecs formats [CC] astcanary.c -> astcanary.o [CC] eagi-test.c -> eagi-test.o [CC] pbx_config.c -> pbx_config.o [CC] chan_iax2.c -> chan_iax2.o [CC] cdr_manager.c -> cdr_manager.o [CC] format_sln16.c -> format_sln16.o [CC] app_waituntil.c -> app_waituntil.o [CC] res_timing_kqueue.c -> res_timing_kqueue.o [CC] pbx_loopback.c -> pbx_loopback.o [CC] func_global.c -> func_global.o [CC] abstract_jb.c -> abstract_jb.o [CC] anaFilter.c -> anaFilter.o cdr cel bridges funcs [CC] cel_manager.c -> cel_manager.o [CC] bridge_builtin_features.c -> bridge_builtin_features.o tests main In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from abstract_jb.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from abstract_jb.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from abstract_jb.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx_config.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] constants.c -> constants.o [CC] eagi-sphinx-test.c -> eagi-sphinx-test.o In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_global.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ pbx_config.c:139:7: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isblank(*p) /* XXX order is important */ && !in_blank) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:71:44: note: expanded from macro 'isblank' #define isblank(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_BL)) ^~~~ pbx_config.c:346:17: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*c && isdigit(*c)) ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from In file included from format_sln16.capp_waituntil.c::3437: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::28127: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::3621: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::2323: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562::5569::9 :warning : warning'pthread_cond_destroy' macro redefined [-Wmacro-redefined]: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: 127 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::343563::99:: notewarning: : previous definition is here'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock __libc_mutex_lock ^ #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal In file included from ^format_sln16.c :/usr/include/pthread.h34:: 367In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h9::28 : note: In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_cond_signal __libc_cond_signal: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:In file included from 557app_waituntil.c::937:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 564/usr/include/pthread.h::9345:: 9warning:: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]note : previous definition is here #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast#define pthread_mutex_unlock __libc_mutex_unlock ^ ^ /usr/include/pthread.h:In file included from 368format_sln16.c::934:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h: :previous definition is here28 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: #define pthread_cond_broadcast __libc_cond_broadcastIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: 23: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.happ_waituntil.c::55837:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :warning127: : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^565 :/usr/include/pthread.h9::344 :warning9: :'pthread_cond_wait' macro redefined [-Wmacro-redefined] note: previous definition is here #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ #define pthread_mutex_trylock __libc_mutex_trylock/usr/include/pthread.h : ^369 :9In file included from :format_sln16.c :note34: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h#define pthread_cond_wait __libc_cond_wait: 36 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.happ_waituntil.c::2337: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h559::1279: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hwarning:: 21'pthread_mutex_init' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init9 : ^ warning/usr/include/pthread.h: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]342 :9: note: previous definition is here #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ #define pthread_mutex_init __libc_mutex_init/usr/include/pthread.h : ^370 :In file included from 9format_sln16.c:: 34note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h :28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36#define pthread_cond_timedwait __libc_cond_timedwait: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_sln16.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_sln16.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_sln16.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_sln16.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_sln16.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_sln16.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from bridge_builtin_features.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_sln16.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_sln16.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_waituntil.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] astcanary.o -> astcanary In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from chan_iax2.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from chan_iax2.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from chan_iax2.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from cdr_manager.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cdr_manager.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ In file included from /usr/include/pthread.hpbx_loopback.c::In file included from 35345cel_manager.c: ::In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:40 : :note127: : In file included from In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h127:: #define pthread_mutex_unlock __libc_mutex_unlockIn file included from 21 ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :: 21In file included from : In file included from In file included from cdr_manager.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::3823: 23In file included from : : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h556:127:556: 9::In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hwarning:9: 21'pthread_mutex_lock' macro redefined [-Wmacro-redefined]:: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hwarning:: 23'pthread_mutex_lock' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9:#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock warning ^: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9/usr/include/pthread.h#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock:: 343 : ^note : /usr/include/pthread.hprevious definition is here9: 344:: 9note#define pthread_mutex_lock __libc_mutex_lock: : previous definition is herenote ^: previous definition is here In file included from #define pthread_mutex_lock __libc_mutex_lockcel_manager.c : ^#define pthread_mutex_trylock __libc_mutex_trylock40 : ^In file included from In file included from pbx_loopback.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from ::12735cdr_manager.c: : In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from 38:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :In file included from 21127: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from : :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::: 21In file included from : 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:21:55723: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::9557:: :23warning: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: :'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] warning559: :'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]9 #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ warning ^ : /usr/include/pthread.h :'pthread_mutex_init' macro redefined [-Wmacro-redefined]/usr/include/pthread.h :345345::#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init9 :9 ^: /usr/include/pthread.h note:: 342previous definition is here: 9note:: previous definition is herenote : #define pthread_mutex_unlock __libc_mutex_unlockprevious definition is here ^#define pthread_mutex_unlock __libc_mutex_unlock#define pthread_mutex_init __libc_mutex_init In file included from ^ ^ cel_manager.c In file included from :In file included from 40pbx_loopback.ccdr_manager.c:: :In file included from 3538: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h127:: :In file included from 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h127: :: In file included from 21In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :In file included from 21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: ::2123: In file included from In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:::23558: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h239:: 560::/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9 :warning : warning'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: 558:#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock9 : ^ #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroywarning/usr/include/pthread.h : ^'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] :/usr/include/pthread.h 344::3469::9 #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylocknote : ^previous definition is here: /usr/include/pthread.hnote: 344: :previous definition is here9#define pthread_mutex_trylock __libc_mutex_trylock : ^ #define pthread_mutex_destroy __libc_mutex_destroynoteIn file included from : previous definition is here ^pbx_loopback.c :In file included from 35#define pthread_mutex_trylock __libc_mutex_trylockcdr_manager.c :: 38In file included from : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:In file included from 127:cel_manager.c127: : In file included from :In file included from 40/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::127In file included from 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h21559:: :561In file included from 9::9 :warning : warning'pthread_mutex_init' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h'pthread_cond_init' macro redefined [-Wmacro-redefined] :23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init9 : ^ warning/usr/include/pthread.h: ^'pthread_mutex_init' macro redefined [-Wmacro-redefined]: 366 :/usr/include/pthread.h9::342 :note#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init9: :previous definition is here ^ note/usr/include/pthread.h#define pthread_cond_init __libc_cond_init: : ^342 previous definition is here: In file included from 9cdr_manager.c:: #define pthread_mutex_init __libc_mutex_initnote : ^38 : previous definition is hereIn file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hpbx_loopback.c::127 35: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:#define pthread_mutex_init __libc_mutex_init:21 127 ^: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h21:: 23In file included from cel_manager.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:: :4023/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h562::/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h560:9::9127 :: warning In file included from : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h'pthread_cond_destroy' macro redefined [-Wmacro-redefined]: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: 560 ^: 9/usr/include/pthread.h:: 371 : ^9warning :/usr/include/pthread.h :note346: :: previous definition is here9'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] : note: previous definition is here#define pthread_cond_destroy __libc_cond_destroy ^ #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroyIn file included from cdr_manager.c ^#define pthread_mutex_destroy __libc_mutex_destroy :/usr/include/pthread.h :38346 ^:: In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127noteIn file included from : pbx_loopback.c: :previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h35:: 21In file included from : #define pthread_mutex_destroy __libc_mutex_destroyIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^127: : 23In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hcel_manager.c: ::/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h21:: 563In file included from 40/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::: 23In file included from : 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :warning561127:: 9: :'pthread_cond_signal' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :warning21: : 'pthread_cond_init' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h:#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init561: 367 ^: 9/usr/include/pthread.h:::3669:: warningnote: : 'pthread_cond_init' macro redefined [-Wmacro-redefined]previous definition is here 9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ ^#define pthread_cond_init __libc_cond_init In file included from ^cdr_manager.c /usr/include/pthread.h:In file included from 38:pbx_loopback.c: :In file included from 35366/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: :In file included from 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :In file included from 1279/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:: 21note: : In file included from previous definition is here: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h23:: 21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_init __libc_cond_init:: In file included from 564 ^: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::In file included from 23cel_manager.c : warning:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h40: : :'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]562 In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9::127 : #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcastwarningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h'pthread_cond_destroy' macro redefined [-Wmacro-redefined] ^: 21 /usr/include/pthread.h: :In file included from 368/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy23 : 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: ^ note:/usr/include/pthread.h: :562371previous definition is here: 9::9 #define pthread_cond_broadcast __libc_cond_broadcastwarning : ^'pthread_cond_destroy' macro redefined [-Wmacro-redefined]: In file included from notecdr_manager.c: :previous definition is here38 : In file included from #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h #define pthread_cond_destroy __libc_cond_destroy: 127 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h ^In file included from :pbx_loopback.c/usr/include/pthread.h21:: 35:In file included from 371: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h9In file included from ::/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h23:: 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :note565: :: In file included from 9previous definition is here:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :warning21: #define pthread_cond_destroy __libc_cond_destroy'pthread_cond_wait' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait : ^23 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h:cel_manager.c::563369:409:: :9 :In file included from warningnote/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :: 127'pthread_cond_signal' macro redefined [-Wmacro-redefined]previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h#define pthread_cond_wait __libc_cond_wait:#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal21 : In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: In file included from 23/usr/include/pthread.hcdr_manager.c::: 38367/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: ::In file included from 5639/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9::127 : warning : noteIn file included from : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hprevious definition is here : 21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal: #define pthread_cond_signal __libc_cond_signal /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^ ^: 566In file included from :pbx_loopback.c9/usr/include/pthread.h::: 36735warning:: 9: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :previous definition is here127 : #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwaitIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h ^:#define pthread_cond_signal __libc_cond_signal 21/usr/include/pthread.h: :In file included from 370 ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::9 :23 In file included from notecel_manager.c: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hprevious definition is here: :40564:: 9#define pthread_cond_timedwait __libc_cond_timedwaitIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: ^ warning127: : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast564 : ^9 :/usr/include/pthread.h :warning368: :'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]9 : note: previous definition is here #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^#define pthread_cond_broadcast __libc_cond_broadcast /usr/include/pthread.h ^: 368:In file included from 9pbx_loopback.c:: 35note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21#define pthread_cond_broadcast __libc_cond_broadcast: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23In file included from : cel_manager.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::40565: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127warning: : In file included from 'pthread_cond_wait' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 565 ^: 9/usr/include/pthread.h:: 369warning:: 9'pthread_cond_wait' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^#define pthread_cond_wait __libc_cond_wait /usr/include/pthread.h ^: 369:In file included from 9pbx_loopback.c:: 35note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:#define pthread_cond_wait __libc_cond_wait21 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:In file included from 23cel_manager.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h40:: 566In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9::127 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]: 21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait: 9 ^: /usr/include/pthread.hwarning:: 370'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]: 9: note: previous definition is here #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h#define pthread_cond_timedwait __libc_cond_timedwait: 370 ^: 9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_sms.c -> app_sms.o In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] [CC] pbx_dundi.c -> pbx_dundi.o #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. 13 warnings generated. In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_timing_kqueue.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] func_aes.c -> func_aes.o In file included from cdr_manager.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cdr_manager.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] bridge_simple.c -> bridge_simple.o In file included from In file included from cel_manager.cpbx_loopback.c::4035: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::144144: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h::3030: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h::750935: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h10::935 :warning10: :array subscript is of type 'char' [-Wchar-subscripts] warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46:/usr/include/sys/ctype_inline.h :note60: :expanded from macro 'toupper'46 : note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])): 52 ^: 47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.hnote:: 52expanded from macro 'AST_INLINE_API': 47: note: expanded from macro 'AST_INLINE_API'# define AST_INLINE_API(hdr, body) inline hdr body ^~~~ # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx_loopback.c:35: In file included from In file included from cel_manager.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::14440: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::30144: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h::75030: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h994::75022: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h :warning994: :array subscript is of type 'char' [-Wchar-subscripts] 22: warning: hash = hash * 33 ^ tolower(*str++);array subscript is of type 'char' [-Wchar-subscripts] ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h: hash = hash * 33 ^ tolower(*str++);59 : ^~~~~~~~~~~~~~~46 :/usr/include/sys/ctype_inline.h :note59: :expanded from macro 'tolower'46 : note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ chan_iax2.c:2767:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] return abs(ast_random()); ^ chan_iax2.c:2767:9: note: use function 'labs' instead return abs(ast_random()); ^~~ labs chan_iax2.c:5985:6: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] if (abs(ms - pred) < MAX_TIMESTAMP_SKEW) ^ chan_iax2.c:5985:6: note: use function 'labs' instead if (abs(ms - pred) < MAX_TIMESTAMP_SKEW) ^~~ labs chan_iax2.c:6057:26: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] if (p->notsilenttx && abs(ms - p->nextpred) <= MAX_TIMESTAMP_SKEW) { ^ chan_iax2.c:6057:26: note: remove the call to 'abs' since unsigned values cannot be negative if (p->notsilenttx && abs(ms - p->nextpred) <= MAX_TIMESTAMP_SKEW) { ^~~ chan_iax2.c:6098:21: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] if (iaxdebug && abs(ms - p->nextpred) > MAX_TIMESTAMP_SKEW ) ^ chan_iax2.c:6098:21: note: remove the call to 'abs' since unsigned values cannot be negative if (iaxdebug && abs(ms - p->nextpred) > MAX_TIMESTAMP_SKEW ) ^~~ chan_iax2.c:6100:7: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] abs(ms - p->nextpred), MAX_TIMESTAMP_SKEW); ^ chan_iax2.c:6100:7: note: remove the call to 'abs' since unsigned values cannot be negative abs(ms - p->nextpred), MAX_TIMESTAMP_SKEW); ^~~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/logger.h:238:26: note: expanded from macro 'ast_debug' ast_log(AST_LOG_DEBUG, __VA_ARGS__); \ ^ chan_iax2.c:6130:15: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] } else if (abs(ms - p->lastsent) <= MAX_TIMESTAMP_SKEW) { ^ chan_iax2.c:6130:15: note: remove the call to 'abs' since unsigned values cannot be negative } else if (abs(ms - p->lastsent) <= MAX_TIMESTAMP_SKEW) { ^~~ 13 warnings generated. res 13 warnings generated. [CC] acl.c -> acl.o 13 warnings generated. [CC] res_smdi.c -> res_smdi.o 13 warnings generated. [CC] cdr_custom.c -> cdr_custom.o [CC] format_g729.c -> format_g729.o 13 warnings generated. 13 warnings generated. [CC] res_convert.c -> res_convert.o [CC] cel_custom.c -> cel_custom.o addons [CC] iax2-parser.c -> iax2-parser.o [CC] bridge_softmix.c -> bridge_softmix.o In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx_dundi.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ chan_iax2.c:1805:33: warning: unused function 'user_ref' [-Wunused-function] static inline struct iax2_user *user_ref(struct iax2_user *user) ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from bridge_simple.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_g729.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_smdi.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_convert.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^In file included from cdr_custom.c:44: /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h343::1279: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hnote:: 21previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_lock __libc_mutex_lock: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 556:In file included from 9res_convert.c:: 37warning: : In file included from 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: ^warning : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:343:9:#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock note ^: previous definition is here/usr/include/pthread.h :345:9: #define pthread_mutex_lock __libc_mutex_locknote : ^previous definition is here In file included from cdr_custom.c:#define pthread_mutex_unlock __libc_mutex_unlock44 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:In file included from 127res_convert.c: :In file included from 37/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :In file included from 21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :In file included from 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :In file included from 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h21:557: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:: 23warning: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]: 558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: note ^: previous definition is here/usr/include/pthread.h :344:9: #define pthread_mutex_unlock __libc_mutex_unlocknote : ^previous definition is here In file included from cdr_custom.c:44: #define pthread_mutex_trylock __libc_mutex_trylockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h ^: 127: In file included from In file included from res_convert.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::3721: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::12723: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::55821:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :warning: 23'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock'pthread_mutex_init' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:344:9#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init: ^note : /usr/include/pthread.hprevious definition is here: 342:9: note#define pthread_mutex_trylock __libc_mutex_trylock: previous definition is here ^ In file included from #define pthread_mutex_init __libc_mutex_initcdr_custom.c : ^44 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hres_convert.c::12737: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::21127: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h21:23: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::55923:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 560warning:: 9'pthread_mutex_init' macro redefined [-Wmacro-redefined]: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy342 : ^9 :/usr/include/pthread.h :note346: :previous definition is here9 : note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ #define pthread_mutex_destroy __libc_mutex_destroy ^In file included from cdr_custom.cIn file included from :res_convert.c44:: 37In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h127:: 127In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h21:: 21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:In file included from 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h23:: 560/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::9561:: 9warning:: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]warning : 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ ^ /usr/include/pthread.h/usr/include/pthread.h::366346::99:: notenote: : previous definition is hereprevious definition is here #define pthread_cond_init __libc_cond_init #define pthread_mutex_destroy __libc_mutex_destroy ^ ^ In file included from In file included from res_convert.ccdr_custom.c::3744: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::127127: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::2121: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::2323: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::562561::99:: warningwarning: : 'pthread_cond_destroy' macro redefined [-Wmacro-redefined]'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ ^ /usr/include/pthread.h/usr/include/pthread.h::371366::99:: notenote: : previous definition is hereprevious definition is here #define pthread_cond_destroy __libc_cond_destroy#define pthread_cond_init __libc_cond_init ^ ^ In file included from res_convert.cIn file included from :cdr_custom.c37:: 44In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:In file included from 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :In file included from 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:: 21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h21:: 23In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::23563: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::562 :warning9: :'pthread_cond_signal' macro redefined [-Wmacro-redefined] warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: 367 ^: 9/usr/include/pthread.h:: 371note:: 9previous definition is here: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from #define pthread_cond_destroy __libc_cond_destroy res_convert.c ^: 37: In file included from In file included from cdr_custom.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::44127: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::12721: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::2321: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :564/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 563'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: 9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal9 : ^ note/usr/include/pthread.h: :previous definition is here367 :9: note: #define pthread_cond_broadcast __libc_cond_broadcastprevious definition is here ^ In file included from res_convert.c#define pthread_cond_signal __libc_cond_signal: 37 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hcdr_custom.c::12744: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::21127: In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h23:: 21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 565/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 564'pthread_cond_wait' macro redefined [-Wmacro-redefined]: 9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast note ^: previous definition is here/usr/include/pthread.h :368:9:#define pthread_cond_wait __libc_cond_wait note ^: previous definition is here In file included from res_convert.c:37: In file included from #define pthread_cond_broadcast __libc_cond_broadcast/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h : ^127 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hcdr_custom.c::2144: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::23127: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h566::219: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hwarning:: 23'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:370:9:#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait note ^: previous definition is here/usr/include/pthread.h :369:9:#define pthread_cond_timedwait __libc_cond_timedwait note ^: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cdr_custom.c:44In file included from : res_smdi.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h47:: 127In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h31:: 21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h750:: 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h935::56610::9 :warning : warningarray subscript is of type 'char' [-Wchar-subscripts]: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] *pos = toupper(*pos);#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ~~~~~~~^~~~~~~~~~~~~~ ^ /usr/include/pthread.h:370/usr/include/sys/ctype_inline.h::960:: 46note:: previous definition is herenote : expanded from macro 'toupper' #define pthread_cond_timedwait __libc_cond_timedwait ^ #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from In file included from cel_custom.cres_smdi.c::4147: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::12731: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::21750: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::99423:: 22/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 556warning:: array subscript is of type 'char' [-Wchar-subscripts]9 : warning: hash = hash * 33 ^ tolower(*str++);'pthread_mutex_lock' macro redefined [-Wmacro-redefined] ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^ ^~~~ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from :format_g729.c23:: 38/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 558/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::931: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hwarning:: 750'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: array subscript is of type 'char' [-Wchar-subscripts] ^ /usr/include/pthread.h:344:9: *pos = toupper(*pos); note ~~~~~~~^~~~~~~~~~~~~~: previous definition is here /usr/include/sys/ctype_inline.h:60#define pthread_mutex_trylock __libc_mutex_trylock: 46 ^: In file included from notecel_custom.c: :expanded from macro 'toupper'41 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])): In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h: :In file included from 52/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::4723:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hnote:: 559expanded from macro 'AST_INLINE_API': 9: warning: # define AST_INLINE_API(hdr, body) inline hdr body'pthread_mutex_init' macro redefined [-Wmacro-redefined] ^~~~ #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] In file included from format_g729.c#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: 38 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::31346: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:: 750note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hprevious definition is here: 994:22: warning#define pthread_mutex_destroy __libc_mutex_destroy: array subscript is of type 'char' [-Wchar-subscripts] ^ In file included from hash = hash * 33 ^ tolower(*str++);cel_custom.c : ^~~~~~~~~~~~~~~41 : /usr/include/sys/ctype_inline.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h59::12746: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hnote:: 21: expanded from macro 'tolower'In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))561 : ^~~~9 : warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cel_custom.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ In file included from /usr/include/pthread.hiax2-parser.c::36638:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :note36: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:#define pthread_cond_init __libc_cond_init23 : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :In file included from 556func_aes.c::934:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined]31 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_locknote : ^previous definition is here /usr/include/pthread.h#define pthread_cond_destroy __libc_cond_destroy: 343 ^: 9:In file included from func_aes.cnote:: 34previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from #define pthread_mutex_lock __libc_mutex_lock/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h : ^32 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :iax2-parser.c:56338:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :warning36: : In file included from 'pthread_cond_signal' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9:#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal warning ^: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]/usr/include/pthread.h :367:9: note: previous definition is here #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^#define pthread_cond_signal __libc_cond_signal /usr/include/pthread.h ^: 345:In file included from 9func_aes.c:: 34note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h :31: In file included from #define pthread_mutex_unlock __libc_mutex_unlock/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h : ^32 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :iax2-parser.c564::38: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :warning36: : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: 9: ^ warning/usr/include/pthread.h: :'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]368 :9: note: previous definition is here #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ #define pthread_cond_broadcast __libc_cond_broadcast/usr/include/pthread.h : ^344 :9In file included from :func_aes.c :note34: : previous definition is here In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h#define pthread_mutex_trylock __libc_mutex_trylock: 32 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :565In file included from :iax2-parser.c9::38: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h: :'pthread_cond_wait' macro redefined [-Wmacro-redefined]36 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 9 ^: warning: /usr/include/pthread.h'pthread_mutex_init' macro redefined [-Wmacro-redefined]: 369:9: note: previous definition is here #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:#define pthread_cond_wait __libc_cond_wait342 : ^9 : noteIn file included from : func_aes.cprevious definition is here: 34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: #define pthread_mutex_init __libc_mutex_initIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h ^: 32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hiax2-parser.c::56638:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :warning36: : 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwaitwarning : ^'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:#define pthread_cond_timedwait __libc_cond_timedwait346 : ^9 : note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from iax2-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from iax2-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from iax2-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from iax2-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from iax2-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from iax2-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_convert.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' In file included from [CC] cel_sqlite3_custom.c -> cel_sqlite3_custom.o # define AST_INLINE_API(hdr, body) inline hdr bodycdr_custom.c : ^~~~44 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'In file included from res_convert.c:37: In file included from #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h : ^144 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h::3052: :In file included from 47/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:: 750note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hexpanded from macro 'AST_INLINE_API': 994:22: warning# define AST_INLINE_API(hdr, body) inline hdr body: array subscript is of type 'char' [-Wchar-subscripts] ^~~~ [CC] strcompat.c -> strcompat.o hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from cdr_custom.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:In file included from 60cel_custom.c::4641:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :expanded from macro 'toupper'144 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h ^: 750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h::52935::4710:: notewarning: : expanded from macro 'AST_INLINE_API'array subscript is of type 'char' [-Wchar-subscripts] # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_aes.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: In file included from notecel_custom.c: :expanded from macro 'tolower'41 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h ^~~~: 30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ res_smdi.c:731:10: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit((c = fgetc(iface->file)))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ In file included from iax2-parser.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from iax2-parser.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] createCB.c -> createCB.o In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from bridge_softmix.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h [CC] format_vox.c -> format_vox.o :561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_sms.c:50: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_sms.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_sms.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from acl.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 13 warnings generated. app_sms.c:291:9: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(*s)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ app_sms.c:754:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit(*i)) { /* ignore non-digits */ ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ app_sms.c:803:12: warning: implicit conversion from 'int' to 'char' changes value from 191 to -65 [-Wconstant-conversion] *p++ = 191; ~ ^~~ app_sms.c:844:11: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isalnum(*p)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum' #define isalnum(c) ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D))) ^~~~ app_sms.c:845:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *p = tolower (*p); ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ app_sms.c:848:11: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*p)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ app_sms.c:864:13: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace (*p)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ [CC] func_devstate.c -> func_devstate.o app_sms.c:912:12: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:912:28: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:912:46: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:912:64: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:914:13: warning: array subscript is of type 'char' [-Wchar-subscripts] (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 12) + ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:915:13: warning: array subscript is of type 'char' [-Wchar-subscripts] (((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)) << 8) + ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:916:13: warning: array subscript is of type 'char' [-Wchar-subscripts] (((isalpha(p[2]) ? 9 : 0) + (p[2] & 0xF)) << 4) + ((isalpha(p[3]) ? 9 : 0) + (p[3] & 0xF)); ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:916:62: warning: array subscript is of type 'char' [-Wchar-subscripts] (((isalpha(p[2]) ? 9 : 0) + (p[2] & 0xF)) << 4) + ((isalpha(p[3]) ? 9 : 0) + (p[3] & 0xF)); ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:929:11: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1])) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:929:27: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1])) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:930:24: warning: array subscript is of type 'char' [-Wchar-subscripts] h->ud[o++] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)); ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:930:69: warning: array subscript is of type 'char' [-Wchar-subscripts] h->ud[o++] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)); ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:944:11: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1])) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:944:27: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isxdigit(*p) && isxdigit(p[1])) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit' #define isxdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X)) ^~~~ app_sms.c:945:23: warning: array subscript is of type 'char' [-Wchar-subscripts] h->udh[o] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)); ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:945:68: warning: array subscript is of type 'char' [-Wchar-subscripts] h->udh[o] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)); ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ app_sms.c:1919:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalnum(*p)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum' #define isalnum(c) ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D))) ^~~~ 13 warnings generated. [CC] res_config_ldap.c -> res_config_ldap.o [CC] dundi-parser.c -> dundi-parser.o In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_vox.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] cdr_csv.c -> cdr_csv.o 13 warnings generated. [CC] bridge_multiplexed.c -> bridge_multiplexed.o In file included from format_vox.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_vox.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] doCPLC.c -> doCPLC.o In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from func_devstate.c:41: In file included from In file included from strcompat.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::3831: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::32750: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h::556935::910:: warningwarning: : 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] array subscript is of type 'char' [-Wchar-subscripts] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~/usr/include/pthread.h :343:9: /usr/include/sys/ctype_inline.hnote:: 60previous definition is here: 46: note: #define pthread_mutex_lock __libc_mutex_lockexpanded from macro 'toupper' ^ In file included from func_devstate.c:#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))41 : In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h :31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::3252: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h47::557 :note9: :expanded from macro 'AST_INLINE_API' warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from In file included from strcompat.cfunc_devstate.c::4138: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::31750: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::99432:: 22/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 559warning:: 9array subscript is of type 'char' [-Wchar-subscripts]: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init59 : ^46 :/usr/include/pthread.h :note: 342expanded from macro 'tolower': 9: note: previous definition is here#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ #define pthread_mutex_init __libc_mutex_init ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_devstate.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cel_sqlite3_custom.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] format_wav.c -> format_wav.o 13 warnings generated. 13 warnings generated. cel_sqlite3_custom.c:64:19: warning: unused variable 'name' [-Wunused-const-variable] static const char name[] = "cel_sqlite3_custom"; ^ [LD] eagi-sphinx-test.o -> eagi-sphinx-test [CC] adsi.c -> adsi.o In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cdr_csv.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from dundi-parser.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] eagi-test.o strcompat.o -> eagi-test In file included from dundi-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from dundi-parser.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from bridge_multiplexed.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_wav.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from adsi.c:26: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] func_sprintf.c -> func_sprintf.o In file included from format_wav.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_wav.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 14 warnings generated. [CC] enhancer.c -> enhancer.o [LD] cel_manager.o -> cel_manager.so [CC] func_sysinfo.c -> func_sysinfo.o [LD] cel_custom.o -> cel_custom.so 13 warnings generated. [CC] cdr_syslog.c -> cdr_syslog.o In file included from res_config_ldap.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_config_ldap.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_config_ldap.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here In file included from #define pthread_mutex_trylock __libc_mutex_trylockfunc_sprintf.c : ^38 : In file included from In file included from res_config_ldap.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::4931: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::12732: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::55621:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :warning23: : 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock/usr/include/pthread.h : ^342 :9: note/usr/include/pthread.h: :previous definition is here343 :9: note#define pthread_mutex_init __libc_mutex_init: previous definition is here ^ In file included from res_config_ldap.c#define pthread_mutex_lock __libc_mutex_lock: 49 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hfunc_sprintf.c::12738: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::2131: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::3223: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::557560::99:: warningwarning: : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy /usr/include/pthread.h ^: 345/usr/include/pthread.h::9346:: 9note:: previous definition is herenote : previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ #define pthread_mutex_destroy __libc_mutex_destroyIn file included from func_sprintf.c ^: 38In file included from : res_config_ldap.cIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:49:: 31In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h127:: 32In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::55821:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :warning23: : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :561:9: warning#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: 'pthread_cond_init' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:344:9:#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init note ^: previous definition is here/usr/include/pthread.h :366:9:#define pthread_mutex_trylock __libc_mutex_trylock note ^: previous definition is hereIn file included from func_sprintf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h#define pthread_cond_init __libc_cond_init: 31 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hIn file included from :res_config_ldap.c32:: 49/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 559/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9127:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :'pthread_mutex_init' macro redefined [-Wmacro-redefined]21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init 562 ^: 9/usr/include/pthread.h:: 342warning:: 9'pthread_cond_destroy' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ #define pthread_mutex_init __libc_mutex_init/usr/include/pthread.h : ^371 :In file included from 9func_sprintf.c:: 38note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h :31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h#define pthread_cond_destroy __libc_cond_destroy: 32 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :res_config_ldap.c560::499: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :warning127: : 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 563/usr/include/pthread.h::346:99:: warningnote: : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ ^In file included from func_sprintf.c/usr/include/pthread.h::38367: :In file included from 9 [LD] cel_sqlite3_custom.o -> cel_sqlite3_custom.so :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h :note31: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_signal __libc_cond_signal: 561 ^: 9:In file included from res_config_ldap.cwarning:: 49'pthread_cond_init' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init21 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/usr/include/pthread.h::36623:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 564note:: 9previous definition is here: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_init __libc_cond_init ^ In file included from func_sprintf.c:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast38 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h/usr/include/pthread.h::31368: :In file included from 9:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :note32: : previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :562:9: #define pthread_cond_broadcast __libc_cond_broadcastwarning : ^'pthread_cond_destroy' macro redefined [-Wmacro-redefined] In file included from res_config_ldap.c:#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy49 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/usr/include/pthread.h::127371: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:: 21note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_destroy __libc_cond_destroy: 565 ^: 9In file included from : func_sprintf.cwarning:: 38'pthread_cond_wait' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h : ^32 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::369563::99:: notewarning: : previous definition is here'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_wait __libc_cond_wait ^#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal In file included from ^res_config_ldap.c :/usr/include/pthread.h49:: 367In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9::127 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hprevious definition is here: 21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:#define pthread_cond_signal __libc_cond_signal23 : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :In file included from 566func_sprintf.c::938:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]31 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait: 564 ^: 9/usr/include/pthread.h:: 370warning:: 9'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast #define pthread_cond_timedwait __libc_cond_timedwait ^ ^/usr/include/pthread.h :368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from func_sprintf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from func_sprintf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from func_sprintf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_sprintf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_config_ldap.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_config_ldap.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 11 warnings generated. [CC] func_pitchshift.c -> func_pitchshift.o In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561 [CC] alaw.c -> alaw.o :9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cdr_syslog.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] f2clib.c -> f2clib.o In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_sysinfo.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 15 warnings generated. [LD] bridge_builtin_features.o -> bridge_builtin_features.so [CC] func_curl.c -> func_curl.o 13 warnings generated. [CC] cdr_sqlite3_custom.c -> cdr_sqlite3_custom.o 13 warnings generated. [CC] format_gsm.c -> format_gsm.o 13 warnings generated. 13 warnings generated. [LD] cdr_manager.o -> cdr_manager.so [CC] analys.c -> analys.o 13 warnings generated. [CC] app_alarmreceiver.c -> app_alarmreceiver.o [CC] bsynz.c -> bsynz.o [LD] bridge_simple.o -> bridge_simple.so [CC] aoc.c -> aoc.o In file included from In file included from format_gsm.cfunc_pitchshift.c::3469: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::2831: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::3632: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::55623:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 556warning:: 9'pthread_mutex_lock' macro redefined [-Wmacro-redefined]: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock343 : ^9 : note: /usr/include/pthread.hprevious definition is here: 343:9:#define pthread_mutex_lock __libc_mutex_lock note ^: previous definition is here In file included from format_gsm.c:34: #define pthread_mutex_lock __libc_mutex_lockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h ^: 28: In file included from In file included from func_pitchshift.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h::6936: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::3123: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::55732:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 557warning:: 9'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: 345 ^: 9/usr/include/pthread.h:: 345note:: 9previous definition is here: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from #define pthread_mutex_unlock __libc_mutex_unlockformat_gsm.c : ^34 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.hfunc_pitchshift.c::2869: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::3631: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::2332: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::558558::99:: warningwarning: : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ ^ /usr/include/pthread.h/usr/include/pthread.h::344344::99:: notenote: : previous definition is hereprevious definition is here #define pthread_mutex_trylock __libc_mutex_trylock#define pthread_mutex_trylock __libc_mutex_trylock ^ ^ In file included from In file included from func_pitchshift.cformat_gsm.c::6934: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h31:: 28In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h32: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h36:: 559In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h9::23 : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :'pthread_mutex_init' macro redefined [-Wmacro-redefined]559 :9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init9 : ^ note/usr/include/pthread.h: :previous definition is here342 :9: note#define pthread_mutex_init __libc_mutex_init: previous definition is here ^ In file included from func_pitchshift.c:#define pthread_mutex_init __libc_mutex_init69 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:In file included from 31format_gsm.c: :In file included from 34/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h: :In file included from 32/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h28:: 560In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h9::36 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroywarning : ^ 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]/usr/include/pthread.h :346:9: note: #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroyprevious definition is here ^ /usr/include/pthread.h:346:#define pthread_mutex_destroy __libc_mutex_destroy9 : ^ note: previous definition is hereIn file included from func_pitchshift.c:69: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h#define pthread_mutex_destroy __libc_mutex_destroy: 31 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hIn file included from :format_gsm.c32:: 34/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 561/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h::928:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h: :'pthread_cond_init' macro redefined [-Wmacro-redefined]36 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: 561 ^: 9/usr/include/pthread.h:: 366warning:9: :'pthread_cond_init' macro redefined [-Wmacro-redefined] note: previous definition is here #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init #define pthread_cond_init __libc_cond_init ^ ^ /usr/include/pthread.hIn file included from :func_pitchshift.c366::699: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.hnote:: 31previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32#define pthread_cond_init __libc_cond_init: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^:562 :9:In file included from format_gsm.cwarning:: 34'pthread_cond_destroy' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :/usr/include/pthread.h23:: 371/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::9562:: 9note:: previous definition is herewarning : 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy __libc_cond_destroy ^ In file included from #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroyfunc_pitchshift.c : ^69 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h371::319: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hnote:: 32previous definition is here: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9:#define pthread_cond_destroy __libc_cond_destroy ^warning : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]In file included from format_gsm.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal28 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h/usr/include/pthread.h::36367: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:: 23note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hprevious definition is here: 563:9: #define pthread_cond_signal __libc_cond_signalwarning : ^'pthread_cond_signal' macro redefined [-Wmacro-redefined] In file included from func_pitchshift.c:69: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal: 31 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::36732:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 564note:: 9previous definition is here: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_signal __libc_cond_signal ^ In file included from format_gsm.c:34#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h ^: 28/usr/include/pthread.h: :In file included from 368/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h::936:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :previous definition is here23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9#define pthread_cond_broadcast __libc_cond_broadcast: ^warning : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]In file included from func_pitchshift.c:69: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcastIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h ^: 32/usr/include/pthread.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h368::5659::9 :note : warningprevious definition is here: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast __libc_cond_broadcast ^ #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_waitIn file included from format_gsm.c ^: 34/usr/include/pthread.h: :In file included from 369/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h::928:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h: :previous definition is here36 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_cond_wait __libc_cond_wait: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 565:In file included from 9func_pitchshift.c:: 69warning: : In file included from 'pthread_cond_wait' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h :31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :/usr/include/pthread.h566::3699::9 :warning note: : 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_cond_wait __libc_cond_wait ^#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait In file included from ^format_gsm.c :/usr/include/pthread.h34:: 370In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h9::28 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.hprevious definition is here: 36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_cond_timedwait __libc_cond_timedwait: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from func_pitchshift.c:69: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_pitchshift.c:69: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 14 warnings generated. In file included from format_gsm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_gsm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_externalivr.c -> app_externalivr.o In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from func_curl.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_alarmreceiver.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] In file included from cdr_sqlite3_custom.c:47: #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h ^: 127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:/usr/include/pthread.h21:: 343In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h9::23 : note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :previous definition is here556 :9: warning#define pthread_mutex_lock __libc_mutex_lock: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] ^ In file included from app_alarmreceiver.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:343:#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock9 : ^ note/usr/include/pthread.h: :previous definition is here345 :9:#define pthread_mutex_lock __libc_mutex_lock note ^: previous definition is here In file included from cdr_sqlite3_custom.c:47: #define pthread_mutex_unlock __libc_mutex_unlockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h ^: 127: In file included from In file included from app_alarmreceiver.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::4421: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h558::239: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: 557warning:: 9'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock /usr/include/pthread.h ^: 344/usr/include/pthread.h::9345:: 9note:: previous definition is herenote : previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^#define pthread_mutex_unlock __libc_mutex_unlock ^In file included from app_alarmreceiver.c:In file included from 44cdr_sqlite3_custom.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h47:: 559In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9:: 127warning: : In file included from 'pthread_mutex_init' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init: 9 ^: /usr/include/pthread.hwarning:: 342'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: 9: note: previous definition is here #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h#define pthread_mutex_init __libc_mutex_init: 344 ^: 9:In file included from app_alarmreceiver.cnote:: 44previous definition is here: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9:#define pthread_mutex_trylock __libc_mutex_trylock warning ^: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] In file included from cdr_sqlite3_custom.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: 127 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::21346: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:: 23note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hprevious definition is here:559 :9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined]#define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_alarmreceiver.c:44: #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^561: 9/usr/include/pthread.h::342 :9warning:: 'pthread_cond_init' macro redefined [-Wmacro-redefined] note: previous definition is here #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init#define pthread_mutex_init __libc_mutex_init ^ ^ /usr/include/pthread.h:In file included from 366cdr_sqlite3_custom.c::947:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :previous definition is here127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_cond_init __libc_cond_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :app_alarmreceiver.c560::449: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :warning562: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]9 : warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy346 : ^9 :/usr/include/pthread.h :note371: :previous definition is here9 : note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ #define pthread_cond_destroy __libc_cond_destroyIn file included from cdr_sqlite3_custom.c ^: 47: In file included from In file included from app_alarmreceiver.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::44127: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::56321:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :warning23: : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: 561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: ^note : /usr/include/pthread.hprevious definition is here: 366:9: note#define pthread_cond_signal __libc_cond_signal: previous definition is here ^ In file included from app_alarmreceiver.c:44: #define pthread_cond_init __libc_cond_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^564 :9In file included from :cdr_sqlite3_custom.c :warning47: : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^:23 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:368::5629::9 :note : warningprevious definition is here: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast __libc_cond_broadcast ^ #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroyIn file included from app_alarmreceiver.c ^: 44/usr/include/pthread.h: :371/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::9565:: 9note:: previous definition is herewarning : 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy __libc_cond_destroy ^ #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_waitIn file included from cdr_sqlite3_custom.c : ^47 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h369::127: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :note21: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:#define pthread_cond_wait __libc_cond_wait563 :9 ^ :In file included from app_alarmreceiver.c:warning44: : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9:#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait note ^: previous definition is here/usr/include/pthread.h :370:9: note#define pthread_cond_signal __libc_cond_signal: previous definition is here ^ In file included from cdr_sqlite3_custom.c:47#define pthread_cond_timedwait __libc_cond_timedwait: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cdr_sqlite3_custom.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cdr_sqlite3_custom.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from func_curl.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_curl.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] bridge_softmix.o -> bridge_softmix.so In file included from cdr_sqlite3_custom.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cdr_sqlite3_custom.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_alarmreceiver.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ func_curl.c:637:16: warning: comparison of constant -500 with expression of type 'CURLoption' is always false [-Wtautological-constant-out-of-range-compare] if (cur->key == CURLOPT_SPECIAL_HASHCOMPAT) { ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ func_curl.c:648:17: warning: comparison of constant -500 with expression of type 'CURLoption' is always false [-Wtautological-constant-out-of-range-compare] if (cur->key == CURLOPT_SPECIAL_HASHCOMPAT) { ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from app_alarmreceiver.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] pbx_ael.c -> pbx_ael.o 13 warnings generated. [CC] app_dictate.c -> app_dictate.o [LD] bridge_multiplexed.o -> bridge_multiplexed.so In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from aoc.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] In file included from #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signalaoc.c : ^33 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h367::299: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hnote:: 144previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30#define pthread_cond_signal __libc_cond_signal: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :In file included from 750app_externalivr.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h44:: 935/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::10564:: 9warning:: array subscript is of type 'char' [-Wchar-subscripts]warning : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] *pos = toupper(*pos);#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ~~~~~~~^~~~~~~~~~~~~~ ^ /usr/include/pthread.h:368/usr/include/sys/ctype_inline.h::960:: 46note:: previous definition is herenote : expanded from macro 'toupper' #define pthread_cond_broadcast __libc_cond_broadcast ^#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) In file included from ^app_externalivr.c :44/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h52::56547::9 :note : warningexpanded from macro 'AST_INLINE_API': 'pthread_cond_wait' macro redefined [-Wmacro-redefined] # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_externalivr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: In file included from noteaoc.c: :previous definition is here33 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/aoc.h:29#define pthread_cond_timedwait __libc_cond_timedwait: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_macro.c -> app_macro.o In file included from app_externalivr.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_externalivr.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here 13 warning#define pthread_mutex_trylock __libc_mutex_trylocks generated. ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] filter.c -> filter.o [CC] format_ilbc.c -> format_ilbc.o In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx_ael.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_dictate.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ app_dictate.c:176:22: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((f->frametype == AST_FRAME_DTMF)) { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ app_dictate.c:176:22: note: remove extraneous parentheses around the comparison to silence this warning if ((f->frametype == AST_FRAME_DTMF)) { ~ ^ ~ app_dictate.c:176:22: note: use '=' to turn this equality comparison into an assignment if ((f->frametype == AST_FRAME_DTMF)) { ^~ = [CC] src/add.c -> src/add.o In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] chanwr.c -> chanwr.o In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_macro.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from format_ilbc.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_ilbc.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] format_siren14.c -> format_siren14.o 13 warnings generated. [CC] app_cdr.c -> app_cdr.o 15 warnings generated. [CC] func_strings.c -> func_strings.o 14 warnings generated. [CC] dcbias.c -> dcbias.o 13 warnings generated. [LD] cdr_custom.o -> cdr_custom.so 13 warnings generated. [CC] app.c -> app.o In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] src/code.c -> src/code.o In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_cdr.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] cdr_csv.o -> cdr_csv.so In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from func_strings.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] pbx_realtime.c -> pbx_realtime.o 13 warnings generated. [CC] codec_alaw.c -> codec_alaw.o In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_siren14.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ func_strings.c:783:2: error: illegal storage class on function RAII_VAR(struct ast_str *, str, ast_str_create(16), ast_free); ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:917:5: note: expanded from macro 'RAII_VAR' auto void _dtor_ ## varname (vartype * v); \ ^ func_strings.c:783:2: error: function definition is not allowed here /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:918:42: note: expanded from macro 'RAII_VAR' void _dtor_ ## varname (vartype * v) { dtor(*v); } \ ^ func_strings.c:1382:53: warning: array subscript is of type 'char' [-Wchar-subscripts] while ((bufptr < buf + buflen - 1) && (*bufptr++ = toupper(*dataptr++))); ^~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ func_strings.c:1395:82: warning: array subscript is of type 'char' [-Wchar-subscripts] while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = toupper(*dataptr++))); ^~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ func_strings.c:1411:53: warning: array subscript is of type 'char' [-Wchar-subscripts] while ((bufptr < buf + buflen - 1) && (*bufptr++ = tolower(*dataptr++))); ^~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ func_strings.c:1424:82: warning: array subscript is of type 'char' [-Wchar-subscripts] while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = tolower(*dataptr++))); ^~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 17 warnings and 2 errors generated. /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/Makefile.rules:109: recipe for target 'func_strings.o' failed make[1]: *** [func_strings.o] Error 1 Makefile:347: recipe for target 'funcs' failed gmake: *** [funcs] Error 2 [CC] src/debug.c -> src/debug.o In file included from format_siren14.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_siren14.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 13 warnings generated. [CC] decode.c -> decode.o [CC] iax2-provision.c -> iax2-provision.o 13 warnings generated. [LD] cdr_syslog.o -> cdr_syslog.so [CC] res_realtime.c -> res_realtime.o [CC] FrameClassify.c -> FrameClassify.o In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock13 warning ^ /usr/include/pthread.h:s345 generated. :9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] chan_sip.c -> chan_sip.o 37 warnings generated. [CC] deemp.c -> deemp.o [CC] app_talkdetect.c -> app_talkdetect.o In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ gmake: *** Waiting for unfinished jobs.... [LD] cdr_sqlite3_custom.o -> cdr_sqlite3_custom.so 13 warnings generated. [CC] format_h263.c -> format_h263.o app.c [CC] difmag.c -> difmag.o :2343:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (toupper(u[1]) == 'S') { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_alaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_realtime.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx_realtime.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] src/decode.c -> src/decode.o In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: 13note warning: sprevious definition is here generated. #define pthread_mutex_lock __libc_mutex_lock ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from chan_sip.c:221: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from [CC] sip/config_parser.c -> sip/config_parser.o iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from chan_sip.c:222: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from chan_sip.c:222: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from iax2-provision.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_directed_pickup.c -> app_directed_pickup.o [CC] format_siren7.c -> format_siren7.o In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_talkdetect.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here chan_sip.c:#define pthread_cond_destroy __libc_cond_destroy2288 : ^11 : In file included from warningsip/config_parser.c: :comparison of unsigned enum expression >= 0 is always true [-Wtautological-compare]30 : In file included from sip/include/sip.h:28: In file included from if (code >= 0 && code < ARRAY_LEN(sip_reason_table)) {/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ~~~~ ^ ~ 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from sip/config_parser.c:30: In file included from sip/include/sip.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_talkdetect.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:In file included from 10sip/config_parser.c:: 30warning: : In file included from array subscript is of type 'char' [-Wchar-subscripts]sip/include/sip.h :29: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935: *pos = toupper(*pos);10 : ~~~~~~~^~~~~~~~~~~~~~ warning: array subscript is of type 'char' [-Wchar-subscripts] /usr/include/sys/ctype_inline.h:60:46: *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~note : expanded from macro 'toupper' /usr/include/sys/ctype_inline.h:60:46#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])): ^note : expanded from macro 'toupper'/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h :52:47: #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))note : ^expanded from macro 'AST_INLINE_API' /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47# define AST_INLINE_API(hdr, body) inline hdr body: ^~~~note : expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_talkdetect.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hsip/config_parser.c::75030: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hIn file included from :sip/include/sip.h:99429:: 22/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h::994 :warning22: :array subscript is of type 'char' [-Wchar-subscripts] warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ hash = hash * 33 ^ tolower(*str++);/usr/include/sys/ctype_inline.h : ^~~~~~~~~~~~~~~59 :/usr/include/sys/ctype_inline.h46:: 59note: :46expanded from macro 'tolower': note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 13 warnings generated. [CC] sip/srtp.c -> sip/srtp.o [CC] src/long_term.c -> src/long_term.o In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_siren7.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] res_pktccops.c -> res_pktccops.o [CC] format_g726.c -> format_g726.o In file included from format_siren7.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_siren7.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] dyptrk.c -> dyptrk.o 13 warnings generated. [CC] ast_expr2.c -> ast_expr2.o chan_sip.c:10106:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = tolower(*pos); ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 13 warnings generated. [CC] res_adsi.c -> res_adsi.o [CC] encode.c -> encode.o In file included from format_g726.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_g726.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23In file included from : app_directed_pickup.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::41557: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127warning: : In file included from 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^556 :/usr/include/pthread.h:9345:: 9warning:: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]note : previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_g726.c:39: #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h: ^28 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h343::239: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :note558: :previous definition is here9 : warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]#define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_directed_pickup.c:41#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :/usr/include/pthread.h127:: 344In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h9::21 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hprevious definition is here: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557#define pthread_mutex_trylock __libc_mutex_trylock: 9 ^: warningIn file included from : format_g726.c'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]: 39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h ^: 36/usr/include/pthread.h: :In file included from 345/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hnote:: 559previous definition is here: 9: warning: #define pthread_mutex_unlock __libc_mutex_unlock'pthread_mutex_init' macro redefined [-Wmacro-redefined] ^ In file included from app_directed_pickup.c:41: #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_initIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h ^: 127: /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:34221: In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hnote:: 558previous definition is here:9 : warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]#define pthread_mutex_init __libc_mutex_init ^ In file included from format_g726.c:#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock39 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h/usr/include/pthread.h::28344: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h::36 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hprevious definition is here: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:#define pthread_mutex_trylock __libc_mutex_trylock560 : ^ 9In file included from :app_directed_pickup.c :warning41: : In file included from 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroyIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: 23/usr/include/pthread.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h346::5599::9 :note : warningprevious definition is here: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy __libc_mutex_destroy ^#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^In file included from format_g726.c/usr/include/pthread.h::39342: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:: 28note: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: #define pthread_mutex_init __libc_mutex_initIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: 23In file included from : app_directed_pickup.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::41561: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127warning: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h'pthread_cond_init' macro redefined [-Wmacro-redefined]: 21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^560 :/usr/include/pthread.h9::366 :warning: 9'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy #define pthread_cond_init __libc_cond_init ^ ^ /usr/include/pthread.h:346In file included from :format_g726.c9::39 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.hprevious definition is here: 28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36#define pthread_mutex_destroy __libc_mutex_destroy: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23In file included from : app_directed_pickup.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::41562: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127warning: : In file included from 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 561/usr/include/pthread.h::9371:: 9warning: :'pthread_cond_init' macro redefined [-Wmacro-redefined] note: previous definition is here #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^#define pthread_cond_destroy __libc_cond_destroy /usr/include/pthread.h ^: 366:In file included from 9format_g726.c:: 39note: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h: 28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36#define pthread_cond_init __libc_cond_init: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: 23: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.happ_directed_pickup.c::56341:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h warning: :'pthread_cond_signal' macro redefined [-Wmacro-redefined]127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::367562::99:: warningnote: : 'pthread_cond_destroy' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_cond_signal __libc_cond_signal #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ ^ In file included from /usr/include/pthread.hformat_g726.c::37139:: In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h: :note28: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from #define pthread_cond_destroy __libc_cond_destroy/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.happ_directed_pickup.c::56441:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :warning127: : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::368563::99:: notewarning: : previous definition is here'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast __libc_cond_broadcast#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ ^ In file included from /usr/include/pthread.h:format_g726.c367::399: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:note28: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from #define pthread_cond_signal __libc_cond_signal/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : In file included from app_directed_pickup.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::41565:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127warning: : In file included from 'pthread_cond_wait' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait23 : ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h::564369::99:: notewarning: : previous definition is here'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_wait __libc_cond_wait ^ #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ In file included from format_g726.c/usr/include/pthread.h:39:: 368In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h9::28 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.hprevious definition is here: 36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_cond_broadcast __libc_cond_broadcast: 23 ^ : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.happ_directed_pickup.c::56641:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :warning127: : 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait23 : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :/usr/include/pthread.h565::3709:: 9warning: :'pthread_cond_wait' macro redefined [-Wmacro-redefined] note: previous definition is here #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^#define pthread_cond_timedwait __libc_cond_timedwait /usr/include/pthread.h ^: 369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_directed_pickup.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ chan_sip.c:15895:2: error: illegal storage class on function RAII_VAR(char *, tmpf, NULL, ast_free); ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:917:5: note: expanded from macro 'RAII_VAR' auto void _dtor_ ## varname (vartype * v); \ ^ chan_sip.c:15895:2: error: function definition is not allowed here /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:918:42: note: expanded from macro 'RAII_VAR' void _dtor_ ## varname (vartype * v) { dtor(*v); } \ ^ [CC] gainquant.c -> gainquant.o chan_sip.c:16263:130: warning: address of array 'referdata->replaces_callid_fromtag' will always evaluate to 'true' [-Wpointer-bool-conversion] ast_debug(2, "Attended transfer: Will use Replace-Call-ID : %s F-tag: %s T-tag: %s\n", referdata->replaces_callid, referdata->replaces_callid_fromtag ? referdata->replaces_callid_fromtag : "", referdata->replaces_callid_totag ? referdata->replaces_callid_totag : "" ); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/logger.h:238:26: note: expanded from macro 'ast_debug' ast_log(AST_LOG_DEBUG, __VA_ARGS__); \ ^~~~~~~~~~~ chan_sip.c:16263:214: warning: address of array 'referdata->replaces_callid_totag' will always evaluate to 'true' [-Wpointer-bool-conversion] ast_debug(2, "Attended transfer: Will use Replace-Call-ID : %s F-tag: %s T-tag: %s\n", referdata->replaces_callid, referdata->replaces_callid_fromtag ? referdata->replaces_callid_fromtag : "", referdata->replaces_callid_totag ? referdata->replaces_callid_totag : "" ); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/logger.h:238:26: note: expanded from macro 'ast_debug' ast_log(AST_LOG_DEBUG, __VA_ARGS__); \ ^~~~~~~~~~~ In file included from format_g726.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_g726.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_directed_pickup.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_directed_pickup.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ chan_sip.c:16721:2: error: illegal storage class on function RAII_VAR(char *, ofbuf, NULL, ast_free); /* beware, everyone starts pointing to this */ ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:917:5: note: expanded from macro 'RAII_VAR' auto void _dtor_ ## varname (vartype * v); \ ^ chan_sip.c:16721:2: error: function definition is not allowed here /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:918:42: note: expanded from macro 'RAII_VAR' void _dtor_ ## varname (vartype * v) { dtor(*v); } \ ^ chan_sip.c:16722:2: error: illegal storage class on function RAII_VAR(char *, namebuf, NULL, ast_free); ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:917:5: note: expanded from macro 'RAII_VAR' auto void _dtor_ ## varname (vartype * v); \ ^ chan_sip.c:16722:2: error: function definition is not allowed here /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:918:42: note: expanded from macro 'RAII_VAR' void _dtor_ ## varname (vartype * v) { dtor(*v); } \ ^ chan_sip.c:17628:18: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] stalecontext = '\0'; ^~~~ chan_sip.c:17634:20: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] stalecontext = '\0'; ^~~~ chan_sip.c:18225:74: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion] ast_cli(fd, " Sess-Refresh : %s\n", strefresherparam2str(peer->stimer.st_ref)); ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ chan_sip.c:18282:82: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion] astman_append(s, "SIP-Sess-Refresh: %s\r\n", strefresherparam2str(peer->stimer.st_ref)); ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ chan_sip.c:18422:78: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion] ast_cli(a->fd, " Sess-Refresh : %s\n", strefresherparam2str(user->stimer.st_ref)); ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~ chan_sip.c:18874:72: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion] ast_cli(a->fd, " Session Refresher: %s\n", strefresherparam2str(global_st_refresher)); ~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_h263.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] res_crypto.c -> res_crypto.o In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from format_h263.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_h263.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_pktccops.c:57: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] ast_expr2f.c -> ast_expr2f.o In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from sip/srtp.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ chan_sip.c:24438:14: warning: address of array 'p->refer->replaces_callid_totag' will always evaluate to 'true' [-Wpointer-bool-conversion] p->refer->replaces_callid_totag ? ";to-tag=" : "", ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ ~ /usr/include/ssp/stdio.h:62:59: note: expanded from macro 'snprintf' __builtin___snprintf_chk(str, len, 0, __ssp_bos(str), __VA_ARGS__) ^~~~~~~~~~~ chan_sip.c:24440:14: warning: address of array 'p->refer->replaces_callid_fromtag' will always evaluate to 'true' [-Wpointer-bool-conversion] p->refer->replaces_callid_fromtag ? ";from-tag=" : "", ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ~ /usr/include/ssp/stdio.h:62:59: note: expanded from macro 'snprintf' __builtin___snprintf_chk(str, len, 0, __ssp_bos(str), __VA_ARGS__) ^~~~~~~~~~~ 13 warnings generated. [CC] app_db.c -> app_db.o In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. 13 warnings generated. In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h [CC] asterisk.c -> asterisk.o :52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_adsi.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] energy.c -> energy.o 25 warnings and 6 errors generated. 13 warnings generated. /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/Makefile.rules:109: recipe for target 'chan_sip.o' failed make[1]: *** [chan_sip.o] Error 1 make[1]: *** Waiting for unfinished jobs.... [CC] getCBvec.c -> getCBvec.o [CC] format_pcm.c -> format_pcm.o 13 warnings generated. [CC] pbx_spool.c -> pbx_spool.o [CC] astfd.c -> astfd.o In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_waitforring.c -> app_waitforring.o In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from ast_expr2.y:217: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_crypto.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ ast_expr2.y:542:23: warning: array subscript is of type 'char' [-Wchar-subscripts] for (i = 0, isint = (isdigit(s[0]) || s[0] == '-' || s[0]=='.'); isint && i < strlen(s); i++) ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ ast_expr2.y:544:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit(s[i]) && s[i] != '.') { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [CC] src/lpc.c -> src/lpc.o In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ast_expr2.fl:64: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from ast_expr2.fl:64: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from ast_expr2.fl:64: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] ham84.c -> ham84.o In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_pcm.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from asterisk.c:116: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from format_pcm.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_pcm.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from asterisk.c:117: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from asterisk.c:117: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_waitforring.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 14 warnings generated. 13 warnings generated. [CC] app_amd.c -> app_amd.o [CC] hp100.c -> hp100.o 13 warnings generated. [LD] pbx_config.o -> pbx_config.so In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from pbx_spool.c:47: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] src/preprocess.c -> src/preprocess.o In file included from pbx_spool.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx_spool.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] format_wav_gsm.c -> format_wav_gsm.o In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_db.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_amd.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_forkcdr.c -> app_forkcdr.o [CC] src/rpe.c -> src/rpe.o 13 warnings generated. [CC] res_phoneprov.c -> res_phoneprov.o [CC] invert.c -> invert.o 13 warnings generated. asterisk.c:818:2: warning: array subscript is of type 'char' [-Wchar-subscripts] DEFINE_PROFILE_MIN_MAX_VALUES; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ asterisk.c:791:7: note: expanded from macro 'DEFINE_PROFILE_MIN_MAX_VALUES' if (isdigit(a->argv[3][0])) { \ ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ asterisk.c:853:2: warning: array subscript is of type 'char' [-Wchar-subscripts] DEFINE_PROFILE_MIN_MAX_VALUES; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ asterisk.c:791:7: note: expanded from macro 'DEFINE_PROFILE_MIN_MAX_VALUES' if (isdigit(a->argv[3][0])) { \ ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [CC] src/gsm_destroy.c -> src/gsm_destroy.o [CC] helpfun.c -> helpfun.o asterisk.c:1964:9: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(*s)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ asterisk.c:1969:23: warning: array subscript is of type 'char' [-Wchar-subscripts] (s[4] == '\0' || isspace(s[4]))) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ asterisk.c:2656:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isspace(*ptr)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_wav_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] irc2pc.c -> irc2pc.o In file included from format_wav_gsm.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_wav_gsm.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_forkcdr.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] codec_g722.c -> codec_g722.o In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_phoneprov.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] format_jpeg.c -> format_jpeg.o [CC] res_timing_pthread.c -> res_timing_pthread.o 13 warnings generated. [CC] app_read.c -> app_read.o 13 warnings generated. [CC] g722/g722_encode.c -> g722/g722_encode.o 13 warnings generated. [CC] g722/g722_decode.c -> g722/g722_decode.o In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_g722.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from codec_g722.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_g722.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_jpeg.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] ivfilt.c -> ivfilt.o In file included from format_jpeg.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_jpeg.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] pbx_loopback.o -> pbx_loopback.so 13 warnings generated. [CC] hpInput.c -> hpInput.o In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :res_timing_pthread.c26:: 39In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h127:: 31In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h21:: 32In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::23556: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::563 :warning9: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined] warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ ^ /usr/include/pthread.h:367:/usr/include/pthread.h9::343 :note9: :previous definition is here note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ #define pthread_mutex_lock __libc_mutex_lockIn file included from app_read.c ^: 37: In file included from In file included from res_timing_pthread.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h::3926: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::31127: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::3221: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h557::239: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :warning564: :'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]9 : warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: 345 ^: 9/usr/include/pthread.h:: 368note:: 9previous definition is here: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ #define pthread_cond_broadcast __libc_cond_broadcastIn file included from res_timing_pthread.c ^: 39In file included from : app_read.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h37:: 31In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h26:: 32In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::127558: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:: 21warning: : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock9 : ^ warning/usr/include/pthread.h: :344'pthread_cond_wait' macro redefined [-Wmacro-redefined]: 9: note: previous definition is here#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:#define pthread_mutex_trylock __libc_mutex_trylock369 : ^9 : In file included from noteres_timing_pthread.c: :previous definition is here39 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:#define pthread_cond_wait __libc_cond_wait31 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:In file included from 32app_read.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h37:: 559In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h9::26 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h'pthread_mutex_init' macro redefined [-Wmacro-redefined]: 127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::342566::99:: notewarning: : previous definition is here'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_mutex_init __libc_mutex_init ^ #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwaitIn file included from res_timing_pthread.c ^: 39/usr/include/pthread.h: :In file included from 370/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::931:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h: :previous definition is here32 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:#define pthread_cond_timedwait __libc_cond_timedwait9 : ^ warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_timing_pthread.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] src/gsm_decode.c -> src/gsm_decode.o [CC] hpOutput.c -> hpOutput.o 13 warnings generated. In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_read.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] src/gsm_encode.c -> src/gsm_encode.o [CC] src/gsm_explode.c -> src/gsm_explode.o [CC] lpcdec.c -> lpcdec.o [CC] lpcenc.c -> lpcenc.o 13 warnings generated. [LD] pbx_dundi.o dundi-parser.o -> pbx_dundi.so [CC] res_jabber.c -> res_jabber.o 15 warnings generated. [CC] format_g723.c -> format_g723.o [CC] format_g719.c -> format_g719.o 13 warnings generated. [CC] codec_adpcm.c -> codec_adpcm.o 13 warnings generated. [CC] app_adsiprog.c -> app_adsiprog.o [CC] codec_ulaw.c -> codec_ulaw.o In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_jabber.c:46: In file included from [CC] app_waitforsilence.c -> app_waitforsilence.o /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] pbx_ael.o -> pbx_ael.so [CC] lpcini.c -> lpcini.o In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_jabber.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] iCBConstruct.c -> iCBConstruct.o [CC] astmm.c -> astmm.o 13 warnings generated. In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_g719.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] codec_ilbc.c -> codec_ilbc.o In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_ulaw.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_g719.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_g719.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ res_jabber.c:1367:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(buf[pos+1])) { ^~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ 13 warnings generated. 13 warnings generated. In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] [CC] iCBSearch.c -> iCBSearch.o #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] iLBC_decode.c -> iLBC_decode.o In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] In file included from #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroycodec_adpcm.c : ^38 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::371556::99:: notewarning: : previous definition is here'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_g723.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9/usr/include/pthread.h:: 343warning:: 9'pthread_cond_signal' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal #define pthread_mutex_lock __libc_mutex_lock ^ ^/usr/include/pthread.h :367In file included from :codec_adpcm.c9::38 : note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :previous definition is here557 :9: warning#define pthread_cond_signal __libc_cond_signal: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] ^ In file included from format_g723.c:36: #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h ^: 28/usr/include/pthread.h: :In file included from 345/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h::936:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :previous definition is here23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:#define pthread_mutex_unlock __libc_mutex_unlock9 : ^ warningIn file included from : codec_adpcm.c'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: 38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast warning ^: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]/usr/include/pthread.h :368:9: note: #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylockprevious definition is here ^ /usr/include/pthread.h:344#define pthread_cond_broadcast __libc_cond_broadcast: 9 ^: noteIn file included from : format_g723.cprevious definition is here: 36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:#define pthread_mutex_trylock __libc_mutex_trylock28 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.hIn file included from :codec_adpcm.c36:: 38In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::23559: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::565 :warning9: :'pthread_mutex_init' macro redefined [-Wmacro-redefined] warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait/usr/include/pthread.h : ^342 :/usr/include/pthread.h9::369 :note9: :previous definition is here note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ #define pthread_cond_wait __libc_cond_waitIn file included from codec_adpcm.c ^: 38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hformat_g723.c::56036:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h :warning28: : 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 566/usr/include/pthread.h::9346:: 9warning:: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]note : previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ ^ In file included from /usr/include/pthread.hcodec_adpcm.c::37038:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 561note:: 9previous definition is here: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait __libc_cond_timedwait ^ #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_adpcm.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_adpcm.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_adpcm.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_adpcm.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_adpcm.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_waitforsilence.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] res_curl.c -> res_curl.o [CC] lpfilt.c -> lpfilt.o [CC] app_controlplayback.c -> app_controlplayback.o In file included from codec_adpcm.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_adpcm.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from format_g723.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_g723.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] src/gsm_implode.c -> src/gsm_implode.o [LD] pbx_realtime.o -> pbx_realtime.so In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast 13 ^ warning /usr/include/pthread.h:368:9:s generated. note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] format_sln.c -> format_sln.o In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_adsiprog.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] median.c -> median.o app_adsiprog.c:211:54: warning: array subscript is of type 'char' [-Wchar-subscripts] } else if ((strlen(src) > 2) && (src[0] == '0') && (tolower(src[1]) == 'x')) { ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ app_adsiprog.c:221:39: warning: array subscript is of type 'char' [-Wchar-subscripts] } else if ((!ast_strlen_zero(src) && isdigit(src[0]))) { ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ app_adsiprog.c:1105:28: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion] state->key->retstr[0] = 128; ~ ^~~ app_adsiprog.c:1141:26: warning: implicit conversion from 'int' to 'char' changes value from 130 to -126 [-Wconstant-conversion] state->sub->data[0] = 130; ~ ^~~ app_adsiprog.c:1258:20: warning: implicit conversion from 'int' to 'char' changes value from 129 to -127 [-Wconstant-conversion] disp->data[0] = 129; ~ ^~~ [LD] pbx_spool.o -> pbx_spool.so 13 warnings generated. [CC] format_h264.c -> format_h264.o In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] In file included from #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signalapp_controlplayback.c : ^36 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h367::269: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hnote:: 127previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: #define pthread_cond_signal __libc_cond_signalIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^ :23In file included from : res_curl.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::40556: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:: 31warning: : In file included from 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ ^ /usr/include/pthread.h:368:9: note: previous definition is here /usr/include/pthread.h:343:9#define pthread_cond_broadcast __libc_cond_broadcast: ^note : In file included from previous definition is hereres_curl.c: 40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31#define pthread_mutex_lock __libc_mutex_lock: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :32In file included from : app_controlplayback.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::36565:: In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:: 26warning: : In file included from 'pthread_cond_wait' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait21 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/usr/include/pthread.h::23369: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::557 :note9: :previous definition is here warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_cond_wait __libc_cond_wait ^ In file included from res_curl.c#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: 40 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::34531:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :note32: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hprevious definition is here: 566:9: #define pthread_mutex_unlock __libc_mutex_unlockwarning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] ^ In file included from app_controlplayback.c:36: #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwaitIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h ^: 26/usr/include/pthread.h: :In file included from 370/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9127:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :previous definition is here21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_cond_timedwait __libc_cond_timedwait: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: ^558 :9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_ilbc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_curl.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] res_speech.c -> res_speech.o In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_controlplayback.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] format_sln16.o -> format_sln16.so 13 warnings generated. [CC] codec_g726.c -> codec_g726.o [CC] mload.c -> mload.o In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_h264.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from format_sln.c:33: In file included from In file included from codec_g726.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h::3828: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h556::369: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hwarning:: 23'pthread_mutex_lock' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock /usr/include/pthread.h ^: 343:9:/usr/include/pthread.h :note343: :previous definition is here9 : note#define pthread_mutex_lock __libc_mutex_lock: previous definition is here ^ In file included from #define pthread_mutex_lock __libc_mutex_lockcodec_g726.c : ^38 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hformat_sln.c::55733:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h: 28warning: : In file included from 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h::557345::99:: warningnote: : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ ^In file included from codec_g726.c/usr/include/pthread.h::38345: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::558 :note9: :previous definition is here warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from format_sln.c#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: 33 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h::34428:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :note36: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_mutex_trylock __libc_mutex_trylock: 558 ^: 9In file included from :codec_g726.c :warning38: : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :559:9: warning#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:344:9#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init: ^note : /usr/include/pthread.hprevious definition is here: 342:9: #define pthread_mutex_trylock __libc_mutex_trylocknote : ^previous definition is here In file included from format_sln.c:33: #define pthread_mutex_init __libc_mutex_initIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h ^: 28In file included from : codec_g726.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h38:: 36/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 560/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 559'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: 9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init346 : ^9 :/usr/include/pthread.h :note342: :previous definition is here9 : note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ #define pthread_mutex_init __libc_mutex_initIn file included from codec_g726.c ^: 38In file included from : format_sln.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::33561: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:: 28warning: : In file included from 'pthread_cond_init' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^560 :/usr/include/pthread.h9::366 :warning9: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] note: previous definition is here #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy #define pthread_cond_init __libc_cond_init ^ ^/usr/include/pthread.h :346:In file included from 9codec_g726.c:: 38note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hprevious definition is here: 562:9: warning#define pthread_mutex_destroy __libc_mutex_destroy: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] ^ In file included from format_sln.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: 28 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h::37136:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :note23: : previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :561:9:#define pthread_cond_destroy __libc_cond_destroy warning ^: 'pthread_cond_init' macro redefined [-Wmacro-redefined]In file included from codec_g726.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: 9 ^: /usr/include/pthread.hwarning:: 366'pthread_cond_signal' macro redefined [-Wmacro-redefined]: 9: note: previous definition is here #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ #define pthread_cond_init __libc_cond_init/usr/include/pthread.h : ^367 :9In file included from :format_sln.c :note33: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from #define pthread_cond_signal __libc_cond_signal/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h : ^36 : In file included from In file included from codec_g726.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::3823: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::564562::99:: warningwarning: : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ ^ /usr/include/pthread.h/usr/include/pthread.h::368371::99:: notenote: : previous definition is hereprevious definition is here #define pthread_cond_broadcast __libc_cond_broadcast#define pthread_cond_destroy __libc_cond_destroy ^ ^ In file included from In file included from codec_g726.cformat_sln.c::3833: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h565::289: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.hwarning:: 36'pthread_cond_wait' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 563 ^: 9/usr/include/pthread.h:: 369warning:: 9'pthread_cond_signal' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^#define pthread_cond_wait __libc_cond_wait /usr/include/pthread.h ^: 367In file included from :codec_g726.c9::38 : note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :previous definition is here566 :9: #define pthread_cond_signal __libc_cond_signalwarning : ^'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] In file included from format_sln.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait: 28 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h::37036:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :note23: : previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :564:9:#define pthread_cond_timedwait __libc_cond_timedwait warning ^: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from format_sln.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from format_sln.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from codec_ilbc.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_ilbc.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] format_g729.o -> format_g729.so In file included from format_h264.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_h264.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from In file included from format_sln.ccodec_g726.c::3440: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h::3131: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::750750: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h::935935::1010:: warningwarning: : array subscript is of type 'char' [-Wchar-subscripts]array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:/usr/include/sys/ctype_inline.h46::60 :note46: :expanded from macro 'toupper' note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h : ^52 :47/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:: 52note:: 47expanded from macro 'AST_INLINE_API': note: expanded from macro 'AST_INLINE_API'# define AST_INLINE_API(hdr, body) inline hdr body ^~~~ # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from format_sln.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hIn file included from :750codec_g726.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h40:: 994In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h22::31 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.harray subscript is of type 'char' [-Wchar-subscripts]: 750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h: hash = hash * 33 ^ tolower(*str++);994 : ^~~~~~~~~~~~~~~22 :/usr/include/sys/ctype_inline.h :59warning:: 46array subscript is of type 'char' [-Wchar-subscripts]: note: expanded from macro 'tolower' hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))/usr/include/sys/ctype_inline.h : ^~~~59 :46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] codec_a_mu.c -> codec_a_mu.o [CC] iLBC_encode.c -> iLBC_encode.o 13 warnings generated. [CC] src/gsm_create.c -> src/gsm_create.o In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] onset.c -> onset.o 13 warnings generated. In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_speech.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] res_agi.c -> res_agi.o In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_a_mu.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] pitsyn.c -> pitsyn.o [CC] app_url.c -> app_url.o 13 warnings generated. [LD] format_vox.o -> format_vox.so [CC] src/gsm_print.c -> src/gsm_print.o [CC] codec_lpc10.c -> codec_lpc10.o 13 warnings generated. 13 warnings generated. [CC] placea.c -> placea.o [CC] iLBC_test.c -> iLBC_test.o [CC] app_originate.c -> app_originate.o In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock [CC] src/gsm_option.c -> src/gsm_option.o ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ [LD] format_wav.o -> format_wav.so In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_agi.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 18 warnings generated. [CC] astobj2.c -> astobj2.o src/gsm_create.c:7:19: warning: unused variable 'ident' [-Wunused-const-variable] static char const ident[] = "$Header$"; ^ 1 warning generated. [CC] app_authenticate.c -> app_authenticate.o [CC] LPCdecode.c -> LPCdecode.o In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_lpc10.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] res_mutestream.c -> res_mutestream.o In file included from codec_lpc10.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_lpc10.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] placev.c -> placev.o [CC] app_playtones.c -> app_playtones.o [LD] format_gsm.o -> format_gsm.so In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_url.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] src/short_term.c -> src/short_term.o In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_originate.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] app_setcallerid.c -> app_setcallerid.o In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from astobj2.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_mutestream.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from astobj2.c:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from astobj2.c:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] LPCencode.c -> LPCencode.o [LD] format_ilbc.o -> format_ilbc.so [CC] preemp.c -> preemp.o In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_authenticate.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] format_siren14.o -> format_siren14.so In file included from app_authenticate.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_authenticate.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_playtones.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] prepro.c -> prepro.o [CC] res_monitor.c -> res_monitor.o src/short_term.c:67:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] STEP( -2560, -16, 13107 ); ^ ~~~~~ src/short_term.c:60:32: note: expanded from macro 'STEP' temp1 = GSM_SUB( temp1, B << 1 ); \ ~ ^ src/short_term.c:70:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] STEP( -1792, -8, 17476 ); ^ ~~~~~ src/short_term.c:60:32: note: expanded from macro 'STEP' temp1 = GSM_SUB( temp1, B << 1 ); \ ~ ^ src/short_term.c:71:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] STEP( -341, -4, 31454 ); ^ ~~~~ src/short_term.c:60:32: note: expanded from macro 'STEP' temp1 = GSM_SUB( temp1, B << 1 ); \ ~ ^ src/short_term.c:72:2: warning: shifting a negative signed value is undefined [-Wshift-negative-value] STEP( -1144, -4, 29708 ); ^ ~~~~~ src/short_term.c:60:32: note: expanded from macro 'STEP' temp1 = GSM_SUB( temp1, B << 1 ); \ ~ ^ 13 warnings generated. [CC] codec_gsm.c -> codec_gsm.o [CC] lsf.c -> lsf.o In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_setcallerid.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] format_h263.o -> format_h263.so In file included from app_setcallerid.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_setcallerid.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] src/table.c -> src/table.o 18 warnings generated. [CC] audiohook.c -> audiohook.o 13 warnings generated. In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: [CC] packing.c -> packing.o warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_gsm.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] app_celgenuserevent.c -> app_celgenuserevent.o In file included from codec_gsm.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_gsm.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] format_siren7.o -> format_siren7.so [CC] StateConstructW.c -> StateConstructW.o [CC] codec_speex.c -> codec_speex.o 4 warnings generated. 13 warnings generated. [LD] format_g726.o -> format_g726.so [CC] random.c -> random.o [LD] codec_alaw.o -> codec_alaw.so [LD] format_pcm.o -> format_pcm.so In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is hereIn file included from res_monitor.c:38#define pthread_cond_signal __libc_cond_signal: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 556In file included from :audiohook.c9::36 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h'pthread_mutex_lock' macro redefined [-Wmacro-redefined]: 127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: 9 ^: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:343:9:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast note ^: previous definition is here/usr/include/pthread.h :368:9#define pthread_mutex_lock __libc_mutex_lock: ^note : previous definition is hereIn file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_broadcast __libc_cond_broadcast: 557 ^: 9In file included from :audiohook.c :warning36: : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock21 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/usr/include/pthread.h::23345: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::565 :note9: :previous definition is here warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_waitres_monitor.c : ^38 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::369558::99:: notewarning: : previous definition is here'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_cond_wait __libc_cond_wait ^ #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylockIn file included from audiohook.c ^: 36/usr/include/pthread.h: :In file included from 344/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9127:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :previous definition is here21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_trylock __libc_mutex_trylock: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 566In file included from :res_monitor.c9::38 : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]559 :9: warning: #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait'pthread_mutex_init' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:370:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init9 : ^ note/usr/include/pthread.h: :previous definition is here342 :9: #define pthread_cond_timedwait __libc_cond_timedwaitnote : ^previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_monitor.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from audiohook.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_monitor.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_monitor.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22In file included from :app_celgenuserevent.c :warning34: : array subscript is of type 'char' [-Wchar-subscripts]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: hash = hash * 33 ^ tolower(*str++);In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h ^~~~~~~~~~~~~~~: 32/usr/include/sys/ctype_inline.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h59::55646::9 :note : warningexpanded from macro 'tolower': 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body [CC] res_musiconhold.c -> res_musiconhold.o ^~~~ In file included from app_celgenuserevent.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] codec_g722.o g722/g722_encode.o g722/g722_decode.o -> codec_g722.so [LD] format_wav_gsm.o -> format_wav_gsm.so [CC] res_stun_monitor.c -> res_stun_monitor.o 13 warnings generated. [CC] rcchk.c -> rcchk.o [CC] synths.c -> synths.o [AR] src/add.o src/code.o src/debug.o src/decode.o src/long_term.o src/lpc.o src/preprocess.o src/rpe.o src/gsm_destroy.o src/gsm_decode.o src/gsm_encode.o src/gsm_explode.o src/gsm_implode.o src/gsm_create.o src/gsm_print.o src/gsm_option.o src/short_term.o src/table.o -> lib/libgsm.a 13 warnings generated. [CC] app_queue.c -> app_queue.o In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from codec_speex.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/translate.h:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] format_jpeg.o -> format_jpeg.so In file included from codec_speex.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from codec_speex.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] res_rtp_asterisk.c -> res_rtp_asterisk.o [CC] app_record.c -> app_record.o [LD] format_g723.o -> format_g723.so In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_musiconhold.c:49: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_queue.c:73: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] StateSearchW.c -> StateSearchW.o In file included from res_musiconhold.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_musiconhold.c:51: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_dial.c -> app_dial.o In file included from app_queue.c:75: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_queue.c:75: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] res_calendar.c -> res_calendar.o res_musiconhold.c:1378:50: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (!strcasecmp(tmp->name, "digit") && (isdigit(*tmp->value) || strchr("*#", *tmp->value))) ^~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [CC] tbdm.c -> tbdm.o res_musiconhold.c:1717:49: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (!strcasecmp(var->name, "digit") && (isdigit(*var->value) || strchr("*#", *var->value))) ^~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_stun_monitor.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ app_queue.c:2817:16: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] avgholdmins = abs(((qe->parent->holdtime + 30) - (now - qe->start)) / 60); ^ app_queue.c:2817:16: note: use function 'labs' instead avgholdmins = abs(((qe->parent->holdtime + 30) - (now - qe->start)) / 60); ^~~ labs app_queue.c:2821:18: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] avgholdsecs = (abs(((qe->parent->holdtime + 30) - (now - qe->start))) - 60 * avgholdmins) / qe->parent->roundingseconds; ^ app_queue.c:2821:18: note: use function 'labs' instead avgholdsecs = (abs(((qe->parent->holdtime + 30) - (now - qe->start))) - 60 * avgholdmins) / qe->parent->roundingseconds; ^~~ labs In file included from app_record.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_record.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_record.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_record.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] In file included from res_rtp_asterisk.c:44: #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_initIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h ^: 26/usr/include/pthread.h: :In file included from 342/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9127:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :previous definition is here21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_init __libc_mutex_init: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 556In file included from :app_record.c9::37 : warningIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined]26 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock23 : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :560:9:/usr/include/pthread.h :warning343: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]9 : note: previous definition is here #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy #define pthread_mutex_lock __libc_mutex_lock ^ ^/usr/include/pthread.h :346:9In file included from : res_rtp_asterisk.cnote:: 44previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from #define pthread_mutex_destroy __libc_mutex_destroy/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h : ^127 : In file included from In file included from app_record.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::3721: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::2623: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::127557: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:: 21warning: : In file included from 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: ^warning : /usr/include/pthread.h'pthread_cond_init' macro redefined [-Wmacro-redefined]: 345:9: note: #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_initprevious definition is here ^ /usr/include/pthread.h:366#define pthread_mutex_unlock __libc_mutex_unlock: 9 ^: noteIn file included from : res_rtp_asterisk.cprevious definition is here: 44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:#define pthread_cond_init __libc_cond_init26 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:In file included from 127app_record.c: :In file included from 37/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :In file included from 21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h: :In file included from 26/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :In file included from 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h127:: 558In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h9::21 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9:#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock warning ^: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined]/usr/include/pthread.h :344:9: #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroynote : ^previous definition is here /usr/include/pthread.h:371:9#define pthread_mutex_trylock __libc_mutex_trylock: ^note : previous definition is hereIn file included from res_rtp_asterisk.c:44: In file included from #define pthread_cond_destroy __libc_cond_destroy/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h : ^26 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:app_record.c127: In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:3721: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::26: In file included from 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h127:: 559In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h9::21 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h'pthread_mutex_init' macro redefined [-Wmacro-redefined]: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init9 : ^warning : /usr/include/pthread.h'pthread_cond_signal' macro redefined [-Wmacro-redefined]: 342:9:#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal note ^: previous definition is here/usr/include/pthread.h :367:9:#define pthread_mutex_init __libc_mutex_init note ^: previous definition is here In file included from res_rtp_asterisk.c:44: #define pthread_cond_signal __libc_cond_signalIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h ^: 26In file included from : app_record.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h37:: 127In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h26:: 21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h127:: 23In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::21560: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h9::23 : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]564 :9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: 9 ^: /usr/include/pthread.hnote:: 368previous definition is here: 9: note: #define pthread_mutex_destroy __libc_mutex_destroyprevious definition is here ^ In file included from res_rtp_asterisk.c#define pthread_cond_broadcast __libc_cond_broadcast: 44 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :app_record.c26:: 37In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h127:: 26In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h21:: 127In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h23:: 21/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 561/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 565'pthread_cond_init' macro redefined [-Wmacro-redefined]: 9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 366: ^9 :/usr/include/pthread.h :note369: :previous definition is here9 : note: previous definition is here#define pthread_cond_init __libc_cond_init ^ In file included from #define pthread_cond_wait __libc_cond_waitres_rtp_asterisk.c : ^44 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.happ_record.c::2637: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h::12726: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::21127: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::2321: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h562::23: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 566warning:: 9:'pthread_cond_destroy' macro redefined [-Wmacro-redefined] warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait/usr/include/pthread.h : ^371 :/usr/include/pthread.h9::370 :note9: :previous definition is here note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ #define pthread_cond_timedwait __libc_cond_timedwaitIn file included from res_rtp_asterisk.c ^: 44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_rtp_asterisk.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_rtp_asterisk.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_rtp_asterisk.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ app_queue.c:5021:18: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] holdtime = abs((now - qe->start) / 60); ^ app_queue.c:5021:18: note: use function 'labs' instead holdtime = abs((now - qe->start) / 60); ^~~ labs app_queue.c:5022:22: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] holdtimesecs = abs((now - qe->start) % 60); ^ app_queue.c:5022:22: note: use function 'labs' instead holdtimesecs = abs((now - qe->start) % 60); ^~~ labs app_queue.c:5123:19: warning: address of array 'qe->parent->monfmt' will always evaluate to 'true' [-Wpointer-bool-conversion] if (qe->parent->monfmt && *qe->parent->monfmt) { ~~~~~~~~~~~~^~~~~~ ~~ In file included from res_rtp_asterisk.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_rtp_asterisk.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_record.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_record.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] format_g719.o -> format_g719.so app_queue.c:7460:9: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(*list)) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ app_queue.c:7469:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (!isspace(*list) && *list != '\0') { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ app_queue.c:7473:11: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(*list)) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ app_queue.c:7486:12: warning: array subscript is of type 'char' [-Wchar-subscripts] while (!isspace(*list) && *list != '\0') { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ app_queue.c:7490:11: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(*list)) { ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ res_rtp_asterisk.c:1192:8: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] if (abs(rtp->lastts - pred) < MAX_TIMESTAMP_SKEW) { ^ res_rtp_asterisk.c:1192:8: note: remove the call to 'abs' since unsigned values cannot be negative if (abs(rtp->lastts - pred) < MAX_TIMESTAMP_SKEW) { ^~~ res_rtp_asterisk.c:1195:50: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] ast_debug(3, "Difference is %d, ms is %u\n", abs(rtp->lastts - pred), ms); ^ res_rtp_asterisk.c:1195:50: note: remove the call to 'abs' since unsigned values cannot be negative ast_debug(3, "Difference is %d, ms is %u\n", abs(rtp->lastts - pred), ms); ^~~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/logger.h:238:26: note: expanded from macro 'ast_debug' ast_log(AST_LOG_DEBUG, __VA_ARGS__); \ ^ res_rtp_asterisk.c:1206:8: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] if (abs(rtp->lastts - pred) < 7200) { ^ res_rtp_asterisk.c:1206:8: note: remove the call to 'abs' since unsigned values cannot be negative if (abs(rtp->lastts - pred) < 7200) { ^~~ res_rtp_asterisk.c:1210:81: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] ast_debug(3, "Difference is %d, ms is %u (%u), pred/ts/samples %u/%d/%d\n", abs(rtp->lastts - pred), ms, ms * 90, rtp->lastts, pred, frame->samples); ^ res_rtp_asterisk.c:1210:81: note: remove the call to 'abs' since unsigned values cannot be negative ast_debug(3, "Difference is %d, ms is %u (%u), pred/ts/samples %u/%d/%d\n", abs(rtp->lastts - pred), ms, ms * 90, rtp->lastts, pred, frame->samples); ^~~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/logger.h:238:26: note: expanded from macro 'ast_debug' ast_log(AST_LOG_DEBUG, __VA_ARGS__); \ ^ res_rtp_asterisk.c:1220:8: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] if (abs(rtp->lastts - pred) < 7200) { ^ res_rtp_asterisk.c:1220:8: note: remove the call to 'abs' since unsigned values cannot be negative if (abs(rtp->lastts - pred) < 7200) { ^~~ res_rtp_asterisk.c:1224:76: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] ast_debug(3, "Difference is %d, ms is %u, pred/ts/samples %u/%d/%d\n", abs(rtp->lastts - pred), ms, rtp->lastts, pred, frame->samples); ^ res_rtp_asterisk.c:1224:76: note: remove the call to 'abs' since unsigned values cannot be negative ast_debug(3, "Difference is %d, ms is %u, pred/ts/samples %u/%d/%d\n", abs(rtp->lastts - pred), ms, rtp->lastts, pred, frame->samples); ^~~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/logger.h:238:26: note: expanded from macro 'ast_debug' ast_log(AST_LOG_DEBUG, __VA_ARGS__); \ ^ 13 warnings generated. In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9:app_queue.c :warning8490: :'pthread_cond_init' macro redefined [-Wmacro-redefined]19 : warning: #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_initunused variable 'qpm_cmd_usage' [-Wunused-const-variable] ^ static const char qpm_cmd_usage[] = /usr/include/pthread.h : ^366 :app_queue.c9::8493 :note19: :previous definition is here warning: unused variable 'qum_cmd_usage' [-Wunused-const-variable]#define pthread_cond_init __libc_cond_init static const char qum_cmd_usage[] = ^ ^In file included from res_calendar.capp_queue.c::358496: :In file included from 19/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:: 24warning: : In file included from unused variable 'qsmp_cmd_usage' [-Wunused-const-variable]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h :30static const char qsmp_cmd_usage[] =: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] voicin.c -> voicin.o 13 warnings generated. 13 warnings generated. In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_calendar.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/calendar.h:24: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] format_sln.o -> format_sln.so [LD] codec_adpcm.o -> codec_adpcm.so res_calendar.c:1030:24: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] int event_startdiff = abs(start - event->start); ^ res_calendar.c:1030:24: note: use function 'labs' instead int event_startdiff = abs(start - event->start); ^~~ labs res_calendar.c:1031:22: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] int event_enddiff = abs(end - event->end); ^ res_calendar.c:1031:22: note: use function 'labs' instead int event_enddiff = abs(end - event->end); ^~~ labs res_calendar.c:1044:20: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] int startdiff = abs(iter->event->start - start); ^ res_calendar.c:1044:20: note: use function 'labs' instead int startdiff = abs(iter->event->start - start); ^~~ labs res_calendar.c:1053:19: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] int enddiff = abs(iter->event->end - end); ^ res_calendar.c:1053:19: note: use function 'labs' instead int enddiff = abs(iter->event->end - end); ^~~ labs [CC] app_speech_utils.c -> app_speech_utils.o 13 warnings generated. [LD] format_h264.o -> format_h264.so [CC] autochan.c -> autochan.o 13 warnings generated. [CC] syntFilter.c -> syntFilter.o In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_dial.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] autoservice.c -> autoservice.o [CC] vparms.c -> vparms.o In file included from app_dial.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_dial.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from autochan.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/autochan.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from autochan.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from autochan.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] res_fax.c -> res_fax.o In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] bridging.c -> bridging.o In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from autoservice.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_speech_utils.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] res_limit.c -> res_limit.o 14 warnings generated. [LD] codec_ulaw.o -> codec_ulaw.so [CC] res_ael_share.c -> res_ael_share.o [AR] anaFilter.o constants.o createCB.o doCPLC.o enhancer.o filter.o FrameClassify.o gainquant.o getCBvec.o helpfun.o hpInput.o hpOutput.o iCBConstruct.o iCBSearch.o iLBC_decode.o iLBC_encode.o iLBC_test.o LPCdecode.o LPCencode.o lsf.o packing.o StateConstructW.o StateSearchW.o syntFilter.o -> libilbc.a 13 warnings generated. [CC] app_channelredirect.c -> app_channelredirect.o [LD] codec_g726.o -> codec_g726.so In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 15 warnings generated. [CC] callerid.c -> callerid.o In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_fax.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] In file included from res_limit.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: 31 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:/usr/include/pthread.h935::34310::9 :warning : notearray subscript is of type 'char' [-Wchar-subscripts]: previous definition is here *pos = toupper(*pos); #define pthread_mutex_lock __libc_mutex_lock ~~~~~~~^~~~~~~~~~~~~~ ^ /usr/include/sys/ctype_inline.hIn file included from :res_ael_share.c60::3746: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hnote: :expanded from macro 'toupper'127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^: 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h52::47557:: 9note:: expanded from macro 'AST_INLINE_API'warning : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:In file included from 564res_limit.c::932:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h: :'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]31 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast994 : ^22 :/usr/include/pthread.h :warning368: :array subscript is of type 'char' [-Wchar-subscripts]9 : note: previous definition is here hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h#define pthread_cond_broadcast __libc_cond_broadcast: 59 ^: 46:In file included from res_ael_share.cnote:: 37expanded from macro 'tolower': In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h : ^~~~21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ res_limit.c:196:42: warning: array subscript is of type 'char' [-Wchar-subscripts] ast_cli(a->fd, "%c%s (%s) is %s.\n", toupper(desc[0]), desc + 1, a->argv[1], printlimit); ^~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ [CC] ael/ael_lex.c -> ael/ael_lex.o In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_ael_share.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] app_ices.c -> app_ices.o In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_channelredirect.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 14 warnings generated. In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from callerid.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] ccss.c -> ccss.o In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] codec_a_mu.o -> codec_a_mu.so In file included from callerid.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from callerid.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [AR] f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o placea.o placev.o preemp.o prepro.o random.o rcchk.o synths.o tbdm.o voicin.o vparms.o -> liblpc10.a In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from bridging.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ callerid.c:237:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(cidstring[i])) ^~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ callerid.c:244:13: warning: array subscript is of type 'char' [-Wchar-subscripts] } else if (isdigit(cidstring[0])) { ^~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ callerid.c:250:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(cidstring[i])) ^~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 13 warnings generated. [CC] ael/ael.tab.c -> ael/ael.tab.o [CC] cdr.c -> cdr.o In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_ices.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ccss.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9In file included from :app_ices.c :note45: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h#define pthread_mutex_trylock __libc_mutex_trylock: 30 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hael.flex::75084: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hIn file included from :935:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h10::32 : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :array subscript is of type 'char' [-Wchar-subscripts]559 :9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init: 60 ^: 46/usr/include/pthread.h:: 342note:: 9expanded from macro 'toupper' : #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))note : ^previous definition is here /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47:#define pthread_mutex_init __libc_mutex_init note ^: expanded from macro 'AST_INLINE_API' In file included from ael.flex:84: In file included from # define AST_INLINE_API(hdr, body) inline hdr body/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h : ^~~~32 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:In file included from 9app_ices.c:: 45note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h#define pthread_cond_init __libc_cond_init: 30 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hael.flex::75084: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hIn file included from :994/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::2232:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 562array subscript is of type 'char' [-Wchar-subscripts]: 9: warning: hash = hash * 33 ^ tolower(*str++);'pthread_cond_destroy' macro redefined [-Wmacro-redefined] ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46:#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy note: ^expanded from macro 'tolower' /usr/include/pthread.h:371:9:#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) note ^~~~: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] cel.c -> cel.o [CC] app_chanspy.c -> app_chanspy.o In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from ael.flex:84: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from ccss.c:33: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from ccss.c:33: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ ccss.c:703:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!sscanf(value, "%30u", &value_as_uint) == 1) { ^ ~~ ccss.c:703:6: note: add parentheses after the '!' to evaluate the comparison first if (!sscanf(value, "%30u", &value_as_uint) == 1) { ^ ( ) ccss.c:703:6: note: add parentheses around left hand side expression to silence this warning if (!sscanf(value, "%30u", &value_as_uint) == 1) { ^ ( ) 13 warnings generated. [CC] channel.c -> channel.o In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cdr.c:44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from cdr.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cdr.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 19 warnings generated. [CC] app_echo.c -> app_echo.o [LD] codec_gsm.o gsm/lib/libgsm.a -> codec_gsm.so In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 20 warnings generated. In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_chanspy.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ Makefile:347: recipe for target 'channels' failed gmake: *** [channels] Error 2 [CC] chanvars.c -> chanvars.o In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here In file included from #define pthread_cond_init __libc_cond_initael.y : ^34 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hcel.c::55640:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :warning127: : 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock9 : ^ warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:343:9: note#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: previous definition is here ^ /usr/include/pthread.h:#define pthread_mutex_lock __libc_mutex_lock371 : ^9 : In file included from noteael.y: :previous definition is here34 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9#define pthread_cond_destroy __libc_cond_destroy: ^warning : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h ^: 21/usr/include/pthread.h: :In file included from 345/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hnote:: 563previous definition is here: 9: warning: #define pthread_mutex_unlock __libc_mutex_unlock'pthread_cond_signal' macro redefined [-Wmacro-redefined] ^ In file included from ael.y:34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal:558 : ^9 :/usr/include/pthread.h :warning367: :'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]9 : note: previous definition is here #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ #define pthread_cond_signal __libc_cond_signal/usr/include/pthread.h : ^344 :9:In file included from cel.cnote:: 40previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: #define pthread_mutex_trylock __libc_mutex_trylockIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h ^: 21In file included from : ael.yIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h34:: 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h559::5649::9 :warning : warning'pthread_mutex_init' macro redefined [-Wmacro-redefined]: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast/usr/include/pthread.h : ^342 :/usr/include/pthread.h9::368 :note9: :previous definition is here note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ #define pthread_cond_broadcast __libc_cond_broadcastIn file included from ael.y ^: 34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:In file included from 560cel.c::940:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h::565346::99:: warningnote: : 'pthread_cond_wait' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ ^ In file included from /usr/include/pthread.hael.y::36934:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 561note:: 9previous definition is here: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_wait __libc_cond_wait ^ In file included from #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_initcel.c : ^40 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h366::1279: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hnote:: 21previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_cond_init __libc_cond_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^ 566In file included from :ael.y9::34 : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]562 :9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy370 : ^9 :/usr/include/pthread.h :note371: :previous definition is here9 : note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ael.y:34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ael.y:34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ael.y:34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ael.y:34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from ael.y:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ~~~~~~~^~~~~~~~~~~~~~ ^ /usr/include/sys/ctype_inline.h/usr/include/pthread.h::60368::469:: notenote: : expanded from macro 'toupper'previous definition is here #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) #define pthread_cond_broadcast __libc_cond_broadcast ^ ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:In file included from 47channel.c:: 42note: : In file included from expanded from macro 'AST_INLINE_API'/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h :26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h# define AST_INLINE_API(hdr, body) inline hdr body: 127 ^~~~: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hael.y::2337: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h566::7509: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h :warning994: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]22 : warning: array subscript is of type 'char' [-Wchar-subscripts] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ hash = hash * 33 ^ tolower(*str++); /usr/include/pthread.h ^~~~~~~~~~~~~~~: 370/usr/include/sys/ctype_inline.h::959::46 :note : noteprevious definition is here: expanded from macro 'tolower' #define pthread_cond_timedwait __libc_cond_timedwait #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^ ^~~~ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cel.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from channel.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ cel.c:294:25: warning: comparison of constant -1 with expression of type 'enum ast_cel_event_type' is always false [-Wtautological-constant-out-of-range-compare] } else if (event_type == -1) { ~~~~~~~~~~ ^ ~~ app_chanspy.c:959:12: warning: array subscript is of type 'char' [-Wchar-subscripts] *s = tolower(*s); ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ cel.c:419:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] if (flag < 0 || flag >= ARRAY_LEN(cel_ama_flags)) { ~~~~ ^ ~ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from chanvars.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/chanvars.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_echo.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ channel.c:1739:17: warning: address of array 'cmp_args->context' will always evaluate to 'true' [-Wpointer-bool-conversion] if (cmp_args->context && strcasecmp(chan->context, cmp_args->context) && ~~~~~~~~~~^~~~~~~ ~~ In file included from chanvars.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from chanvars.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] ael/pval.c -> ael/pval.o [LD] codec_speex.o -> codec_speex.so 17 warnings generated. channel.c:4284:29: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] } else if ((f->frametype == AST_FRAME_VOICE)) { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ channel.c:4284:29: note: remove extraneous parentheses around the comparison to silence this warning } else if ((f->frametype == AST_FRAME_VOICE)) { ~ ^ ~ channel.c:4284:29: note: use '=' to turn this equality comparison into an assignment } else if ((f->frametype == AST_FRAME_VOICE)) { ^~ = [CC] cli.c -> cli.o [LD] codec_ilbc.o ilbc/libilbc.a -> codec_ilbc.so [LD] codec_lpc10.o lpc10/liblpc10.a -> codec_lpc10.so 13 warnings generated. [CC] res_clioriginate.c -> res_clioriginate.o In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from cli.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] config.c -> config.o In file included from cli.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from cli.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from ael/pval.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ cli.c:2287:9: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(*s)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ cli.c:2400:32: warning: array subscript is of type 'char' [-Wchar-subscripts] for (i = 0; i < max_equal && toupper(prevstr[i]) == toupper(match_list[which][i]); i++) ^~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ cli.c:2400:55: warning: array subscript is of type 'char' [-Wchar-subscripts] for (i = 0; i < max_equal && toupper(prevstr[i]) == toupper(match_list[which][i]); i++) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9:ael/pval.c :warning860: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]16 : warning: array subscript is of type 'char' [-Wchar-subscripts] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h while (*e && !isdigit(*e)) : 346 ^~~~~~~~~~~: 9:/usr/include/sys/ctype_inline.h :note51: :previous definition is here44 : note: expanded from macro 'isdigit'#define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_clioriginate.c#define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)): 35 ^~~~: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_clioriginate.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ ael/pval.c:3556:22: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*strp2 && isspace(*strp2)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ ael/pval.c:3560:23: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*strp3 && isspace(*strp3)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ ael/pval.c:3610:22: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*strp2 && isspace(*strp2)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ ael/pval.c:3614:23: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*strp3 && isspace(*strp3)) ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ 14 warnings generated. In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] res_config_curl.c -> res_config_curl.o In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from config.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 15 warnings generated. 13 warnings generated. 13 warnings generated. [CC] res_rtp_multicast.c -> res_rtp_multicast.o [CC] app_zapateller.c -> app_zapateller.o [CC] res_clialiases.c -> res_clialiases.o In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_zapateller.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_zapateller.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_zapateller.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] app_followme.c -> app_followme.o 13 warnings generated. [CC] app_verbose.c -> app_verbose.o 13 warnings generated. [CC] data.c -> data.o In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_config_curl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hres_config_curl.c::12741: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::21144: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h::2330: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h560::7509: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h :warning935: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]10 : warning: array subscript is of type 'char' [-Wchar-subscripts] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ *pos = toupper(*pos);/usr/include/pthread.h : ~~~~~~~^~~~~~~~~~~~~~346 :9/usr/include/sys/ctype_inline.h:: 60note:: 46previous definition is here: note: expanded from macro 'toupper' #define pthread_mutex_destroy __libc_mutex_destroy ^ #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))In file included from res_rtp_multicast.c ^: 44: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h52::2647: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hnote:: 127expanded from macro 'AST_INLINE_API': In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h# define AST_INLINE_API(hdr, body) inline hdr body: 21 ^~~~: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from In file included from res_config_curl.c/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::4121: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::14423: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h::56230:: 9In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:: 750warning: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h'pthread_cond_destroy' macro redefined [-Wmacro-redefined]: 994:22: warning: #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroyarray subscript is of type 'char' [-Wchar-subscripts] ^ /usr/include/pthread.h:371 hash = hash * 33 ^ tolower(*str++);: 9 ^~~~~~~~~~~~~~~: /usr/include/sys/ctype_inline.hnote:: 59previous definition is here: 46: note: #define pthread_cond_destroy __libc_cond_destroyexpanded from macro 'tolower' ^ In file included from #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))res_rtp_multicast.c : ^~~~44 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_rtp_multicast.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_clialiases.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 13 warnings generated. [CC] app_playback.c -> app_playback.o [CC] datastore.c -> datastore.o 13 warnings generated. [CC] app_directory.c -> app_directory.o In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: In file included from noteapp_verbose.c: :previous definition is here35 : In file included from #define pthread_cond_wait __libc_cond_wait/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h : ^31 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hdata.c::3237: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h556::319: In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :warning32: : 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ ^ /usr/include/pthread.h:370:/usr/include/pthread.h9::343 :note9: :previous definition is here note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from data.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_verbose.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_followme.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_disa.c -> app_disa.o 13 warnings generated. In file included from app_followme.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_followme.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_mp3.c -> app_mp3.o In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_disa.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_directory.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_directory.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_directory.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :datastore.c26:: 32In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h127:: 28In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h21:: 23In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::23556: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::558 :warning9: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined] warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ ^/usr/include/pthread.h :344:9: note/usr/include/pthread.h: :previous definition is here343 :9: #define pthread_mutex_trylock __libc_mutex_trylocknote : ^previous definition is here In file included from app_directory.c:40#define pthread_mutex_lock __libc_mutex_lock: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h :26In file included from : datastore.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h32:: 127In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h28:: 21In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h23:: 23/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h557::9559:: 9warning:: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]warning : 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ ^/usr/include/pthread.h :/usr/include/pthread.h345::3429::9 :note : noteprevious definition is here: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock #define pthread_mutex_init __libc_mutex_init ^ ^ In file included from In file included from datastore.capp_directory.c::3240: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h::2826: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::23127: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h558::219: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hwarning:: 23'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylockwarning : ^'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:344:9: note#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: previous definition is here ^ /usr/include/pthread.h:346:#define pthread_mutex_trylock __libc_mutex_trylock9 : ^ noteIn file included from : datastore.cprevious definition is here: 32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h:#define pthread_mutex_destroy __libc_mutex_destroy28 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from :app_directory.c23:: 40/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 559/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h::926:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :'pthread_mutex_init' macro redefined [-Wmacro-redefined]127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::342561::99:: notewarning: : previous definition is here'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init __libc_mutex_init ^ #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_initIn file included from datastore.c ^: 32/usr/include/pthread.h: :In file included from 366/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h::928:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :previous definition is here23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560#define pthread_cond_init __libc_cond_init: 9 ^: warningIn file included from : app_directory.c'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: 40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroyIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h ^: 127/usr/include/pthread.h: :In file included from 346/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::921: : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hprevious definition is here: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562#define pthread_mutex_destroy __libc_mutex_destroy: 9 ^: In file included from warningdatastore.c: :'pthread_cond_destroy' macro redefined [-Wmacro-redefined]32 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h::561371::99:: warningnote: : 'pthread_cond_init' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_cond_destroy __libc_cond_destroy#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ ^ In file included from /usr/include/pthread.happ_directory.c::36640:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h :note26: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from #define pthread_cond_init __libc_cond_init/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h : ^21 : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hdatastore.c::3223: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h::56328:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23warning: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:'pthread_cond_signal' macro redefined [-Wmacro-redefined]562 :9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: 9 ^: /usr/include/pthread.hnote:: 371previous definition is here: 9: note: #define pthread_cond_signal __libc_cond_signalprevious definition is here ^ In file included from #define pthread_cond_destroy __libc_cond_destroyapp_directory.c : ^40 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :datastore.c26:: 32In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h127:: 28In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h21:: 23In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::56323:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 564warning:: 9'pthread_cond_signal' macro redefined [-Wmacro-redefined]: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast367 : ^9 :/usr/include/pthread.h :note368: :previous definition is here9 : note: previous definition is here#define pthread_cond_signal __libc_cond_signal ^ #define pthread_cond_broadcast __libc_cond_broadcastIn file included from datastore.c ^: 32In file included from : app_directory.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h40:: 28In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h26:23: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:564::1279: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hwarning:: 21'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: 9 ^: /usr/include/pthread.hwarning:: 368'pthread_cond_wait' macro redefined [-Wmacro-redefined]: 9: note: previous definition is here #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h#define pthread_cond_broadcast __libc_cond_broadcast: 369 ^: 9:In file included from datastore.cnote:: 32previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h:28#define pthread_cond_wait __libc_cond_wait: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :In file included from 23app_directory.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h40:: 565In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h9::26 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h'pthread_cond_wait' macro redefined [-Wmacro-redefined]: 127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :/usr/include/pthread.h23:: 369/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::9566:: 9note:: previous definition is herewarning : 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait __libc_cond_wait ^ In file included from #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwaitdatastore.c : ^32 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/datastore.h370::289: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hnote:: 23previous definition is here: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9#define pthread_cond_timedwait __libc_cond_timedwait: ^ warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_disa.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_disa.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 14 warnings generated. In file included from app_directory.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_directory.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from datastore.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from datastore.c:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ app_directory.c:178:11: warning: array subscript is of type 'char' [-Wchar-subscripts] digit = toupper(*text++); ^~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. 13 warnings generated. In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ 13In file included from warningapp_playback.c:s37 generated. : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_mp3.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] res_security_log.c -> res_security_log.o [CC] app_parkandannounce.c -> app_parkandannounce.o [CC] app_getcpeid.c -> app_getcpeid.o In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_getcpeid.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_getcpeid.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_getcpeid.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_timing_kqueue.o -> res_timing_kqueue.so In file included from app_playback.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:In file included from 935app_playback.c:10::37 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.harray subscript is of type 'char' [-Wchar-subscripts]: 26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: *pos = toupper(*pos);In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h ~~~~~~~^~~~~~~~~~~~~~: 30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h/usr/include/sys/ctype_inline.h::75060: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h46::994 :note22: :expanded from macro 'toupper' warning: array subscript is of type 'char' [-Wchar-subscripts] #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ hash = hash * 33 ^ tolower(*str++); /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h ^~~~~~~~~~~~~~~: 52/usr/include/sys/ctype_inline.h::4759::46 :note : noteexpanded from macro 'AST_INLINE_API': expanded from macro 'tolower' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_parkandannounce.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_mp3.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_mp3.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] db.c -> db.o [CC] devicestate.c -> devicestate.o 13 warnings generated. 13 warnings generated. [CC] dial.c -> dial.o [LD] res_smdi.o -> res_smdi.so [CC] app_readexten.c -> app_readexten.o 13 warnings generated. [LD] res_convert.o -> res_convert.so In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from devicestate.c:125: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] res_config_ldap.o -> res_config_ldap.so In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from dial.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from res_security_log.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: devicestate.cnote:: 230expanded from macro 'tolower': 31: warning: comparison of constant -100 with expression of type 'const enum ast_channel_state' is always true [-Wtautological-constant-out-of-range-compare]#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ for (i = 0; chan2dev[i].chan != -100; i++) { ~~~~~~~~~~~~~~~~ ^ ~~~~ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from db.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_senddtmf.c -> app_senddtmf.o 13 warnings generated. [CC] app_while.c -> app_while.o [CC] dns.c -> dns.o In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_senddtmf.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 16 warnings generated. 13 warnings generated. [LD] res_realtime.o -> res_realtime.so 14 warnings generated. In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from [CC] dnsmgr.c -> dnsmgr.o /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_readexten.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_milliwatt.c -> app_milliwatt.o 13 warnings generated. In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 14 warnings generated. 13 warnings generated. In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_while.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_pktccops.o -> res_pktccops.so [LD] res_adsi.o -> res_adsi.so In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from dns.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] dsp.c -> dsp.o [CC] enum.c -> enum.o In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from dnsmgr.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from dnsmgr.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from dnsmgr.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] event.c -> event.o 13 warnings generated. 13 warnings generated. [CC] features.c -> features.o [CC] file.c -> file.o [CC] app_exec.c -> app_exec.o [LD] res_crypto.o -> res_crypto.so 13 warnings generated. 13 warnings generated. [CC] app_readfile.c -> app_readfile.o [LD] res_phoneprov.o -> res_phoneprov.so In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from event.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from enum.c:68: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 18 warnings generated. In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from event.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from event.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556event.c::9280:: 11warning: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined] warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock if (type < 0 || type >= ARRAY_LEN(event_names)) { ^ ~~~~ ^ ~ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from features.c:In file included from 42enum.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h68:: 561In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h9::26 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h'pthread_cond_init' macro redefined [-Wmacro-redefined]: 144: In file included from #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h ^ :/usr/include/pthread.h30:: 366In file included from : [CC] app_stack.c -> app_stack.o 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:: 750note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.hprevious definition is here: 935:10: #define pthread_cond_init __libc_cond_initwarning : ^array subscript is of type 'char' [-Wchar-subscripts] In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h *pos = toupper(*pos);: 562 ~~~~~~~^~~~~~~~~~~~~~: 9: warning/usr/include/sys/ctype_inline.h: :'pthread_cond_destroy' macro redefined [-Wmacro-redefined]60 :46: note#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: expanded from macro 'toupper' ^ /usr/include/pthread.h:#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))371 : ^9 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.hnote:: 52previous definition is here: 47: note: #define pthread_cond_destroy __libc_cond_destroyexpanded from macro 'AST_INLINE_API' ^ In file included from # define AST_INLINE_API(hdr, body) inline hdr bodyfeatures.c : ^~~~42 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] In file included from enum.c:68: In file included from #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/enum.h : ^26 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h368::9144:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h: :previous definition is here30 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:#define pthread_cond_broadcast __libc_cond_broadcast750 : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h :In file included from 994features.c::2242:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 565array subscript is of type 'char' [-Wchar-subscripts]: 9: warning: hash = hash * 33 ^ tolower(*str++);'pthread_cond_wait' macro redefined [-Wmacro-redefined] ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 46 ^: /usr/include/pthread.hnote:: 369:expanded from macro 'tolower'9 : note: previous definition is here#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ #define pthread_cond_wait __libc_cond_wait ^ In file included from features.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_milliwatt.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_timing_pthread.o -> res_timing_pthread.so event.c:718:17: warning: comparison of constant -1 with expression of type 'enum ast_event_type' is always false [-Wtautological-constant-out-of-range-compare] if (event_type == -1) ~~~~~~~~~~ ^ ~~ event.c:744:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] if (type < 0 || type >= AST_EVENT_TOTAL) { ~~~~ ^ ~ enum.c:216:7: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(*p2)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ enum.c:303:61: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] (unsigned char *)answer, c->apex, sizeof(c->apex) - 1)) < 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ enum.c:34513: warning7:s generated. warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(*p2)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ enum.c:454:6: warning: array subscript is of type 'char' [-Wchar-subscripts] if (tolower(flags[0]) != 'u') { ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] fixedjitterbuf.c -> fixedjitterbuf.o enum.c:537:29: warning: array subscript is of type 'char' [-Wchar-subscripts] if ((subst[0] == '\\') && isdigit(subst[1])) { /* is this character the beginning of a backreference */ ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ enum.c:559:14: warning: array subscript is of type 'char' [-Wchar-subscripts] } else if (isprint(*subst)) { ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:54:44: note: expanded from macro 'isprint' #define isprint(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_R)) ^~~~ In file included from features.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from features.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ enum.c:816:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(*p2)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ enum.c:835:7: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(*p2)) { ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [LD] res_jabber.o -> res_jabber.so [CC] frame.c -> frame.o enum.c:946:7: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(number[pos])) { ^~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 13 warnings generated. [CC] framehook.c -> framehook.o In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :dsp.c557::539: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.hwarning:: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]36 : [CC] fskmodem.c -> fskmodem.o In file included from framehook.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from In file included from frame.cframehook.c::3534: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h556::1279: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hwarning: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined]21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9:#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock warning ^: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:343:9#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: ^note : /usr/include/pthread.hprevious definition is here: 345:9: note#define pthread_mutex_lock __libc_mutex_lock: previous definition is here ^ In file included from frame.c#define pthread_mutex_unlock __libc_mutex_unlock: 35 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :framehook.c557::349: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hwarning: :'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h::558345::99:: warningnote: : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ ^ /usr/include/pthread.hIn file included from :frame.c344::359: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :note558: :previous definition is here9 : warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from framehook.c#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: 34 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::344127:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :note21: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_mutex_trylock __libc_mutex_trylock: 559 ^: 9:In file included from frame.cwarning:: 35'pthread_mutex_init' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_initwarning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:342:9: #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_initnote : ^previous definition is here /usr/include/pthread.h:342:9#define pthread_mutex_init __libc_mutex_init: ^note : In file included from previous definition is hereframehook.c :34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h#define pthread_mutex_init __libc_mutex_init: 127 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :frame.c21:35: : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::56023:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::560 :warning9: :'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy /usr/include/pthread.h ^: 346/usr/include/pthread.h::9346:: 9note:: previous definition is herenote : previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy #define pthread_mutex_destroy __libc_mutex_destroy ^ ^In file included from frame.cIn file included from :framehook.c35:: 34: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :561/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9127:: In file included from warning: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h'pthread_cond_init' macro redefined [-Wmacro-redefined]: 21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: 561 ^: 9/usr/include/pthread.h:: 366warning:: 9'pthread_cond_init' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^#define pthread_cond_init __libc_cond_init /usr/include/pthread.h ^: 366:In file included from 9frame.c:: 35note: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hprevious definition is here: 562:9: #define pthread_cond_init __libc_cond_initwarning : ^'pthread_cond_destroy' macro redefined [-Wmacro-redefined] In file included from framehook.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy127 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :/usr/include/pthread.h21:: 371In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h9::23 : note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :previous definition is here562 :9: warning: #define pthread_cond_destroy __libc_cond_destroy'pthread_cond_destroy' macro redefined [-Wmacro-redefined] ^ In file included from frame.c:35#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 563/usr/include/pthread.h::9371::9: warningnote: : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_cond_destroy __libc_cond_destroy #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ ^In file included from framehook.c/usr/include/pthread.h::34367: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127note: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_cond_signal __libc_cond_signal/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :frame.c563::35: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 564warning:: 9'pthread_cond_signal' macro redefined [-Wmacro-redefined]: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast367 : ^9 :/usr/include/pthread.h :note368: :previous definition is here9 : note: previous definition is here#define pthread_cond_signal __libc_cond_signal ^ In file included from framehook.c#define pthread_cond_broadcast __libc_cond_broadcast: 34 ^: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:In file included from 127frame.c: :In file included from 35/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h21:: 565In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h9::23 : warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :'pthread_cond_wait' macro redefined [-Wmacro-redefined]564 :9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: ^note: previous definition is here/usr/include/pthread.h :368:9:#define pthread_cond_wait __libc_cond_wait note ^: previous definition is here In file included from frame.c:35: #define pthread_cond_broadcast __libc_cond_broadcast/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^566 :In file included from 9framehook.c:: 34warning: : In file included from 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::370565::99:: notewarning: : previous definition is here'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait __libc_cond_timedwait #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^In file included from fixedjitterbuf.c ^: 38/usr/include/pthread.h: :In file included from 369/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::932:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hnote:: 556previous definition is here: 9: warning#define pthread_cond_wait __libc_cond_wait: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] ^ In file included from framehook.c:34: In file included from #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h : ^127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21/usr/include/pthread.h: :In file included from 343/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::923: : note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :previous definition is here566 :9: #define pthread_mutex_lock __libc_mutex_lockwarning : ^'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] In file included from fixedjitterbuf.c:38#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :/usr/include/pthread.h32:: 370/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::9557:: 9note:: previous definition is herewarning : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait __libc_cond_timedwait ^ #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] 26 warnings generated. #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from fixedjitterbuf.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::99423:: 22/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 556warning:: 9array subscript is of type 'char' [-Wchar-subscripts]: warning: hash = hash * 33 ^ tolower(*str++);'pthread_mutex_lock' macro redefined [-Wmacro-redefined] ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^ ^~~~ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: [CC] global_datastores.c -> global_datastores.o note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from dsp.c:53: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from framehook.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from framehook.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from frame.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from frame.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ framehook.c:100:16: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] i->version, AST_FRAMEHOOK_INTERFACE_VERSION); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/framehook.h:202:41: note: expanded from macro 'AST_FRAMEHOOK_INTERFACE_VERSION' #define AST_FRAMEHOOK_INTERFACE_VERSION 1 ^ In file included from dsp.c:54: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from dsp.c:54: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_readfile.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ dsp.c:341:20: warning: unused function 'goertzel_update' [-Wunused-function] static inline void goertzel_update(goertzel_state_t *s, short *samps, int count) ^ 14 warnings generated. In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: noteIn file included from : app_readfile.c:previous definition is here38 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:#define pthread_cond_signal __libc_cond_signal144 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.hIn file included from :app_exec.c30:: 37In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h750:: 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h: :In file included from 935/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::1021:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :array subscript is of type 'char' [-Wchar-subscripts]23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9 *pos = toupper(*pos);: ~~~~~~~^~~~~~~~~~~~~~warning : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] /usr/include/sys/ctype_inline.h:60:46: note#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: expanded from macro 'toupper' ^ /usr/include/pthread.h:368#define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])): 9 ^: note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h: :previous definition is here52 :47: note#define pthread_cond_broadcast __libc_cond_broadcast: expanded from macro 'AST_INLINE_API' ^ In file included from app_exec.c:# define AST_INLINE_API(hdr, body) inline hdr body37 : ^~~~In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_exec.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :app_readfile.c566::389: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hwarning:: 144'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait: 750 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:/usr/include/pthread.h994::37022::9 :warning : notearray subscript is of type 'char' [-Wchar-subscripts]: previous definition is here hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~#define pthread_cond_timedwait __libc_cond_timedwait /usr/include/sys/ctype_inline.h: ^59 :46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_curl.o -> res_curl.so [CC] hashtab.c -> hashtab.o [LD] res_speech.o -> res_speech.so In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_stack.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] In file included from app_exec.c#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: 37 ^: In file included from /usr/include/pthread.h:/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h344::1449: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.hnote:: 30previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750#define pthread_mutex_trylock __libc_mutex_trylock: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h ^: 935:In file included from 10file.c:: 41warning: : In file included from array subscript is of type 'char' [-Wchar-subscripts]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h :28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559 *pos = toupper(*pos);: 9 ~~~~~~~^~~~~~~~~~~~~~: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] /usr/include/sys/ctype_inline.h:60:46:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init note ^: expanded from macro 'toupper'/usr/include/pthread.h :342:9: #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))note : ^previous definition is here /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:#define pthread_mutex_init __libc_mutex_init47 : ^ noteIn file included from : file.cexpanded from macro 'AST_INLINE_API': 41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:# define AST_INLINE_API(hdr, body) inline hdr body28 : In file included from ^~~~/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h :36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:In file included from 23app_exec.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h37:: 561In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9:: 144warning: : In file included from 'pthread_cond_init' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h :30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: 750 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h/usr/include/pthread.h::994366::229:: warningnote: : array subscript is of type 'char' [-Wchar-subscripts]previous definition is here hash = hash * 33 ^ tolower(*str++);#define pthread_cond_init __libc_cond_init ^~~~~~~~~~~~~~~ ^ /usr/include/sys/ctype_inline.hIn file included from :file.c59::4146: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.hnote:: 28expanded from macro 'tolower': In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h ^~~~: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from file.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/mod_format.h:28: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from file.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from file.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_agi.o -> res_agi.so [CC] app_confbridge.c -> app_confbridge.o In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_userevent.c -> app_userevent.o In file included from global_datastores.c [LD] res_mutestream.o -> res_mutestream.so :34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from global_datastores.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/global_datastores.h:27: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from hashtab.c:35: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_sayunixtime.c -> app_sayunixtime.o 22 warnings generated. In file included from hashtab.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from hashtab.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_monitor.o -> res_monitor.so 13 warnings generated. [CC] app_chanisavail.c -> app_chanisavail.o In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_sayunixtime.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] In file included from app_confbridge.c: hash = hash * 33 ^ tolower(*str++);45 : ^~~~~~~~~~~~~~~In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h/usr/include/sys/ctype_inline.h::12759: :In file included from 46/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:: 21note: : In file included from expanded from macro 'tolower'/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])): 9 ^~~~: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_confbridge.c:45: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_transfer.c -> app_transfer.o In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_userevent.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h13: warning30: sIn file included from generated. /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] heap.c -> heap.o [CC] http.c -> http.o 13 warnings generated. [LD] res_stun_monitor.o -> res_stun_monitor.so In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait 13 ^ warning sIn file included from generated. heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] res_musiconhold.o -> res_musiconhold.so [LD] res_rtp_asterisk.o -> res_rtp_asterisk.so [CC] app_dumpchan.c -> app_dumpchan.o [CC] image.c -> image.o In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_chanisavail.c:40: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_transfer.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_calendar.o -> res_calendar.so In file included from app_chanisavail.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_chanisavail.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 16 warnings generated. In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from heap.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_test.c -> app_test.o 16 warnings generated. [LD] res_fax.o -> res_fax.so In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ 13In file included from warningapp_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hs: generated. 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [LD] res_limit.o -> res_limit.so 13 warnings generated. [LD] res_ael_share.o ael/ael_lex.o ael/ael.tab.o ael/pval.o -> res_ael_share.so In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_dumpchan.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] app_nbscat.c -> app_nbscat.o [CC] app_sendtext.c -> app_sendtext.o 13 warnings generated. 13 warnings generated. In file included from [CC] indications.c -> indications.o http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from http.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_image.c -> app_image.o 13 warnings generated. In file included from http.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from http.c:50: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_clioriginate.o -> res_clioriginate.so 13 warnings generated. [LD] res_config_curl.o -> res_config_curl.so [CC] io.c -> io.o In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] jitterbuf.c -> jitterbuf.o In file included from image.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:In file included from 23image.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h40:: 556In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9::144 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h'pthread_mutex_lock' macro redefined [-Wmacro-redefined]: 30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22:#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock warning ^: array subscript is of type 'char' [-Wchar-subscripts] /usr/include/pthread.h:343 hash = hash * 33 ^ tolower(*str++);: 9 ^~~~~~~~~~~~~~~: /usr/include/sys/ctype_inline.hnote:: 59previous definition is here: 46: note#define pthread_mutex_lock __libc_mutex_lock: expanded from macro 'tolower' ^ In file included from app_test.c:#define tolower(c) ((int)((_tolower_tab_ + 1)[(c)]))41 : ^~~~In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] app_softhangup.c -> app_softhangup.o In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined]In file included from app_sendtext.c:39#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :/usr/include/pthread.h127:: 366In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h9::21 : In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :previous definition is here23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:#define pthread_cond_init __libc_cond_init9 : ^ warning: In file included from 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]app_image.c :36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/usr/include/pthread.h::23343: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::562 :note9: :previous definition is here warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock __libc_mutex_lock ^ In file included from #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroyapp_sendtext.c: 39 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::371127:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :note21: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: #define pthread_cond_destroy __libc_cond_destroy/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^557 :9In file included from :app_image.c :warning36: : 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h#define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock: 127 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::34521:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :note23: : previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :563:9#define pthread_mutex_unlock __libc_mutex_unlock: ^warning : In file included from 'pthread_cond_signal' macro redefined [-Wmacro-redefined]app_sendtext.c :39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal: 127 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::36721:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h :note23: : previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :558:9#define pthread_cond_signal __libc_cond_signal: ^warning : 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock: 26 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::344127:: 9In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :note21: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_mutex_trylock __libc_mutex_trylock: 564 ^: 9In file included from :app_sendtext.c :warning39: : 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast: 21 ^: In file included from /usr/include/pthread.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h::36823:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 559note:: 9previous definition is here: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_initapp_image.c : ^36 /usr/include/pthread.h: :In file included from 342/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h::926:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h: :previous definition is here127 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:#define pthread_mutex_init __libc_mutex_init21 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hIn file included from app_sendtext.c::2339: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h565::1279: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hwarning:: 21'pthread_cond_wait' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 560 ^: 9/usr/include/pthread.h:: 369warning:: 9'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy #define pthread_cond_wait __libc_cond_wait ^ ^/usr/include/pthread.h :346In file included from :app_image.c9::36 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.hprevious definition is here: 26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h#define pthread_mutex_destroy __libc_mutex_destroy: 127 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.happ_sendtext.c::2139: : In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::23127: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h566::219: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hwarning:: 23'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9:#define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait warning ^: 'pthread_cond_init' macro redefined [-Wmacro-redefined]/usr/include/pthread.h :370:9:#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init note ^: previous definition is here/usr/include/pthread.h :366:9#define pthread_cond_timedwait __libc_cond_timedwait: ^note : previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] loader.c -> loader.o In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_sendtext.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_image.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from 13jitterbuf.c warning:s39 generated. : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. 13 warnings generated. [LD] res_rtp_multicast.o -> res_rtp_multicast.so In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from jitterbuf.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] lock.c -> lock.o [CC] app_minivm.c -> app_minivm.o jitterbuf.c:142:7: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] if (abs(*delay - jb->info.last_delay) > threshold) { ^ jitterbuf.c:142:7: note: use function 'labs' instead if (abs(*delay - jb->info.last_delay) > threshold) { ^~~ labs In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from loader.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] logger.c -> logger.o In file included from loader.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from loader.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from indications.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_test.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 14 warnings generated. In file included from indications.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/indications.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from indications.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/indications.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] res_clialiases.o -> res_clialiases.so [CC] app_morsecode.c -> app_morsecode.o indications.c:364:24: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] if (tone_data.freq1 >= 0 && tone_data.freq1 <= 127) { ~~~~~~~~~~~~~~~ ^ ~ indications.c:370:24: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] if (tone_data.freq2 >= 0 && tone_data.freq2 <= 127) { ~~~~~~~~~~~~~~~ ^ ~ indications.c:922:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit(ring[0]) || (val = atoi(ring)) == -1) { ^~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 13 warnings generated. 14 warnings generated. [CC] app_voicemail.c -> app_voicemail.o [CC] app_festival.c -> app_festival.o [LD] res_security_log.o -> res_security_log.so [CC] app_system.c -> app_system.o 13 warnings generated. [CC] manager.c -> manager.o In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_softhangup.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_softhangup.c:37In file included from : app_nbscat.cIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h41:: 127/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 556/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h::921:: In file included from warning/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h: :'pthread_mutex_lock' macro redefined [-Wmacro-redefined]23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_softhangup.c:37/usr/include/pthread.h: :In file included from 343/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h::9127:: In file included from note/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h: :previous definition is here21 : In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23#define pthread_mutex_lock __libc_mutex_lock: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h ^: 558:In file included from 9app_nbscat.c:: 41warning: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]: 557:9: warning: #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] ^ /usr/include/pthread.h:344:9: #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlocknote : ^previous definition is here /usr/include/pthread.h:345:9#define pthread_mutex_trylock __libc_mutex_trylock: ^note : In file included from previous definition is hereapp_softhangup.c :37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:#define pthread_mutex_unlock __libc_mutex_unlock127 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.hIn file included from :app_nbscat.c21:: 41In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::23558: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h9::559 :warning9: :'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init/usr/include/pthread.h : ^344 :/usr/include/pthread.h9::342 :note9: :previous definition is here note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ #define pthread_mutex_init __libc_mutex_init In file included from ^app_nbscat.c :In file included from 41app_softhangup.c: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h37:: 559In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h9::127 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h'pthread_mutex_init' macro redefined [-Wmacro-redefined]: 21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init: 560 ^: 9/usr/include/pthread.h:: 342warning:: 9'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^#define pthread_mutex_init __libc_mutex_init /usr/include/pthread.h ^: 346:9In file included from :app_nbscat.c :note41: : previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :560:9#define pthread_mutex_destroy __libc_mutex_destroy: ^warning : In file included from 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined]app_softhangup.c :37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroyIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h ^:21 : /usr/include/pthread.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h346::239: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :note561: :previous definition is here9 : warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined]#define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_nbscat.c#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: 41 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h/usr/include/pthread.h::561366::99:: warningnote: : 'pthread_cond_init' macro redefined [-Wmacro-redefined]previous definition is here #define pthread_cond_init __libc_cond_init #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ ^In file included from app_softhangup.c/usr/include/pthread.h::37366: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:: 127note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h :21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h#define pthread_cond_init __libc_cond_init: 23 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :app_nbscat.c562::419: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :warning562: :'pthread_cond_destroy' macro redefined [-Wmacro-redefined]9 : warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy9 : ^ note/usr/include/pthread.h: :previous definition is here371 :9: note#define pthread_cond_destroy __libc_cond_destroy: previous definition is here ^ In file included from app_softhangup.c:#define pthread_cond_destroy __libc_cond_destroy37 : ^In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hIn file included from :app_nbscat.c127:: 41In file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h::21563: :In file included from 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:: 23warning: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h'pthread_cond_signal' macro redefined [-Wmacro-redefined]: 563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined]#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal9 : ^ note/usr/include/pthread.h: :previous definition is here367 :9: note#define pthread_cond_signal __libc_cond_signal: previous definition is here ^ In file included from app_nbscat.c#define pthread_cond_signal __libc_cond_signal: 41 ^: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :app_softhangup.c564::379: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hwarning:: 127'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast23 : ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :/usr/include/pthread.h564::3689::9 :warning : note'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast#define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ ^ In file included from /usr/include/pthread.happ_nbscat.c::36841:: 9/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:: 565note:: 9previous definition is here: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined]#define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_softhangup.c:#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait37: In file included from ^/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h :/usr/include/pthread.h127:: 369In file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h9::21 : noteIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.hprevious definition is here: 23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565#define pthread_cond_wait __libc_cond_wait: 9 ^: In file included from warningapp_nbscat.c: :'pthread_cond_wait' macro redefined [-Wmacro-redefined]41 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait: 566 ^: 9/usr/include/pthread.h:: 369warning:: 9'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]: note: previous definition is here #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait#define pthread_cond_wait __libc_cond_wait ^ ^ /usr/include/pthread.hIn file included from :app_softhangup.c370::379: :In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.hnote:: 127previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from #define pthread_cond_timedwait __libc_cond_timedwait/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h : ^23 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from io.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_minivm.c:162: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_softhangup.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_softhangup.c:37: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from logger.c:43: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from lock.c:32: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_minivm.c:164: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_minivm.c:164: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from logger.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from logger.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. app_minivm.c:1563:9: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isdigit(*i)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [CC] app_mixmonitor.c -> app_mixmonitor.o app_minivm.c:1822:18: warning: address of array 'etemplate->locale' will always evaluate to 'true' [-Wpointer-bool-conversion] if (etemplate->locale) { ~~ ~~~~~~~~~~~^~~~~~ app_minivm.c:1834:17: warning: address of array 'etemplate->locale' will always evaluate to 'true' [-Wpointer-bool-conversion] if (etemplate->locale) { ~~ ~~~~~~~~~~~^~~~~~ 13 warnings generated. app_minivm.c:2977:10: warning: address of array 'this->charset' will always evaluate to 'true' [-Wpointer-bool-conversion] this->charset ? this->charset : "-", ~~~~~~^~~~~~~ ~ app_minivm.c:2978:10: warning: address of array 'this->locale' will always evaluate to 'true' [-Wpointer-bool-conversion] this->locale ? this->locale : "-", ~~~~~~^~~~~~ ~ app_minivm.c:2980:10: warning: address of array 'this->subject' will always evaluate to 'true' [-Wpointer-bool-conversion] this->subject ? this->subject : "-"); ~~~~~~^~~~~~~ ~ app_minivm.c:3048:49: warning: address of array 'vmu->etemplate' will always evaluate to 'true' [-Wpointer-bool-conversion] ast_cli(a->fd, HMSU_OUTPUT_FORMAT, tmp, vmu->etemplate ? vmu->etemplate : "-", ~~~~~^~~~~~~~~ ~ app_minivm.c:3049:10: warning: address of array 'vmu->ptemplate' will always evaluate to 'true' [-Wpointer-bool-conversion] vmu->ptemplate ? vmu->ptemplate : "-", ~~~~~^~~~~~~~~ ~ app_minivm.c:3050:10: warning: address of array 'vmu->zonetag' will always evaluate to 'true' [-Wpointer-bool-conversion] vmu->zonetag ? vmu->zonetag : "-", ~~~~~^~~~~~~ ~ app_minivm.c:3051:10: warning: address of array 'vmu->attachfmt' will always evaluate to 'true' [-Wpointer-bool-conversion] vmu->attachfmt ? vmu->attachfmt : "-", ~~~~~^~~~~~~~~ ~ [CC] app_privacy.c -> app_privacy.o In file included from app_nbscat.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_nbscat.c:43: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from manager.c:61: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] md5.c -> md5.o In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_morsecode.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] netsock.c -> netsock.o [LD] app_waituntil.o -> app_waituntil.so In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_privacy.c:36: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_voicemail.c:107: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from app_mixmonitor.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_mixmonitor.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_mixmonitor.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_mixmonitor.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_mixmonitor.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_mixmonitor.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:In file included from 31netsock.c:: 47/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h: :In file included from 561/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h::932:: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hwarning:: 556'pthread_cond_init' macro redefined [-Wmacro-redefined]: 9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined]#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note#define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock: previous definition is here ^ /usr/include/pthread.h#define pthread_cond_init __libc_cond_init: 343 ^: 9In file included from :app_mixmonitor.c :note46: : previous definition is hereIn file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h#define pthread_mutex_lock __libc_mutex_lock: 562 ^: 9In file included from :netsock.c :47warning: : In file included from 'pthread_cond_destroy' macro redefined [-Wmacro-redefined]/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h :32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557#define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy: 9 ^: /usr/include/pthread.hwarning:: 371'pthread_mutex_unlock' macro redefined [-Wmacro-redefined]: 9: note: previous definition is here #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ #define pthread_cond_destroy __libc_cond_destroy/usr/include/pthread.h : ^345 :In file included from 9app_mixmonitor.c:: 46note: : In file included from previous definition is here/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h :31: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:#define pthread_mutex_unlock __libc_mutex_unlock563 : ^ 9In file included from :netsock.c :warning47: : 'pthread_cond_signal' macro redefined [-Wmacro-redefined]In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558#define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal: 9 ^: /usr/include/pthread.hwarning: :'pthread_mutex_trylock' macro redefined [-Wmacro-redefined]367 :9: note: previous definition is here#define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h#define pthread_cond_signal __libc_cond_signal: 344 ^: 9:In file included from app_mixmonitor.cnote:: 46previous definition is here: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.h:31: #define pthread_mutex_trylock __libc_mutex_trylock/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h : ^564 :In file included from 9netsock.c::47 : warningIn file included from : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h'pthread_cond_broadcast' macro redefined [-Wmacro-redefined]: 32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcastwarning : ^'pthread_mutex_init' macro redefined [-Wmacro-redefined] /usr/include/pthread.h:368:9:#define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init note ^: previous definition is here/usr/include/pthread.h :342:9: #define pthread_cond_broadcast __libc_cond_broadcastnote : ^previous definition is here In file included from app_mixmonitor.c:46#define pthread_mutex_init __libc_mutex_init: In file included from ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.hIn file included from :netsock.c:3147: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h565::329: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :warning560: :'pthread_cond_wait' macro redefined [-Wmacro-redefined]9 : warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369#define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy: 9 ^: /usr/include/pthread.hnote:: 346previous definition is here: 9: note#define pthread_cond_wait __libc_cond_wait: previous definition is here ^ In file included from app_mixmonitor.c#define pthread_mutex_destroy __libc_mutex_destroy: 46 ^: In file included from In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/audiohook.hnetsock.c::3147: : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.hIn file included from :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h566::329: :/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h :warning561: :'pthread_cond_timedwait' macro redefined [-Wmacro-redefined]9 : warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h#define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init: 370 ^: 9/usr/include/pthread.h:: 366note:: 9previous definition is here: note: previous definition is here#define pthread_cond_timedwait __libc_cond_timedwait ^ #define pthread_cond_init __libc_cond_init ^ In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] netsock2.c -> netsock2.o In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from netsock.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_mixmonitor.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_mixmonitor.c:47: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from app_voicemail.c:109: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_voicemail.c:109: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] pbx.c -> pbx.o In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ manager.c:1625:10: warning: address of array 'user->username' will always evaluate to 'true' [-Wpointer-bool-conversion] (user->username ? user->username : "(N/A)"), ~~~~~~^~~~~~~~ ~ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_festival.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [CC] plc.c -> plc.o 16 warnings generated. [LD] app_sms.o -> app_sms.so In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from app_system.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ manager.c [LD] app_alarmreceiver.o -> app_alarmreceiver.so :5709:23: warning: array subscript is of type 'char' [-Wchar-subscripts] if ( (mode & 2) && !isalnum(*src)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum' #define isalnum(c) ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D))) ^~~~ manager.c:5742:20: warning: array subscript is of type 'char' [-Wchar-subscripts] *dst++ = mode ? tolower(*src) : *src; ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ app_voicemail.c:8221:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) { ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8221:26: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) { ~ ^ ~ app_voicemail.c:8221:26: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) { ^~ = app_voicemail.c:8235:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->oldmessages == 1)){ ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8235:25: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->oldmessages == 1)){ ~ ^ ~ app_voicemail.c:8235:25: note: use '=' to turn this equality comparison into an assignment if ((vms->oldmessages == 1)){ ^~ = app_voicemail.c:8427:30: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->urgentmessages == 1)) ~~~~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8427:30: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->urgentmessages == 1)) ~ ^ ~ app_voicemail.c:8427:30: note: use '=' to turn this equality comparison into an assignment if ((vms->urgentmessages == 1)) ^~ = app_voicemail.c:8440:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8440:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8440:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:8592:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) { ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8592:25: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) { ~ ^ ~ app_voicemail.c:8592:25: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) { ^~ = app_voicemail.c:8636:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) { ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8636:25: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) { ~ ^ ~ app_voicemail.c:8636:25: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) { ^~ = app_voicemail.c:8671:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8671:26: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8671:26: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:8680:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8680:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8680:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:8727:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) { ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8727:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) { ~ ^ ~ app_voicemail.c:8727:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) { ^~ = app_voicemail.c:8778:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) { ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8778:25: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) { ~ ^ ~ app_voicemail.c:8778:25: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) { ^~ = app_voicemail.c:8824:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8824:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8824:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:8871:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8871:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8871:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:8914:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) { ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8914:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) { ~ ^ ~ app_voicemail.c:8914:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) { ^~ = app_voicemail.c:8980:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8980:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8980:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:8990:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->newmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:8990:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->newmessages == 1)) ~ ^ ~ app_voicemail.c:8990:27: note: use '=' to turn this equality comparison into an assignment if ((vms->newmessages == 1)) ^~ = app_voicemail.c:9001:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->oldmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:9001:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->oldmessages == 1)) ~ ^ ~ app_voicemail.c:9001:27: note: use '=' to turn this equality comparison into an assignment if ((vms->oldmessages == 1)) ^~ = app_voicemail.c:9009:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((vms->oldmessages == 1)) ~~~~~~~~~~~~~~~~~^~~~ app_voicemail.c:9009:27: note: remove extraneous parentheses around the comparison to silence this warning if ((vms->oldmessages == 1)) ~ ^ ~ app_voicemail.c:9009:27: note: use '=' to turn this equality comparison into an assignment if ((vms->oldmessages == 1)) ^~ = app_voicemail.c:10024:10: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(opts[OPT_ARG_PLAYFOLDER][0])) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [CC] poll.c -> poll.o 13 warnings generated. In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from pbx.c:46: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] privacy.c -> privacy.o In file included from pbx.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from pbx.c:48: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/pbx.h:26: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from netsock2.c:34: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] rtp_engine.c -> rtp_engine.o 13 warnings generated. In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from privacy.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [CC] say.c -> say.o 13 warnings generated. [LD] app_dictate.o -> app_dictate.so [LD] app_macro.o -> app_macro.so 13 warnings generated. [CC] security_events.c -> security_events.o [CC] sched.c -> sched.o 13 warnings generated. [LD] app_externalivr.o -> app_externalivr.so [CC] sha1.c -> sha1.o 15 warnings generated. pbx.c:8211:23: warning: array subscript is of type 'char' [-Wchar-subscripts] while (*endpart && !isdigit(*endpart)) { ^~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from poll.c:83: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47In file included from :rtp_engine.c :note36: : expanded from macro 'AST_INLINE_API'In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144# define AST_INLINE_API(hdr, body) inline hdr body: In file included from ^~~~/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h :30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: In file included from notepoll.c: :expanded from macro 'toupper'83 : In file included from #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)]))/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h : ^750 : /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h::52994::4722:: notewarning: : expanded from macro 'AST_INLINE_API'array subscript is of type 'char' [-Wchar-subscripts] # define AST_INLINE_API(hdr, body) inline hdr body hash = hash * 33 ^ tolower(*str++); ^~~~ ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from rtp_engine.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] slinfactory.c -> slinfactory.o 13 warnings generated. In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from sched.c:46: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] app_talkdetect.o -> app_talkdetect.so 13 warnings generated. [LD] app_directed_pickup.o -> app_directed_pickup.so In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] srv.c -> srv.o In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from say.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] app_waitforring.o -> app_waitforring.so [LD] app_db.o -> app_db.so In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from slinfactory.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] ssl.c -> ssl.o [CC] stdtime/localtime.c -> stdtime/localtime.o In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from security_events.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ security_events.c:379:17: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] if (event_type < 0 || event_type >= AST_SECURITY_EVENT_NUM_TYPES) { ~~~~~~~~~~ ^ ~ security_events.c:629:22: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare] if (sec->event_type < 0 || sec->event_type >= AST_SECURITY_EVENT_NUM_TYPES) { ~~~~~~~~~~~~~~~ ^ ~ [CC] strcompat.c -> strcompat.o 11 warnings generated. [LD] app_cdr.o -> app_cdr.so [CC] strings.c -> strings.o In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:127: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/astobj2.h:21: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] app_amd.o -> app_amd.so In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from srv.c:49: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 15 warnings generated. [LD] app_forkcdr.o -> app_forkcdr.so [CC] stun.c -> stun.o [CC] syslog.c -> syslog.o In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] taskprocessor.c -> taskprocessor.o In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from ssl.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from strcompat.c:38: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h13: warning30s: generated. In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from strings.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. In file included from strings.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from strings.c:42: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] app_read.o -> app_read.so [LD] app_adsiprog.o -> app_adsiprog.so 13 warnings generated. In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from stdtime/localtime.c:75: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [LD] app_waitforsilence.o -> app_waitforsilence.so In file included from stdtime/localtime.c:77: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from stdtime/localtime.c:77: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ stdtime/localtime.c:394:6: warning: incompatible integer to pointer conversion assigning to 'struct state *' from '__intptr_t' (aka 'long') [-Wint-conversion] sp = kev.udata; ^ ~~~~~~~~~ 13 warnings generated. In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from stun.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/cli.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] tcptls.c -> tcptls.o In file included from stun.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^stdtime/localtime.c :2194/data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h::2952:: 47warning:: unused function 'find_by_locale' [-Wunused-function]note : expanded from macro 'AST_INLINE_API' static struct locale_entry *find_by_locale(locale_t locale) # define AST_INLINE_API(hdr, body) inline hdr body ^ ^~~~ In file included from stun.c:40: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] tdd.c -> tdd.o In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from taskprocessor.c:35: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/module.h:31: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from tcptls.c:44: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/tcptls.h:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ tdd.c:316:7: warning: array subscript is of type 'char' [-Wchar-subscripts] c = toupper(str[x]); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ 13 warnings generated. [LD] app_controlplayback.o -> app_controlplayback.so 13 warnings generated. [LD] app_url.o -> app_url.so [CC] term.c -> term.o 13 warnings generated. [LD] app_originate.o -> app_originate.so In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from syslog.c:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] test.c -> test.o 13 warnings generated. [LD] app_playtones.o -> app_playtones.so In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from term.c:41: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] threadstorage.c -> threadstorage.o 13 warnings generated. [CC] timing.c -> timing.o In file included from term.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from term.c:42: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] app_setcallerid.o -> app_setcallerid.so 13 warnings generated. [LD] app_authenticate.o -> app_authenticate.so [CC] translate.c -> translate.o [LD] app_celgenuserevent.o -> app_celgenuserevent.so [LD] app_queue.o -> app_queue.so 13 warnings generated. [LD] app_record.o -> app_record.so 13 warnings generated. [LD] app_dial.o -> app_dial.so [CC] udptl.c -> udptl.o In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: [CC] ulaw.c -> ulaw.o warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from timing.c:39: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] utils.c -> utils.o [LD] app_speech_utils.o -> app_speech_utils.so In file included from timing.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from timing.c:41: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/frame.h:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 13 warnings generated. [LD] app_channelredirect.o -> app_channelredirect.so In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ [CC] version.c -> version.o In file included from udptl.c:63: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/udptl.h:33: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from translate.c:38: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 23 warnings generated. udptl.c:291:54: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if ((enclen = encode_length(buf, len, num_octets)) < 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ udptl.c:575:35: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (encode_length(buf, &len, 0) < 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ udptl.c:587:41: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (encode_length(buf, &len, entries) < 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ [CC] xml.c -> xml.o In file included from translate.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from translate.c:39: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/channel.h:144: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/config.h:30: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] xmldoc.c -> xmldoc.o creating cache ./config.cache checking for gcc... clang checking whether the C compiler (clang -pthread -I../..//include -O2 -I/usr/pkg/include -DLDAP_DEPRECATED -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/libxml2 -I/usr/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fnested-functions -g3 -pthread -I/usr/pkg/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib ) works... [CC] hash/hash.c -> hash/hash.o [CC] hash/hash_bigkey.c -> hash/hash_bigkey.o In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from xmldoc.c:36: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/linkedlists.h:23: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ 15 warnings generated. In file included from xmldoc.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from xmldoc.c:37: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [LD] app_ices.o -> app_ices.so In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from utils.c:53: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ In file included from utils.c:56: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/sha1.h:302:12: error: conflicting types for 'hmac' extern int hmac(SHAversion whichSha, /* which SHA algorithm to use */ ^ /usr/include/stdlib.h:303:10: note: previous declaration is here ssize_t hmac(const char *, const void *, size_t, const void *, size_t, void *, ^ In file included from utils.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10:yes warning: checking whether the C compiler (clang -pthread -I../..//include -O2 -I/usr/pkg/include -DLDAP_DEPRECATED -I/usr/include -I/usr/include/krb5 -I/usr/pkg/include/libxml2 -I/usr/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fnested-functions -g3 -pthread -I/usr/pkg/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib ) is a cross-compiler... array subscript is of type 'char' [-Wchar-subscripts] no checking whether we are using GNU C... *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:55:44: note: expanded from macro 'AST_INLINE_API' #define AST_INLINE_API(hdr, body) hdr; hdr body ^~~~ In file included from utils.c:61: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ 1 warning generated. utils.c:211:13: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (!isdigit(*s)) ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ [CC] hash/hash_buf.c -> hash/hash_buf.o utils.c:231:11: warning: implicit declaration of function 'gethostbyname_r' is invalid in C99 [-Wimplicit-function-declaration] result = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &herrno); ^ utils.c:231:11: warning: this function declaration is not a prototype [-Wstrict-prototypes] utils.c:231:9: warning: incompatible integer to pointer conversion assigning to 'struct hostent *' from 'int' [-Wint-conversion] result = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &herrno); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [CC] hash/hash_func.c -> hash/hash_func.o 17 warnings and 1 error generated. /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/Makefile.rules:109: recipe for target 'utils.o' failed make[1]: *** [utils.o] Error 1 make[1]: *** Waiting for unfinished jobs.... [LD] app_echo.o -> app_echo.so [CC] hash/hash_log2.c -> hash/hash_log2.o [LD] app_followme.o -> app_followme.so [CC] hash/hash_page.c -> hash/hash_page.o [LD] app_verbose.o -> app_verbose.so yes checking whether clang accepts -g... 16 warnings generated. 13 warnings generated. [CC] hash/ndbm.c -> hash/ndbm.o [LD] app_playback.o -> app_playback.so [LD] app_directory.o -> app_directory.so [LD] app_chanspy.o -> app_chanspy.so [LD] app_disa.o -> app_disa.so [CC] btree/bt_close.c -> btree/bt_close.o [LD] app_zapateller.o -> app_zapateller.so [CC] btree/bt_conv.c -> btree/bt_conv.o yes checking how to run the C preprocessor... clang-cpp checking for mawk... [LD] app_mp3.o -> app_mp3.so /usr/bin/awk [LD] app_parkandannounce.o -> app_parkandannounce.so [LD] app_getcpeid.o -> app_getcpeid.so [CC] btree/bt_debug.c -> btree/bt_debug.o [CC] btree/bt_delete.c -> btree/bt_delete.o [LD] app_readexten.o -> app_readexten.so [CC] btree/bt_get.c -> btree/bt_get.o [LD] app_senddtmf.o -> app_senddtmf.so [CC] btree/bt_open.c -> btree/bt_open.o checking host system type... x86_64--netbsd checking ABI... [LD] app_while.o -> app_while.so [CC] btree/bt_overflow.c -> btree/bt_overflow.o elf checking for a BSD compatible install... /usr/bin/install -c -o pbulkXXX -g users checking for ranlib... ranlib checking for ar... /usr/bin/ar checking for tgetent in -ltermcap... [CC] btree/bt_page.c -> btree/bt_page.o [LD] app_milliwatt.o -> app_milliwatt.so [CC] btree/bt_put.c -> btree/bt_put.o [CC] btree/bt_search.c -> btree/bt_search.o 13 warnings generated. [CC] btree/bt_seq.c -> btree/bt_seq.o [LD] app_readfile.o -> app_readfile.so [LD] app_stack.o -> app_stack.so [LD] app_exec.o -> app_exec.so yes checking for termcap.h... [LD] app_confbridge.o -> app_confbridge.so [CC] btree/bt_split.c -> btree/bt_split.o [CC] btree/bt_utils.c -> btree/bt_utils.o [LD] app_sayunixtime.o -> app_sayunixtime.so [CC] db/db.c -> db/db.o [LD] app_chanisavail.o -> app_chanisavail.so [CC] mpool/mpool.c -> mpool/mpool.o [CC] recno/rec_close.c -> recno/rec_close.o [CC] recno/rec_delete.c -> recno/rec_delete.o yes checking for sys/cdefs.h... [LD] app_userevent.o -> app_userevent.so [CC] recno/rec_get.c -> recno/rec_get.o In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:556:9: warning: 'pthread_mutex_lock' macro redefined [-Wmacro-redefined] #define pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock ^ /usr/include/pthread.h:343:9: note: previous definition is here #define pthread_mutex_lock __libc_mutex_lock ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:557:9: warning: 'pthread_mutex_unlock' macro redefined [-Wmacro-redefined] #define pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock ^ /usr/include/pthread.h:345:9: note: previous definition is here #define pthread_mutex_unlock __libc_mutex_unlock ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:558:9: warning: 'pthread_mutex_trylock' macro redefined [-Wmacro-redefined] #define pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock ^ /usr/include/pthread.h:344:9: note: previous definition is here #define pthread_mutex_trylock __libc_mutex_trylock ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:559:9: warning: 'pthread_mutex_init' macro redefined [-Wmacro-redefined] #define pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init ^ /usr/include/pthread.h:342:9: note: previous definition is here #define pthread_mutex_init __libc_mutex_init ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:560:9: warning: 'pthread_mutex_destroy' macro redefined [-Wmacro-redefined] #define pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy ^ /usr/include/pthread.h:346:9: note: previous definition is here #define pthread_mutex_destroy __libc_mutex_destroy [LD] app_transfer.o -> app_transfer.so ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:561:9: warning: 'pthread_cond_init' macro redefined [-Wmacro-redefined] #define pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init ^ /usr/include/pthread.h:366:9: note: previous definition is here #define pthread_cond_init __libc_cond_init ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:562:9: warning: 'pthread_cond_destroy' macro redefined [-Wmacro-redefined] #define pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy ^ /usr/include/pthread.h:371:9: note: previous definition is here #define pthread_cond_destroy __libc_cond_destroy ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:563:9: warning: 'pthread_cond_signal' macro redefined [-Wmacro-redefined] #define pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal ^ /usr/include/pthread.h:367:9: note: previous definition is here #define pthread_cond_signal __libc_cond_signal ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:564:9: warning: 'pthread_cond_broadcast' macro redefined [-Wmacro-redefined] #define pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast ^ /usr/include/pthread.h:368:9: note: previous definition is here #define pthread_cond_broadcast __libc_cond_broadcast ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:565:9: warning: 'pthread_cond_wait' macro redefined [-Wmacro-redefined] #define pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait ^ /usr/include/pthread.h:369:9: note: previous definition is here #define pthread_cond_wait __libc_cond_wait ^ In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:32: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/lock.h:566:9: warning: 'pthread_cond_timedwait' macro redefined [-Wmacro-redefined] #define pthread_cond_timedwait use_ast_cond_timedwait_instead_of_pthread_cond_timedwait ^ /usr/include/pthread.h:370:9: note: previous definition is here #define pthread_cond_timedwait __libc_cond_timedwait ^ [CC] recno/rec_open.c -> recno/rec_open.o [CC] recno/rec_put.c -> recno/rec_put.o [LD] app_dumpchan.o -> app_dumpchan.so yes In file included from mpool/mpool.c:52: In file included from /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:935:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *pos = toupper(*pos); ~~~~~~~^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^ /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/inline_api.h:52:47: note: expanded from macro 'AST_INLINE_API' # define AST_INLINE_API(hdr, body) inline hdr body ^~~~ In file included from mpool/mpool.c:52: In file included from checking for vis.h... /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/utils.h:750: /data/scratch/comms/asterisk18/work/asterisk-1.8.32.3/include/asterisk/strings.h:994:22: warning: array subscript is of type 'char' [-Wchar-subscripts] hash = hash * 33 ^ tolower(*str++); ^~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ [CC] recno/rec_search.c -> recno/rec_search.o [LD] app_nbscat.o -> app_nbscat.so [LD] app_test.o -> app_test.so 13 warnings generated. [LD] app_sendtext.o -> app_sendtext.so [LD] app_image.o -> app_image.so [LD] app_softhangup.o -> app_softhangup.so [LD] app_minivm.o -> app_minivm.so [CC] recno/rec_seq.c -> recno/rec_seq.o [CC] recno/rec_utils.c -> recno/rec_utils.o yes [LD] app_festival.o -> app_festival.so checking for issetugid... [LD] app_morsecode.o -> app_morsecode.so 16 warnings generated. [LD] app_privacy.o -> app_privacy.so [LD] app_system.o -> app_system.so [LD] app_mixmonitor.o -> app_mixmonitor.so yes checking for fgetln... [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a yes checking for strvis... 14 warnings generated. yes checking for strunvis... 13 warnings generated. yes checking for strlcpy... yes checking for strlcat... yes 31 warnings generated. [LD] app_voicemail.o -> app_voicemail.so updating cache ./config.cache creating ./config.status creating Makefile creating makelist creating config.h In file included from editline.c:5: ./emacs.c:297:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *cp = toupper(*cp); ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ In file included from editline.c:5: ./emacs.c:322:11: warning: array subscript is of type 'char' [-Wchar-subscripts] *cp = toupper(*cp); ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ In file included from editline.c:5: ./emacs.c:329:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *cp = tolower(*cp); ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from editline.c:5: ./emacs.c:353:10: warning: array subscript is of type 'char' [-Wchar-subscripts] *cp = tolower(*cp); ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ In file included from editline.c:8: ./el.c:173:21: warning: shifting a negative signed value is undefined [-Wshift-negative-value] el->el_flags &= ~HANDLE_SIGNALS; ~^~~~~~~~~~~~~~ ./el.h:58:25: note: expanded from macro 'HANDLE_SIGNALS' #define HANDLE_SIGNALS 1<<0 ^ In file included from editline.c:8: ./el.c:244:21: warning: shifting a negative signed value is undefined [-Wshift-negative-value] el->el_flags &= ~EDIT_DISABLED; ~^~~~~~~~~~~~~ ./el.h:60:24: note: expanded from macro 'EDIT_DISABLED' #define EDIT_DISABLED 1<<2 ^ In file included from editline.c:8: ./el.c:501:20: warning: shifting a negative signed value is undefined [-Wshift-negative-value] el->el_flags &= ~EDIT_DISABLED; ~^~~~~~~~~~~~~ ./el.h:60:24: note: expanded from macro 'EDIT_DISABLED' #define EDIT_DISABLED 1<<2 ^ 7 warnings generated. Makefile:347: recipe for target 'main' failed gmake: *** [main] Error 2 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/comms/asterisk18 *** Error code 1 Stop. make: stopped in /data/pkgsrc/comms/asterisk18