Bug 133573 - Cross compiling - configure failes on RPM 4.3.2-2
Cross compiling - configure failes on RPM 4.3.2-2
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-24 17:04 EDT by Mark Hatle
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-01-29 11:19:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to fix the MYPATH for crosscompilation. (510 bytes, patch)
2005-01-29 10:51 EST, Chris Larson
no flags Details | Diff

  None (edit)
Description Mark Hatle 2004-09-24 17:04:14 EDT
When cross compiling RPM 4.3.2-2, some mysterious failures occur.

Errors similar to below occur:

checking libelf.h usability... no
checking libelf.h presence... yes
configure: WARNING: libelf.h: present but cannot be compiled
configure: WARNING: libelf.h:     check for missing prerequisite headers?
configure: WARNING: libelf.h: see the Autoconf documentation
configure: WARNING: libelf.h:     section "Present But Cannot Be Compiled"
configure: WARNING: libelf.h: proceeding with the preprocessor's result
configure: WARNING: libelf.h: in the future, the compiler will take
precedence
configure: WARNING:     ## ---------------------------------- ##
configure: WARNING:     ## Report this to rpm-list@redhat.com ##
configure: WARNING:     ## ---------------------------------- ##
Comment 1 Mark Hatle 2004-09-24 17:05:57 EDT
The problem was tracked down to a configure.ac statement:

dnl
dnl use defaults if cross-compiling, otherwise use the default path.
dnl
if test "$cross_compiling" = "yes"; then
    MYPATH=""
else
#   
MYPATH="/bin:/usr/bin:/usr/local/bin:$PATH:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnu/bin"
    MYPATH=$PATH
fi

If you change 'MYPATH=""' to 'MYPATH=":"' the problem goes away, and
the desired behavior (according to the comment) occurs.
Comment 2 Chris Larson 2005-01-29 10:51:17 EST
Created attachment 110382 [details]
Patch to fix the MYPATH for crosscompilation.
Comment 3 Jeff Johnson 2005-01-29 11:19:46 EST
Checked in on HEAD and rpm-4_{4,3,2} branches. Thanks for the patch.

Should be in rpm-4.4.1-0.13 and later when built.

Note You need to log in before you can comment on or make changes to this bug.