LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-19-2010, 02:57 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
user based man pages problem


Hello,

I decided to use the user based package management.
And I have a little problem on installing the man-pages.

I did this steps.

As root i did this steps :

mkdir -p /usr/share/man/man{0,1,2,3,4,5,6,7,8}
chown man-pages:manpages /usr/share/man/man{0,1,2,3,4,5,6,7,8}
chmod 755 /usr/share/man/man{0,1,2,3,4,5,6,7,8}

But when I do as user man-pages I still see the errors appear as the manpages are installed.

Roelof
 
Old 04-19-2010, 05:22 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Hello,

I decided to use the user based package management.
And I have a little problem on installing the man-pages.

I did this steps.

As root i did this steps :

mkdir -p /usr/share/man/man{0,1,2,3,4,5,6,7,8}
chown man-pages:manpages /usr/share/man/man{0,1,2,3,4,5,6,7,8}
chmod 755 /usr/share/man/man{0,1,2,3,4,5,6,7,8}

But when I do as user man-pages I still see the errors appear as the manpages are installed.

Roelof
Hi,

first of all it is advised to choose the same name for the group and the user. What are the errors? Did you install the wrapper scripts for the user based management? What does your path look like for a package user? When inatalling manpages you will have to make a lot of directories install directories. Several packages will create additional directories which will also need to be changed to install directories afterwards.
 
Old 04-19-2010, 07:49 AM   #3
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

The errors are this one :

*** install -d -m 755 /usr/share/man/man1
*** install -d -m 755 /usr/share/man/man2
*** install -d -m 755 /usr/share/man/man3
*** install -d -m 755 /usr/share/man/man4
*** install -d -m 755 /usr/share/man/man5
*** install -d -m 755 /usr/share/man/man6
*** install -d -m 755 /usr/share/man/man7
*** install -d -m 755 /usr/share/man/man8


But they are made by me see this :

ls -al /usr/share/man
total 100
drwxr-xr-x 12 root root 120 Apr 19 07:44 .
drwxrwxr-t 9 root install 91 Apr 19 06:52 ..
drwxr-xr-x 2 man-pages man-pages 6 Apr 19 07:40 man0
drwxr-xr-x 2 man-pages man-pages 45 Apr 19 12:45 man1
drwxr-xr-x 2 man-pages man-pages 12288 Apr 19 12:45 man2
drwxr-xr-x 2 man-pages man-pages 36864 Apr 19 12:46 man3
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man4
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man5
drwxr-xr-x 2 man-pages man-pages 20 Apr 19 12:46 man6
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man7
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man8


Roelof
 
Old 04-19-2010, 09:31 AM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Oke,

The errors are this one :

*** install -d -m 755 /usr/share/man/man1
*** install -d -m 755 /usr/share/man/man2
*** install -d -m 755 /usr/share/man/man3
*** install -d -m 755 /usr/share/man/man4
*** install -d -m 755 /usr/share/man/man5
*** install -d -m 755 /usr/share/man/man6
*** install -d -m 755 /usr/share/man/man7
*** install -d -m 755 /usr/share/man/man8


But they are made by me see this :

ls -al /usr/share/man
total 100
drwxr-xr-x 12 root root 120 Apr 19 07:44 .
drwxrwxr-t 9 root install 91 Apr 19 06:52 ..
drwxr-xr-x 2 man-pages man-pages 6 Apr 19 07:40 man0
drwxr-xr-x 2 man-pages man-pages 45 Apr 19 12:45 man1
drwxr-xr-x 2 man-pages man-pages 12288 Apr 19 12:45 man2
drwxr-xr-x 2 man-pages man-pages 36864 Apr 19 12:46 man3
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man4
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man5
drwxr-xr-x 2 man-pages man-pages 20 Apr 19 12:46 man6
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man7
drwxr-xr-x 2 man-pages man-pages 4096 Apr 19 12:46 man8


Roelof
Ok,

the good news is, those are not errors. This indicates that your install wrappers are working correctly. The '*** ...' statements are the output of the install-wrapper script. It informs you that the install command has been modified. In a user based managed system the install program is not allowed to change directory permissions. This was automatically prevented by the wrapper. Keep in mind though, that other packages will try to install their own manpages but will fail since they do not have write permissions for the created directories. You will have to change the group of the directories to 'install' and make them sticky, so that nothing will get overwritten.
Code:
chgrp install /usr/share/man/man{0..8}
chmod g+w,o+t /usr/share/man/man{0..8}
or maybe even
Code:
find /usr/share/man/ -type d -exec chgrp install '{}' \;
find /usr/share/man/ -type d -exec chmod g+w,o+t '{}' \;
Hint for upcoming failures:
Keep an eye on the man directories. Other packages will fail to install because of lack of permission in those directories. The reason for this behaviour is that other packages will create subdirectories which then will be owned by them. Therefor any other package won't be able to install in those dirs. The solution is quiete simple: Just make them install directories. If you encounter such a problem you'll see what I mean.

If any other package fails to install and the reason does not lie in the manpages directories you can post again.
Hope this helps.

Last edited by crts; 04-19-2010 at 09:32 AM.
 
Old 04-19-2010, 10:54 AM   #5
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
hello ,

Thank you for the good explanation.
I will change it to your tips.

Now I have another problem.
On gcc-2.11 Make i see this message :

/bin/sh: /tools/bin/gzip: No such file or directory
make[2]: *** [/usr/share/i18n/charmaps/ANSI_X3.110-1983.gz] Error 127
make[2]: Leaving directory `/sources/glibc-2.11.1/localedata'
make[1]: *** [localedata/subdir_install] Error 2
make[1]: Leaving directory `/sources/glibc-2.11.1'
make: *** [install] Error 2


But when I do ls -al /tools/bin/gzip I see this :
-rwxr-xr-x 1 root root 74680 Apr 17 14:21 /tools/bin/gzip

So it there.

Roelof
 
Old 04-19-2010, 11:02 AM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
What is the output of
Code:
ldd /tools/bin/gzip
[EDIT]
Also helpful, the output of
Code:
readelf -a /bin/ls | grep interpreter

Last edited by crts; 04-19-2010 at 11:03 AM.
 
Old 04-19-2010, 11:21 AM   #7
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello ,

It doesn't like good.

Ldd /tools/bin/gzip gives :

/tools/bin/ldd: line 126: /tools/bin/gzip: No such file or directory

And readelf -a /bin/ls | grep interpreter gives :

readelf: Error: '/bin/ls': No such file


I did both steps in chrooted and as user root

Roelof
 
Old 04-19-2010, 11:48 AM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Hello ,

And readelf -a /bin/ls | grep interpreter gives :

readelf: Error: '/bin/ls': No such file
Oops, sorry I meant

Code:
readelf -a /tools/bin/gzip | grep interpreter
 
Old 04-19-2010, 12:29 PM   #9
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

The output is then

[Requesting program interpreter: /lib/ld-linux.so.2]

Roelof

Edit :

ls /lib gives this :
ld-2.11.1.so libBrokenLocale-2.11.1.so libc-2.11.1.so


So no ld-linux-so,2

Last edited by charlie_lab; 04-19-2010 at 12:49 PM.
 
Old 04-19-2010, 01:07 PM   #10
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Hello,

The output is then

[Requesting program interpreter: /lib/ld-linux.so.2]

Roelof

Edit :

ls /lib gives this :
ld-2.11.1.so libBrokenLocale-2.11.1.so libc-2.11.1.so


So no ld-linux-so,2
Well, there is the culprit. It should be more like
Code:
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
So this looks like your toolchain is corrupted. If this is your only program that was linked wrong then you can try to rebuild it like in chapter 5.

To check the sanity of your toolchain you can run the following
Code:
for f in /tools/{sbin,bin}/*; do
    readelf -a "/tools/bin/$f" | grep "interpreter: /lib"
done
This should output all the binaries that have been linked wrong.

Last edited by crts; 04-19-2010 at 01:08 PM.
 
Old 04-19-2010, 02:05 PM   #11
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

I think the problem is that the make from gcc didn;t finisch.
All the programm are displayed.

I will try to revert this install and look if it's will be better.

Roelof

Edit : I deleted the glibc package but the problem stays.
Wierd. After making the toolchain and tested it everything was allright.

So i think I have to re-install everything

Last edited by charlie_lab; 04-19-2010 at 02:23 PM.
 
Old 04-19-2010, 02:56 PM   #12
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Hello,
All the programm are displayed.
Do you mean that all the programs are displayed when you executed the for-loop I posted earlier? What is their output?

[EDIT]
Quote:
On gcc-2.11 Make i see this message :
I just noticed that. I think you mean glibc-2.11.1 and not gcc-2.11

Last edited by crts; 04-19-2010 at 03:01 PM.
 
1 members found this post helpful.
Old 04-20-2010, 02:43 AM   #13
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

Sorry, i mean glibc-2.11

The output of the for loop is:
Code:
readelf: Error: '/tools/bin//tools/sbin/iconvconfig': No such file
readelf: Error: '/tools/bin//tools/sbin/ldconfig': No such file
readelf: Error: '/tools/bin//tools/sbin/nscd': No such file
readelf: Error: '/tools/bin//tools/sbin/rpcinfo': No such file
readelf: Error: '/tools/bin//tools/sbin/sln': No such file
readelf: Error: '/tools/bin//tools/sbin/zdump': No such file
readelf: Error: '/tools/bin//tools/sbin/zic': No such file
readelf: Error: '/tools/bin//tools/bin/[': No such file
readelf: Error: '/tools/bin//tools/bin/add_package_user': No such file
readelf: Error: '/tools/bin//tools/bin/addr2line': No such file
readelf: Error: '/tools/bin//tools/bin/ar': No such file
readelf: Error: '/tools/bin//tools/bin/as': No such file
readelf: Error: '/tools/bin//tools/bin/awk': No such file
readelf: Error: '/tools/bin//tools/bin/base64': No such file
readelf: Error: '/tools/bin//tools/bin/basename': No such file
readelf: Error: '/tools/bin//tools/bin/bash': No such file
readelf: Error: '/tools/bin//tools/bin/bashbug': No such file
readelf: Error: '/tools/bin//tools/bin/bunzip2': No such file
readelf: Error: '/tools/bin//tools/bin/bzcat': No such file
readelf: Error: '/tools/bin//tools/bin/bzcmp': No such file
readelf: Error: '/tools/bin//tools/bin/bzdiff': No such file
readelf: Error: '/tools/bin//tools/bin/bzegrep': No such file
readelf: Error: '/tools/bin//tools/bin/bzfgrep': No such file
readelf: Error: '/tools/bin//tools/bin/bzgrep': No such file
readelf: Error: '/tools/bin//tools/bin/bzip2': No such file
readelf: Error: '/tools/bin//tools/bin/bzip2recover': No such file
readelf: Error: '/tools/bin//tools/bin/bzless': No such file
readelf: Error: '/tools/bin//tools/bin/bzmore': No such file
readelf: Error: '/tools/bin//tools/bin/c++': No such file
readelf: Error: '/tools/bin//tools/bin/c++filt': No such file
readelf: Error: '/tools/bin//tools/bin/captoinfo': No such file
readelf: Error: '/tools/bin//tools/bin/cat': No such file
readelf: Error: '/tools/bin//tools/bin/catchsegv': No such file
readelf: Error: '/tools/bin//tools/bin/cc': No such file
readelf: Error: '/tools/bin//tools/bin/chcon': No such file
readelf: Error: '/tools/bin//tools/bin/chgrp': No such file
readelf: Error: '/tools/bin//tools/bin/chmod': No such file
readelf: Error: '/tools/bin//tools/bin/chown': No such file
readelf: Error: '/tools/bin//tools/bin/chroot': No such file
readelf: Error: '/tools/bin//tools/bin/cksum': No such file
readelf: Error: '/tools/bin//tools/bin/clear': No such file
readelf: Error: '/tools/bin//tools/bin/cmp': No such file
readelf: Error: '/tools/bin//tools/bin/comm': No such file
readelf: Error: '/tools/bin//tools/bin/cp': No such file
readelf: Error: '/tools/bin//tools/bin/cpp': No such file
readelf: Error: '/tools/bin//tools/bin/csplit': No such file
readelf: Error: '/tools/bin//tools/bin/cut': No such file
readelf: Error: '/tools/bin//tools/bin/date': No such file
readelf: Error: '/tools/bin//tools/bin/dd': No such file
readelf: Error: '/tools/bin//tools/bin/df': No such file
readelf: Error: '/tools/bin//tools/bin/diff': No such file
readelf: Error: '/tools/bin//tools/bin/diff3': No such file
readelf: Error: '/tools/bin//tools/bin/dir': No such file
readelf: Error: '/tools/bin//tools/bin/dircolors': No such file
readelf: Error: '/tools/bin//tools/bin/dirname': No such file
readelf: Error: '/tools/bin//tools/bin/du': No such file
readelf: Error: '/tools/bin//tools/bin/echo': No such file
readelf: Error: '/tools/bin//tools/bin/egrep': No such file
readelf: Error: '/tools/bin//tools/bin/env': No such file
readelf: Error: '/tools/bin//tools/bin/expand': No such file
readelf: Error: '/tools/bin//tools/bin/expect': No such file
readelf: Error: '/tools/bin//tools/bin/expr': No such file
readelf: Error: '/tools/bin//tools/bin/factor': No such file
readelf: Error: '/tools/bin//tools/bin/false': No such file
readelf: Error: '/tools/bin//tools/bin/fgrep': No such file
readelf: Error: '/tools/bin//tools/bin/find': No such file
readelf: Error: '/tools/bin//tools/bin/fmt': No such file
readelf: Error: '/tools/bin//tools/bin/fold': No such file
readelf: Error: '/tools/bin//tools/bin/g++': No such file
readelf: Error: '/tools/bin//tools/bin/gawk': No such file
readelf: Error: '/tools/bin//tools/bin/gawk-3.1.7': No such file
readelf: Error: '/tools/bin//tools/bin/gcc': No such file
readelf: Error: '/tools/bin//tools/bin/gccbug': No such file
readelf: Error: '/tools/bin//tools/bin/gcov': No such file
readelf: Error: '/tools/bin//tools/bin/gencat': No such file
readelf: Error: '/tools/bin//tools/bin/getconf': No such file
readelf: Error: '/tools/bin//tools/bin/getent': No such file
readelf: Error: '/tools/bin//tools/bin/gprof': No such file
readelf: Error: '/tools/bin//tools/bin/grep': No such file
readelf: Error: '/tools/bin//tools/bin/groupadd': No such file
readelf: Error: '/tools/bin//tools/bin/groups': No such file
readelf: Error: '/tools/bin//tools/bin/gunzip': No such file
readelf: Error: '/tools/bin//tools/bin/gzexe': No such file
readelf: Error: '/tools/bin//tools/bin/gzip': No such file
readelf: Error: '/tools/bin//tools/bin/head': No such file
readelf: Error: '/tools/bin//tools/bin/hostid': No such file
readelf: Error: '/tools/bin//tools/bin/hostname': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-addr2line': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-ar': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-as': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-c++filt': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-cpp': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-gcc': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-gcc-4.4.3': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-gccbug': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-gcov': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-gprof': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-ld': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-nm': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-objcopy': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-objdump': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-ranlib': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-readelf': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-size': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-strings': No such file
readelf: Error: '/tools/bin//tools/bin/i686-lfs-linux-gnu-strip': No such file
readelf: Error: '/tools/bin//tools/bin/i686-pc-linux-gnu-c++': No such file
readelf: Error: '/tools/bin//tools/bin/i686-pc-linux-gnu-g++': No such file
readelf: Error: '/tools/bin//tools/bin/i686-pc-linux-gnu-gcc': No such file
readelf: Error: '/tools/bin//tools/bin/i686-pc-linux-gnu-gcc-4.4.3': No such file
readelf: Error: '/tools/bin//tools/bin/iconv': No such file
readelf: Error: '/tools/bin//tools/bin/id': No such file
readelf: Error: '/tools/bin//tools/bin/igawk': No such file
readelf: Error: '/tools/bin//tools/bin/info': No such file
readelf: Error: '/tools/bin//tools/bin/infocmp': No such file
readelf: Error: '/tools/bin//tools/bin/infokey': No such file
readelf: Error: '/tools/bin//tools/bin/infotocap': No such file
readelf: Error: '/tools/bin//tools/bin/install': No such file
readelf: Error: '/tools/bin//tools/bin/install-info': No such file
readelf: Error: '/tools/bin//tools/bin/install_package': No such file
readelf: Error: '/tools/bin//tools/bin/join': No such file
readelf: Error: '/tools/bin//tools/bin/kill': No such file
readelf: Error: '/tools/bin//tools/bin/ld': No such file
readelf: Error: '/tools/bin//tools/bin/ld-new': No such file
readelf: Error: '/tools/bin//tools/bin/ldd': No such file
readelf: Error: '/tools/bin//tools/bin/lddlibc4': No such file
readelf: Error: '/tools/bin//tools/bin/link': No such file
readelf: Error: '/tools/bin//tools/bin/ln': No such file
readelf: Error: '/tools/bin//tools/bin/locale': No such file
readelf: Error: '/tools/bin//tools/bin/localedef': No such file
readelf: Error: '/tools/bin//tools/bin/locate': No such file
readelf: Error: '/tools/bin//tools/bin/logname': No such file
readelf: Error: '/tools/bin//tools/bin/ls': No such file
readelf: Error: '/tools/bin//tools/bin/m4': No such file
readelf: Error: '/tools/bin//tools/bin/make': No such file
readelf: Error: '/tools/bin//tools/bin/makeinfo': No such file
readelf: Error: '/tools/bin//tools/bin/md5sum': No such file
readelf: Error: '/tools/bin//tools/bin/mkdir': No such file
readelf: Error: '/tools/bin//tools/bin/mkfifo': No such file
readelf: Error: '/tools/bin//tools/bin/mknod': No such file
readelf: Error: '/tools/bin//tools/bin/mktemp': No such file
readelf: Error: '/tools/bin//tools/bin/msgfmt': No such file
readelf: Error: '/tools/bin//tools/bin/mtrace': No such file
readelf: Error: '/tools/bin//tools/bin/mv': No such file
readelf: Error: '/tools/bin//tools/bin/ncurses5-config': No such file
readelf: Error: '/tools/bin//tools/bin/nice': No such file
readelf: Error: '/tools/bin//tools/bin/nl': No such file
readelf: Error: '/tools/bin//tools/bin/nm': No such file
readelf: Error: '/tools/bin//tools/bin/nohup': No such file
readelf: Error: '/tools/bin//tools/bin/nproc': No such file
readelf: Error: '/tools/bin//tools/bin/objcopy': No such file
readelf: Error: '/tools/bin//tools/bin/objdump': No such file
readelf: Error: '/tools/bin//tools/bin/od': No such file
readelf: Error: '/tools/bin//tools/bin/oldfind': No such file
readelf: Error: '/tools/bin//tools/bin/paste': No such file
readelf: Error: '/tools/bin//tools/bin/patch': No such file
readelf: Error: '/tools/bin//tools/bin/pathchk': No such file
readelf: Error: '/tools/bin//tools/bin/pcprofiledump': No such file
readelf: Error: '/tools/bin//tools/bin/pdftexi2dvi': No such file
readelf: Error: '/tools/bin//tools/bin/perl': No such file
readelf: Error: '/tools/bin//tools/bin/pgawk': No such file
readelf: Error: '/tools/bin//tools/bin/pgawk-3.1.7': No such file
readelf: Error: '/tools/bin//tools/bin/pinky': No such file
readelf: Error: '/tools/bin//tools/bin/pod2man': No such file
readelf: Error: '/tools/bin//tools/bin/pr': No such file
readelf: Error: '/tools/bin//tools/bin/printenv': No such file
readelf: Error: '/tools/bin//tools/bin/printf': No such file
readelf: Error: '/tools/bin//tools/bin/ptx': No such file
readelf: Error: '/tools/bin//tools/bin/pwd': No such file
readelf: Error: '/tools/bin//tools/bin/ranlib': No such file
readelf: Error: '/tools/bin//tools/bin/readelf': No such file
readelf: Error: '/tools/bin//tools/bin/readlink': No such file
readelf: Error: '/tools/bin//tools/bin/reset': No such file
readelf: Error: '/tools/bin//tools/bin/rm': No such file
readelf: Error: '/tools/bin//tools/bin/rmdir': No such file
readelf: Error: '/tools/bin//tools/bin/rpcgen': No such file
readelf: Error: '/tools/bin//tools/bin/runcon': No such file
readelf: Error: '/tools/bin//tools/bin/runtest': No such file
readelf: Error: '/tools/bin//tools/bin/sdiff': No such file
readelf: Error: '/tools/bin//tools/bin/sed': No such file
readelf: Error: '/tools/bin//tools/bin/seq': No such file
readelf: Error: '/tools/bin//tools/bin/sh': No such file
readelf: Error: '/tools/bin//tools/bin/sha1sum': No such file
readelf: Error: '/tools/bin//tools/bin/sha224sum': No such file
readelf: Error: '/tools/bin//tools/bin/sha256sum': No such file
readelf: Error: '/tools/bin//tools/bin/sha384sum': No such file
readelf: Error: '/tools/bin//tools/bin/sha512sum': No such file
readelf: Error: '/tools/bin//tools/bin/shred': No such file
readelf: Error: '/tools/bin//tools/bin/shuf': No such file
readelf: Error: '/tools/bin//tools/bin/size': No such file
readelf: Error: '/tools/bin//tools/bin/sleep': No such file
readelf: Error: '/tools/bin//tools/bin/sort': No such file
readelf: Error: '/tools/bin//tools/bin/split': No such file
readelf: Error: '/tools/bin//tools/bin/sprof': No such file
readelf: Error: '/tools/bin//tools/bin/stat': No such file
readelf: Error: '/tools/bin//tools/bin/stdbuf': No such file
readelf: Error: '/tools/bin//tools/bin/strings': No such file
readelf: Error: '/tools/bin//tools/bin/strip': No such file
readelf: Error: '/tools/bin//tools/bin/stty': No such file
readelf: Error: '/tools/bin//tools/bin/su': No such file
readelf: Error: '/tools/bin//tools/bin/sum': No such file
readelf: Error: '/tools/bin//tools/bin/sync': No such file
readelf: Error: '/tools/bin//tools/bin/tac': No such file
readelf: Error: '/tools/bin//tools/bin/tail': No such file
readelf: Error: '/tools/bin//tools/bin/tar': No such file
readelf: Error: '/tools/bin//tools/bin/tclsh': No such file
readelf: Error: '/tools/bin//tools/bin/tclsh8.5': No such file
readelf: Error: '/tools/bin//tools/bin/tee': No such file
readelf: Error: '/tools/bin//tools/bin/test': No such file
readelf: Error: '/tools/bin//tools/bin/texi2dvi': No such file
readelf: Error: '/tools/bin//tools/bin/texi2pdf': No such file
readelf: Error: '/tools/bin//tools/bin/texindex': No such file
readelf: Error: '/tools/bin//tools/bin/tic': No such file
readelf: Error: '/tools/bin//tools/bin/timeout': No such file
readelf: Error: '/tools/bin//tools/bin/toe': No such file
readelf: Error: '/tools/bin//tools/bin/touch': No such file
readelf: Error: '/tools/bin//tools/bin/tput': No such file
readelf: Error: '/tools/bin//tools/bin/tr': No such file
readelf: Error: '/tools/bin//tools/bin/true': No such file
readelf: Error: '/tools/bin//tools/bin/truncate': No such file
readelf: Error: '/tools/bin//tools/bin/tset': No such file
readelf: Error: '/tools/bin//tools/bin/tsort': No such file
readelf: Error: '/tools/bin//tools/bin/tty': No such file
readelf: Error: '/tools/bin//tools/bin/tzselect': No such file
readelf: Error: '/tools/bin//tools/bin/uname': No such file
readelf: Error: '/tools/bin//tools/bin/uncompress': No such file
readelf: Error: '/tools/bin//tools/bin/unexpand': No such file
readelf: Error: '/tools/bin//tools/bin/uniq': No such file
readelf: Error: '/tools/bin//tools/bin/unlink': No such file
readelf: Error: '/tools/bin//tools/bin/updatedb': No such file
readelf: Error: '/tools/bin//tools/bin/uptime': No such file
readelf: Error: '/tools/bin//tools/bin/useradd': No such file
readelf: Error: '/tools/bin//tools/bin/users': No such file
readelf: Error: '/tools/bin//tools/bin/vdir': No such file
readelf: Error: '/tools/bin//tools/bin/wc': No such file
readelf: Error: '/tools/bin//tools/bin/who': No such file
readelf: Error: '/tools/bin//tools/bin/whoami': No such file
readelf: Error: '/tools/bin//tools/bin/xargs': No such file
readelf: Error: '/tools/bin//tools/bin/xtrace': No such file
readelf: Error: '/tools/bin//tools/bin/yes': No such file
readelf: Error: '/tools/bin//tools/bin/zcat': No such file
readelf: Error: '/tools/bin//tools/bin/zcmp': No such file
readelf: Error: '/tools/bin//tools/bin/zdiff': No such file
readelf: Error: '/tools/bin//tools/bin/zegrep': No such file
readelf: Error: '/tools/bin//tools/bin/zfgrep': No such file
readelf: Error: '/tools/bin//tools/bin/zforce': No such file
readelf: Error: '/tools/bin//tools/bin/zgrep': No such file
readelf: Error: '/tools/bin//tools/bin/zless': No such file
readelf: Error: '/tools/bin//tools/bin/zmore': No such file
readelf: Error: '/tools/bin//tools/bin/znew': No such file
It looks like to me that gcc get corrupted by the glibc install .

Roelof
 
Old 04-20-2010, 09:57 AM   #14
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Ok,

it was very late when I posted the loop. It should be
Code:
for f in /tools/{sbin,bin}/*; do
    readelf -a "$f" | grep "interpreter: /lib"
done
This should also give the same results
Code:
readelf -a /tools/bin/* | grep "interpreter: /lib"
readelf -a /tools/sbin/* | grep "interpreter: /lib"
Sorry for the confusion.

Quote:
It looks like to me that gcc get corrupted by the glibc install .
My guess is that in chapter 5 the toolchain adjustment went wrong. The path to the linker is hard-wired into the binary, you cannot break it by breaking gcc after having it already compiled.
 
Old 04-20-2010, 11:54 AM   #15
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

Now the for loop gives me this output :

readelf: Error: Unable to read in 0x6e65 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6e61 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6c70 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6c70 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6574 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6574 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6574 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6574 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6574 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x322c bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x7320 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x5320 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x7265 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6c62 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
readelf: Error: Unable to read in 0x7320 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
[Requesting program interpreter: /lib/ld-linux.so.2]
readelf: Error: Unable to read in 0x6564 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x5320 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6572 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x2030 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x302f bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x3531 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6c72 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6972 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6620 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x3235 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x2023 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x7265 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x656d bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x5320 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x3032 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x2e74 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x666f bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6c70 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6e69 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6e69 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x206c bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x7270 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x3030 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x6565 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: Unable to read in 0x3030 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start

Roelof
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for EXAMPLE-BASED man pages learnfast Linux - Newbie 1 04-11-2005 11:37 AM
new 9.1 install problem with man pages slackgood Slackware 2 11-02-2003 01:47 PM
font problem in man pages -=MaGo=- Linux - General 2 11-01-2003 12:02 PM
problem with man pages mutt Slackware 1 06-29-2003 05:03 AM
Problem with man pages d1ll1gaf Slackware 1 06-12-2003 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration