Long filenames in Net-SNMP 5.3.0.1

Beatnik on 2006-06-23T14:58:48

It seems like Net-SNMP 5.3.0.1 (no, not the perl module) has some rather long filenames. Solaris' tar can't handle those. As a result, Net-SNMP wont build properly. I fixed this by extracting the source with a version of tar that DOES support long filenames and by copying the affected files (in agent/mibgroup/snmp-usm-dh-objects-mib/usmDHUserKeyTable/ and agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/) to a directory in the root source tree. I retarred the whole thing and copied that tarball to the machine that needed that. Remember to copy the files to the original directory on the target machine after unpacking! For Google's sake, below the error message I got when doing an initial compilation:

...tcpTable mibII/udpTable mibII/vacm_context mibII/vacm_conf header_complexagent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:32:45: snmpNotifyFilterTable_constants.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:318:45: snmpNotifyFilterTable_interface.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:319:47: snmpNotifyFilterTable_data_access.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:32:45: snmpNotifyFilterTable_constants.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:318:45: snmpNotifyFilterTable_interface.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:319:47: snmpNotifyFilterTable_data_access.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:32:45: snmpNotifyFilterTable_constants.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:318:45: snmpNotifyFilterTable_interface.h: No such file or directory
agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h:319:47: snmpNotifyFilterTable_data_access.h: No such file or directory
configure: WARNING: mib module error
configure: error: mib module "snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable" requires module "snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface" but snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface.h or snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface.c could not be found in ./agent/mibgroup