open-hpi / openhpi

Other
6 stars 10 forks source link

snmp-subagent does not compile on RHEL 6.2 #1823

Open mohandev2 opened 10 years ago

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

snmp_subagent_7573.patch.txt

Reported by: mohandev2

Original Ticket: openhpi/bugs/1823

mohandev2 commented 10 years ago

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

Original comment by: mohandev2

mohandev2 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

mohandev2 commented 10 years ago

Original comment by: mohandev2