Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 521820

Summary: Package is not multilib safe
Product: Red Hat Enterprise Linux 5 Reporter: Jan Safranek <jsafrane>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.2.zCC: rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:29:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 527960    
Bug Blocks:    
Attachments:
Description Flags
test application to check new include files none

Description Jan Safranek 2009-09-08 12:55:18 UTC
Description of problem:
Our internal rpmdiff tool reports, that net-snmp has problems on multilib architectures:

Subpackage net-snmp is not multilib-clean for x86_64 vs i386: 2 files have non-equal 32/64bit content:

  /usr/share/man/man5/snmpd.conf.5.gz
  /usr/share/man/man5/snmp_config.5.gz

Subpackage net-snmp-devel is not multilib-clean for ia64 vs i386: 8 files have non-equal 32/64bit content:

  /usr/lib/libsnmp.a
  /usr/lib/libnetsnmptrapd.a
  /usr/lib/libnetsnmpmibs.a
  /usr/lib/libnetsnmphelpers.a
  /usr/lib/libnetsnmpagent.a
  /usr/lib/libnetsnmp.a
  /usr/include/net-snmp/agent/mib_module_includes.h
  /usr/include/net-snmp/agent/mib_module_config.h


Version-Release number of selected component (if applicable):
net-snmp-5.3.1-24.el5_2.3

Comment 3 Jan Safranek 2009-09-23 08:25:35 UTC
1) man pages in net-snmp can be easily fixed
2) headers in net-snmp-devel can probably be fixed, though it won't be easy
3) static libraries are the real problem here. Rpm does not relocate them to /emul/whatever, so ia64 and i386 versions conflict in /usr/lib

Comment 4 Jan Safranek 2009-10-08 11:51:33 UTC
I have created new bug for relocation of static libraries to bug #527960, it's fault of RPM.

Only items 1) and 2) apply to this bug.

Comment 5 Jan Safranek 2009-10-09 08:53:08 UTC
Created attachment 364218 [details]
test application to check new include files

Usage:

yum install net-snmp-devel
gcc -o net-snmp-test `net-snmp-config --cflags --ldflags --netsnmp-agent-libs --libs --external-agent-libs` net-snmp-test.c

Resulting executable should start (it won't do anything useful) and GCC should not spit any errors/warnings.

Also check preprocessor output (gcc -E) if mib_module_config.h leads to mib_module_config-$ARCH.h.

Comment 6 Jan Safranek 2009-10-09 11:02:40 UTC
Solution to 2): have dummy agent/mib_module_includes.h, which just detects current architecture and include e.g. mib_module_includes-ia64.h. Each net-snmp-devel.$arch has then it's own version of mib_module_includes-$arch.h.

Dtto for agent/mib_module_config.h.

Comment 11 errata-xmlrpc 2010-03-30 08:29:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0253.html