openhpi2 / openhpi_bug_test

0 stars 0 forks source link

snmp-subagent does not compile on RHEL 6.2 #1823

Open openhpi2 opened 10 years ago

openhpi2 commented 10 years ago

snmp-subagent program does not compile on RHEL 6.2. Modern compilers and libraries have few changes that are not backward compatible. The snmp-subagent, which has not been changed in 6+ years, is unable to compile.

The following are the problems. Copyright is changed to License Compiler catches many more warnings that are turned into errors ( remove -Werror) error: Installed (but unpackaged) file(s) found:    /usr/share/snmp/mibs/SAF-TC-MIB.mib    /usr/share/snmp/mibs/SAI-HPI-SNMP-MIB-B.01.01.mib Add the above files in openhpi-subagent.spec.in %files Specific dependencies mentioned in "Requires" field does not exist, so they need to be replaced with generic ones. pthread has become a part of glib. libc.so.6, libglib-1.2.so.0 libpthread.so.0 libnetsnmp.so.5 libnetsnmpagent.so.5 could be replaced with glibc glib2 net-snmp As we make these changes the version number could be increased too.

Reported by: dr_mohan

openhpi2 commented 10 years ago

The attached patch makes the snmp-subagent to compile well. Please review.

Original comment by: dr_mohan

openhpi2 commented 10 years ago

*_ATTENTION_** This account is disabled and is no longer accessed by the recipient. Please remove it from your address book.

Thanks

Original comment by: tariqx

openhpi2 commented 10 years ago

Original comment by: dr_mohan