Re: Regarding swinst_rpm.c

Bart Van Assche <[email protected]> Thu, 25 Mar 2021 09:19:55 -0700
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 3/25/21 1:29 AM, Song, Xiongwei wrote:
> I'm hitting the error below when building net-snmp:
> 
> 814
> ../../../net-snmp-5.7.3/agent/mibgroup/host/data_access/swinst_rpm.c:119:27:
> error: '_RPMVSF_NOSIGNATURES' undeclared (first use in this function)
> 815 rpmtsSetVSFlags( ts, (_RPMVSF_NOSIGNATURES|_RPMVSF_NODIGESTS));
> 816 ^
> 817
> ../../../net-snmp-5.7.3/agent/mibgroup/host/data_access/swinst_rpm.c:119:27:
> note: each undeclared identifier is reported only once for each function
> it appea rs in
> 818
> ../../../net-snmp-5.7.3/agent/mibgroup/host/data_access/swinst_rpm.c:119:48:
> error: '_RPMVSF_NODIGESTS' undeclared (first use in this function)
> 819 rpmtsSetVSFlags( ts, (_RPMVSF_NOSIGNATURES|_RPMVSF_NODIGESTS));
> 
> I found this error when I built rpm and net-snmp at same time. I checked
> the configure script, found that if the rpm headers are in rootfs, then
> built  swinst_rpm.c , otherwise not build. Hence this error would happen
> during populating rpm headers.
> 
> I would like to know if the swinst_rpm.c is necessary, what is this file
> for?

Hi Xiongwei,

Please upgrade to Net-SNMP v5.9 since version v5.7 is no longer supported.

The swinst_rpm.c source file includes code for scanning for installed
RPM packages. I think it can be excluded from the build by adding
something like the following to the configure options:
--with-out-mib-modules=host/hr_swinst

Bart.


_______________________________________________
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.