Всем привет.
Пробую собрать вот этот пакет https://sourceforge.net/projects/nvgpu-smi-snmp/
[root@localhost nvgpu-smi-snmp-1.1]# make
cc -g `pkg-config --cflags libxml-2.0` -g -O2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux -I/usr/local/include -fPIC -Wall -Wstrict-prototypes -c -o nvCtrlTable_interface.o nvCtrlTable_interface.c
In file included from nvCtrlTable_interface.c:33:
nvCtrlTable_interface.c:49:5: error: expected ‘;’ before ‘extern’
netsnmp_feature_require(row_merge)
^~~~~~~~~~~~~~~~~~~~~~~
nvCtrlTable_interface.c:50:5: error: expected ‘;’ before ‘extern’
netsnmp_feature_require(check_all_requests_error)
^~~~~~~~~~~~~~~~~~~~~~~
In file included from nvCtrlTable_interface.c:51:
/usr/include/ctype.h:46:1: error: expected ‘;’ before ‘enum’
enum
^~~~
In file included from /usr/local/include/net-snmp/output_api.h:60,
from /usr/local/include/net-snmp/library/snmp_client.h:32,
from /usr/local/include/net-snmp/varbind_api.h:102,
from /usr/local/include/net-snmp/library/snmp_api.h:33,
from /usr/local/include/net-snmp/types.h:425,
from /usr/local/include/net-snmp/definitions.h:22,
from /usr/local/include/net-snmp/net-snmp-includes.h:24,
from nvCtrlTable_interface.c:34:
nvCtrlTable_interface.c: In function ‘_mfd_nvCtrlTable_get_values’:
nvCtrlTable_interface.c:1223:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
"exists %p\n", (void *) rowreq_ctx->column_exists_flags));
^
nvCtrlTable_interface.c:1223:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
"exists %p\n", (void *) rowreq_ctx->column_exists_flags));
^
make: *** [<builtin>: nvCtrlTable_interface.o] Error 1
При этом всякие devel установлены так как перед этим собрал из исходников net-snmp. https://sourceforge.net/projects/net-snmp/
Теперь сижу и не понимаю с чего начать искать проблему.