make main CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory '/usr/src/asterisk/asterisk/menuselect' make[1]: 'makeopts' is up to date. make[1]: Leaving directory '/usr/src/asterisk/asterisk/menuselect' [CCi] channel.i -> channel.o [CCi] logger.i -> logger.o [LN] libasteriskpj.so.2 -> libasteriskpj.so In file included from /usr/src/asterisk/asterisk/include/asterisk/strings.h:32, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:728, from /usr/src/asterisk/asterisk/include/asterisk/module.h:39, from logger.c:52: In function ‘ast_threadstorage_set_ptr’, inlined from ‘ast_log_safe’ at logger.c:2216:6: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h:254:213: error: ‘pthread_setspecific’ expecting 1 byte in a region of size 0 [-Werror=stringop-overread] 254 | AST_INLINE_API( | ^ In file included from /usr/src/asterisk/asterisk/include/asterisk/lock.h:51, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:32, from /usr/src/asterisk/asterisk/include/asterisk/module.h:39, from logger.c:52: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h: In function ‘ast_log_safe’: /usr/include/pthread.h:1308:12: note: in a call to function ‘pthread_setspecific’ declared with attribute ‘access (none, 2)’ 1308 | extern int pthread_setspecific (pthread_key_t __key, | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [/usr/src/asterisk/asterisk/Makefile.rules:150: logger.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from /usr/src/asterisk/asterisk/include/asterisk/strings.h:32, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:728, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: In function ‘ast_threadstorage_set_ptr’, inlined from ‘channel_set_intercept_mode’ at channel.c:10346:11, inlined from ‘ast_channel_connected_line_macro’ at channel.c:10393:2: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h:254:213: error: ‘pthread_setspecific’ expecting 1 byte in a region of size 0 [-Werror=stringop-overread] 254 | AST_INLINE_API( | ^ In file included from /usr/src/asterisk/asterisk/include/asterisk/lock.h:51, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:32, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h: In function ‘ast_channel_connected_line_macro’: /usr/include/pthread.h:1308:12: note: in a call to function ‘pthread_setspecific’ declared with attribute ‘access (none, 2)’ 1308 | extern int pthread_setspecific (pthread_key_t __key, | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/src/asterisk/asterisk/include/asterisk/strings.h:32, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:728, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: In function ‘ast_threadstorage_set_ptr’, inlined from ‘channel_set_intercept_mode’ at channel.c:10346:11, inlined from ‘ast_channel_redirecting_macro’ at channel.c:10445:2: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h:254:213: error: ‘pthread_setspecific’ expecting 1 byte in a region of size 0 [-Werror=stringop-overread] 254 | AST_INLINE_API( | ^ In file included from /usr/src/asterisk/asterisk/include/asterisk/lock.h:51, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:32, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h: In function ‘ast_channel_redirecting_macro’: /usr/include/pthread.h:1308:12: note: in a call to function ‘pthread_setspecific’ declared with attribute ‘access (none, 2)’ 1308 | extern int pthread_setspecific (pthread_key_t __key, | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/src/asterisk/asterisk/include/asterisk/strings.h:32, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:728, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: In function ‘ast_threadstorage_set_ptr’, inlined from ‘channel_set_intercept_mode’ at channel.c:10346:11, inlined from ‘ast_channel_connected_line_sub’ at channel.c:10490:2: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h:254:213: error: ‘pthread_setspecific’ expecting 1 byte in a region of size 0 [-Werror=stringop-overread] 254 | AST_INLINE_API( | ^ In file included from /usr/src/asterisk/asterisk/include/asterisk/lock.h:51, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:32, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h: In function ‘ast_channel_connected_line_sub’: /usr/include/pthread.h:1308:12: note: in a call to function ‘pthread_setspecific’ declared with attribute ‘access (none, 2)’ 1308 | extern int pthread_setspecific (pthread_key_t __key, | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/src/asterisk/asterisk/include/asterisk/strings.h:32, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:728, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: In function ‘ast_threadstorage_set_ptr’, inlined from ‘channel_set_intercept_mode’ at channel.c:10346:11, inlined from ‘ast_channel_redirecting_sub’ at channel.c:10535:2: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h:254:213: error: ‘pthread_setspecific’ expecting 1 byte in a region of size 0 [-Werror=stringop-overread] 254 | AST_INLINE_API( | ^ In file included from /usr/src/asterisk/asterisk/include/asterisk/lock.h:51, from /usr/src/asterisk/asterisk/include/asterisk/utils.h:32, from /usr/src/asterisk/asterisk/include/asterisk/alertpipe.h:22, from /usr/src/asterisk/asterisk/include/asterisk/channel.h:126, from /usr/src/asterisk/asterisk/include/asterisk/pbx.h:26, from channel.c:40: /usr/src/asterisk/asterisk/include/asterisk/threadstorage.h: In function ‘ast_channel_redirecting_sub’: /usr/include/pthread.h:1308:12: note: in a call to function ‘pthread_setspecific’ declared with attribute ‘access (none, 2)’ 1308 | extern int pthread_setspecific (pthread_key_t __key, | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [/usr/src/asterisk/asterisk/Makefile.rules:150: channel.o] Error 1 make: *** [Makefile:388: main] Error 2