Установка openSNMP
Здравствуйте, не подскажете как установить openSNMP (https://sourceforge.net/projects/opensnmp/)? Как я понял — это исходники. Сделал 1)./configure, но на следующем шаге 2)make возникает ошибка…
нет декларации «memcpy» в этой области видимости
замечание: «memcpy» is defined in header «»; did you forget to «include »?
нет декларации «memcpy» в этой области видимости
замечание: «memcpy» is defined in header «»; did you forget to «include »?
Спойлер!
[user1user1-systemproductname opensnmp-0.9]$ sudo ./configure
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking return type of signal handlers... void
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for rm... /usr/bin/rm
checking for ar... /usr/bin/ar
checking for smiInit in -lsmi... yes
checking for EVP_md5 in -lcrypto... yes
checking for pthread_create in -lpthread... yes
checking for DbEnv::version in -ldb_cxx... yes
checking for signal... yes
checking for setsid... yes
checking for sigset... yes
checking for sigblock... yes
checking for sighold... yes
checking for sigaction... yes
checking for gethostbyname... yes
checking for getservbyname... yes
checking for uname... yes
checking for AES_cfb128_encrypt... yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking smi.h usability... yes
checking smi.h presence... yes
checking for smi.h... yes
checking openssl/hmac.h usability... yes
checking openssl/hmac.h presence... yes
checking for openssl/hmac.h... yes
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking db1/ndbm.h usability... no
checking db1/ndbm.h presence... no
checking for db1/ndbm.h... no
checking db_cxx.h usability... yes
checking db_cxx.h presence... yes
checking for db_cxx.h... yes
checking if sys/stream.h and queue can not be included together... nope
checking for des_ks_struct.weak_key... no
checking for sigaction.sa_sigaction... yes
checking whether time.h and sys/time.h may both be included... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating acm/Makefile
config.status: creating app/cg/Makefile
config.status: creating app/cr/mibreg/Makefile
config.status: creating app/cr/Makefile
config.status: creating app/cr/mibs/Makefile
config.status: creating app/Makefile
config.status: creating asn/Makefile
config.status: creating base/Makefile
config.status: creating dispatcher/Makefile
config.status: creating msgproc/Makefile
config.status: creating secmod/Makefile
config.status: creating mib/Makefile
config.status: creating tools/Makefile
config.status: creating tools/snmp-db-add/Makefile
config.status: creating tools/snmp-db-dump/Makefile
config.status: creating config.h
[user1user1-systemproductname opensnmp-0.9]$ sudo make
making all in /home/user1/Загрузки/VDO/opensnmp-0.9/base
make[1]: вход в каталог «/home/user1/Загрузки/VDO/opensnmp-0.9/base»
g++ -I.. -I././ -I./../asn -I./../mib -I/usr/local/include -c -o BufferClass.o BufferClass.C
BufferClass.C: In copy constructor «BufferClass::BufferClass(const BufferClass&)»:
BufferClass.C:28:3: ошибка: нет декларации «memcpy» в этой области видимости
28 | memcpy(this->msg, fromBuff.msg, this->msgLength);
| ^~~~~~
BufferClass.C:7:1: замечание: «memcpy» is defined in header «<cstring>»; did you forget to «include <cstring>»?
6 | include "BufferClass.H"
+++ |+include <cstring>
7 |
make[1]: *** [<встроенное>: BufferClass.o] Ошибка 1
make[1]: выход из каталога «/home/user1/Загрузки/VDO/opensnmp-0.9/base»
make: *** [Makefile:168: subdirs] Ошибка 1