[lfs-support] Trouble changing dynamic linker in step 6.9

Dave H thegenrlftw at gmail.com
Tue Jan 31 19:57:34 PST 2012


On Tue, Jan 31, 2012 at 12:23 PM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> Firerat wrote:
>> On 31 January 2012 14:50, Dave H <thegenrlftw at gmail.com> wrote:
>>>> $(readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p')
>>> with this i get:
>>> ===========================================================================
>>> $(readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p')
>>>
>>> bash: command substitution: line 54: syntax error near unexpected token `)'
>>> bash: command substitution: line 54: `readelf -l /bin/sh | sed -n
>>> 's at .*interpret.*/tools\(.*\)]$@\1 at p')'
>>> ===========================================================================
>>>
>>>> ` readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p' `
>>> this looks like i get something different (this is still with set -vx)
>>> ===========================================================================
>>> root:/sources/glibc-2.14.1# ` readelf -l /bin/sh | sed -n
>>> 's at .*interpret.*/tools\(.*\)]$@\1 at p' `
>>>
>>> ` readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p' `
>>> �readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p'
>>> ++ readelf -l /bin/sh
>>> ++ sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p'
>>> + /lib64/ld-linux-x86-64.so.2
>>> bash: /lib64/ld-linux-x86-64.so.2: No such file or directory
>>> ============================================================================
>
> What is the result of: echo `bash --version`
> How about: echo $(bash --version)
Hello again,

Here's what I see
============================================================================
root:/sources/glibc-build# echo $`bash --version`
$GNU bash, version 4.2.10(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU
GPL version 3 or later <http://gnu.org/licenses/gpl.html>
============================================================================
>
> The result above for the backticks is correct, but the $() is not.
>
> Give us the full output of the script in section vii of the Preface
> (Host System Requirements).
>

Hmm I see two problems which i haven't seen before.  Could these be
causing the problems?
============================================================================
dave at hostcomputer123:~$ bash version-check.sh
bash, version 4.1.5(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
version-check.sh: line 9: bison: command not found
/usr/bin/yacc -> /usr/bin/byacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.8) stable release version 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.32-37-generic (buildd at allspice) (gcc version 4.4.3
(Ubuntu 4.4.3-4ubuntu5) ) #81-Ubuntu SMP Fri Dec 2 20:32:42 UTC 2011
version-check.sh: line 26: m4: command not found
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 4.999.9beta
Compilation OK
============================================================================
> Also show us the result of: set

this is the result of set:
============================================================================
root:/sources/glibc-build# set
BASH=/tools/bin/bash
BASHOPTS=cmdhist:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:login_shell:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="2" [2]="10" [3]="1" [4]="release"
[5]="x86_64-unknown-linux-gnu")
BASH_VERSION='4.2.10(1)-release'
COLUMNS=149
DIRSTACK=()
EUID=0
GROUPS=()
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=davemain4
HOSTTYPE=x86_64
IFS=$' \t\n'
LINES=57
MACHTYPE=x86_64-unknown-linux-gnu
MAILCHECK=60
OLDPWD=/sources/glibc-2.14.1
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
PIPESTATUS=([0]="0")
PPID=18220
PS1='\u:\w\$ '
PS2='> '
PS4='+ '
PWD=/sources/glibc-build
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:histexpand:history:interactive-comments:monitor
SHLVL=1
TERM=xterm
UID=0
_=law.
============================================================================

I don't know why it cant find m4 or bison?  I do know i compiled m4
from scratch and didn't use a repository.  It completed without any
errors or anything.  Still could that be the issue?

Best regards,

Dave


>   -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page



More information about the lfs-support mailing list