Bug 463777 - /sbin/weak-updates error: nm: 'a.out': No such file
Summary: /sbin/weak-updates error: nm: 'a.out': No such file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: module-init-tools
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jon Masters
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-24 16:59 UTC by Victor Gregorio
Modified: 2009-09-02 11:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:27:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1362 0 normal SHIPPED_LIVE module-init-tools bug fix update 2009-09-01 10:57:29 UTC

Description Victor Gregorio 2008-09-24 16:59:36 UTC
Description of problem:

/sbin/weak-updates expects /lib/modules/$(uname -r)/extra to have *.ko files, triggering an error with /usr/bin/nm

Version-Release number of selected component (if applicable):

module-init-tools-3.3-0.pre3.1.37.el5

How reproducible:

Every time

Steps to Reproduce:

echo /path/to/kernel/module.ko | /sbin/weak-updates --add-module
  
Actual results:

nm: 'a.out': No such file

Expected results:

No error from nm, which assumes a.out when no argument is supplied.

Additional info:

If /lib/modules/$(uname -r)/extra is empty, /sbin/weak-modules still runs nm on nothing, triggering the 'a.out' : No such file error.

222         # Symbols that other add-on modules of the "old" kernel export
223         # (and that this module may require)
224         if [ ! -e "$tmpdir/extra-symvers-$module_krel" ]; then
225             if [ -e /lib/modules/$module_krel/extra ]; then
226                 find /lib/modules/$module_krel/extra -name '*.ko' \
227                 | xargs nm \
228                 | sed -nre 's:^[0]*([0-9a-f]{8}) A __crc_(.*):0x\1 \2:p'
229             fi > $tmpdir/extra-symvers-$module_krel
230         fi

Comment 2 Jon Masters 2009-05-11 20:20:36 UTC
*** Bug 468280 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2009-09-02 11:27:59 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-2009-1362.html


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