errors while make net-snmp-5.8

ryo sakasaki <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <VE1PR10MB2974F2A353CBD98CDF175369FC470@VE1PR10MB2974.EURPRD10.PROD.OUTLOOK.COM>
Hi all,

I have tried to build net-snmp-5.8 source code but when following the INSTALL procedure i got errors :

My config:
Linux : Red Hat Enterprise Linux Server release 7.4 (Maipo)
Kernel : 3.10.0-693.el7.x86_64
gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)

steps i have done :

1)
sh ./configure --host=x86_64

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Building for:               none
  Net-SNMP Version:           5.8
  Network transport support:  Callback Unix Alias TCP UDP TCPIPv6 UDPIPv6 IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPv6Base
  SNMPv3 Security Modules:     usm
  Agent MIB code:            default_modules =>  snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Crypto support from:        crypto
  Authentication support:     MD5 SHA1 SHA512 SHA384 SHA256 SHA192
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled

---------------------------------------------------------

seems ok ?

2)
make

got following erros :
...
libtool: link: gcc -g -O2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Unone -Dnone=none -o snmpd snmpd.o  ./.libs/libnetsnmpagent.a ./.libs/libnetsnmpmibs.a /tmp/net-snmp-5.8/agent/.libs/libnetsnmpagent.a /tmp/net-snmp-5.8/snmplib/.libs/libnetsnmp.a -ldl -lrpm -lrpmio -lpcre ../snmplib/.libs/libnetsnmp.a -lcrypto -lelf -lm
./.libs/libnetsnmpmibs.a(ipaddress_ioctl.o): In function `_netsnmp_ioctl_ipaddress_container_load_v4':
/tmp/net-snmp-5.8/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c:223: undefined reference to `netsnmp_access_interface_ioctl_ifindex_get'
./.libs/libnetsnmpmibs.a(interfaces.o): In function `getIfSpeed':
/tmp/net-snmp-5.8/agent/mibgroup/mibII/interfaces.c:1470: undefined reference to `netsnmp_linux_interface_get_if_speed'
/tmp/net-snmp-5.8/agent/mibgroup/mibII/interfaces.c:1470: undefined reference to `netsnmp_linux_interface_get_if_speed'
./.libs/libnetsnmpmibs.a(ipAddr.o): In function `Address_Scan_Next':
/tmp/net-snmp-5.8/agent/mibgroup/mibII/ipAddr.c:580: undefined reference to `netsnmp_access_interface_index_find'
./.libs/libnetsnmpmibs.a(var_route.o): In function `Route_Scan_Reload':
/tmp/net-snmp-5.8/agent/mibgroup/mibII/var_route.c:1377: undefined reference to `netsnmp_access_interface_index_find'
./.libs/libnetsnmpmibs.a(ipaddress_linux.o): In function `_load_v6':
/tmp/net-snmp-5.8/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:302: undefined reference to `netsnmp_access_interface_index_find'
/tmp/net-snmp-5.8/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c:383: undefined reference to `prefix_head_list'
./.libs/libnetsnmpmibs.a(route_linux.o): In function `_load_ipv4':
/tmp/net-snmp-5.8/agent/mibgroup/ip-forward-mib/data_access/route_linux.c:119: undefined reference to `netsnmp_access_interface_ioctl_ifindex_get'
./.libs/libnetsnmpmibs.a(auto_nlist.o): In function `auto_nlist':
/tmp/net-snmp-5.8/agent/auto_nlist.c:137: undefined reference to `klookup'
./.libs/libnetsnmpmibs.a(auto_nlist.o): In function `KNLookup':
/tmp/net-snmp-5.8/agent/auto_nlist.c:240: undefined reference to `klookup'
./.libs/libnetsnmpmibs.a(at_linux.o): In function `ARP_Scan_Init':
/tmp/net-snmp-5.8/agent/mibgroup/mibII/data_access/at_linux.c:106: undefined reference to `netsnmp_access_interface_index_find'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:930: snmpd] Error 1
make[1]: Leaving directory '/tmp/net-snmp-5.8/agent'
make: *** [Makefile:663: subdirs] Error 1


I have checked to the lines code error but i dont know if it's a bug or a configuration issue .
I have google the errors but i m a bit lost, to not say completely ...

If someone can help or guide me . I will appreciate !
Regards,
R.S

Ps: i  a not an c++ expert and sorry for my english .

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.