Trying to get dahdi-tools to compile on CentOS 8.2 (Kernel 4.18.0-193.28.1.el8_2.x86_64) using official github, sruffell’s copy, or downloaded/release tar… I’m getting the following errors during ‘make’; is there anything I can try?
CC dahdi_cfg.o
dahdi_cfg.c: In function ‘are_all_spans_assigned’:
dahdi_cfg.c:153:7: warning: ‘/span_count’ directive output may be truncated writing 11 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
"%s/span_count", device_path);
^~~~~~~~~~~
dahdi_cfg.c:152:2: note: ‘snprintf’ output between 12 and 1035 bytes into a destination of size 1023
snprintf(attribute, sizeof(attribute) - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"%s/span_count", device_path);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD dahdi_cfg
...
CC dahdi_tool-dahdi_tool.o
dahdi_tool.c: In function ‘sel_callback’:
dahdi_tool.c:167:40: warning: ‘ F10=Quit’ directive output may be truncated writing 20 bytes into a region of size between 1 and 197 [-Wformat-truncation=]
snprintf(info2, sizeof(info2), "%-59s F10=Quit", info);
^~~~~~~~~~~~~~~~~~~~
dahdi_tool.c:167:3: note: ‘snprintf’ output between 80 and 276 bytes into a destination of size 256
snprintf(info2, sizeof(info2), "%-59s F10=Quit", info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dahdi_tool.c:163:40: warning: ‘ F1=Details F10=Quit’ directive output may be truncated writing 20 bytes into a region of size between 1 and 197 [-Wformat-truncation=]
snprintf(info2, sizeof(info2), "%-59s F1=Details F10=Quit", info);
^~~~~~~~~~~~~~~~~~~~
dahdi_tool.c:163:3: note: ‘snprintf’ output between 80 and 276 bytes into a destination of size 256
snprintf(info2, sizeof(info2), "%-59s F1=Details F10=Quit", info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD dahdi_tool