Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 64921

Summary: glibc-2.3.4.20040918: ldd broken
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: 2004.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch
Upstream diffs

Description Ed Catmur 2004-09-21 17:47:18 UTC
ed@capella ~ $ ldd /bin/bash
/usr/bin/ldd: line 78: syntax error near unexpected token `)'
/usr/bin/ldd: line 78: `  --v | --ve | --ver)'
ed@capella ~ $ cat -n /usr/bin/ldd | sed '75,81!d'
    75    -u | --u | --un | --unu | --unus | --unuse | --unused)
    76      unused=yes
    77      shift
    78    --v | --ve | --ver)
    79      echo >&2 $"ldd: option \`$1' is ambiguous"
    80      exit 1
    81      ;;

Note the missing double-semicolon after line 77. (This is a bash case...in block, btw.)

Patch to follow; that isn't the only error in the file.

(I /wondered/ why revdep-rebuild wasn't working...)
Comment 1 Ed Catmur 2004-09-21 17:50:34 UTC
Created attachment 40138 [details, diff]
Patch

Two errors: omitted double-semicolon, omitted ending double quotes.

And these are the guys we trust to write glibc... Let's hope their C skills
don't reflect their bash abilities.
Comment 2 Ed Catmur 2004-09-21 17:57:04 UTC
Created attachment 40139 [details, diff]
Upstream diffs

So this has been fixed upstream already:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/elf/ldd.bash.in.diff?r1=1.31&r2=1.32&cvsroot=glibc


Just 9 hours ago though... :grin:

Their patch is more correct than mine, though. Obsoleting mine.
Comment 3 Joe McCann (RETIRED) gentoo-dev 2004-09-21 18:48:15 UTC
Hopefully local devs will test more after taking random cvs snapshots. thanks for checking into it though.

*** This bug has been marked as a duplicate of 64732 ***