Bug 984929

Summary: linking error when rebuilding openhpi
Product: Red Hat Enterprise Linux 5 Reporter: Martin Kyral <mkyral>
Component: openhpiAssignee: Dan Horák <dhorak>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-16 11:59:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Kyral 2013-07-16 11:48:00 UTC
Description of problem:
Linker tries to link with /usr/lib64/perl5/5.8.8/ppc64-linux-thread-multi/auto/DynaLoader/DynaLoader.a which is not present at the system even when all the build requirements are installed. It seems that it just searches in the wrong path - the library is located in /usr/lib/perl5/5.8.8/ppc-linux-thread-multi/auto/DynaLoader/DynaLoader.a on RHEL5 ppc (ppc64 is not supported by RHEL5).

Version-Release number of selected component (if applicable):
openhpi-2.14.0-5.el5

How reproducible:
Always

Steps to Reproduce:
1. install build deps of openhpi-2.14.0-5.el5
2. cd /usr/src/redhat
3. rpmbuild -bb SPECS/openhpi.spec

Actual results:
gcc: /usr/lib64/perl5/5.8.8/ppc64-linux-thread-multi/auto/DynaLoader/DynaLoader.a: No such file or directory
make[4]: *** [hpiSubagent] Error 1

build fails

Expected results:
binary packages are built

Additional info:

Comment 1 Dan Horák 2013-07-16 11:59:15 UTC
Please do rebuilding as done in brew, in a mock created chroot. Your build environment likely mixes 32 and 64 bit packages, which is completely legal in ppc, but can lead to unwanted results.