LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-28-2005, 03:56 PM   #1
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Rep: Reputation: 15
LFS 6 Chapter 6.8 mount error


Hello!
I am having problems trying to build LFS. In chapter 6.8 there are three mount commands you must enter:

Code:
mount -n -t ramfs none /dev
mount -t devpts -o gid=4,mode=620 none /dev/pts
mount -t tmpfs none /dev/shm
but, all three output the same error:
Code:
mount: error while loading shared libraries: libblkid.so.1: cannot open shared object file:No such file or directory
Any help would be greatly appreciated!!!

I am using:

Linux From Scratch - Version SVN-20050417
Slackware 10.1
Stock Kernel 2.6 (from disc 2 /testing)
 
Old 04-29-2005, 07:11 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

once again, post the output of:
Code:
ldd /bin/mount
what surprises me is that mount does not depend of libblkid.so.1 (in theory). For my own:
Code:
ldd /bin/mount 
        libc.so.6 => /lib/libc.so.6 (0x4001f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Note that it may come from an error in util-linux package installation in chapter5
 
Old 04-29-2005, 02:09 PM   #3
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Code:
I have no name!:/# ldd /bin/mount
ldd: /bin/mount: No such file or directory
Do you think I need to do something to the configure command for util-linux ?
 
Old 04-29-2005, 08:40 PM   #4
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Try the following:
Code:
# ldd `which mount`
(those are backticks, not single quotes, btw)
 
Old 04-30-2005, 11:18 AM   #5
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
I wasn't sure if the command was for the LFS bash or the normal console.. here's both.


Code:
root@darkstar:~# ldd `which mount`
        linux-gate.so.1 =>  (0xffffe000)
        libblkid.so.1 => /lib/libblkid.so.1 (0x4002e000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x40036000)
        libc.so.6 => /lib/libc.so.6 (0x40039000)
        /lib/ld-linux.so.2 (0x40000000)
Code:
I have no name!:/# ldd `which mount`
bash: which: command not found
ldd: missing file arguments
Try `ldd --help' for more information.
thanks for helping me so far !
 
Old 05-01-2005, 07:37 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
as you have to enter your mount command in your chroot environnement, that's in chroot environnement that you have to try this command.
so try (in chroot environnement):
Code:
find / -name mount
and then process "ldd" command on the result
 
Old 05-01-2005, 11:49 PM   #7
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Here's the output

Code:
I have no name!:/# find / -name mount
/sources/util-linux-2.12q/mount
/sources/util-linux-2.12q/mount/mount
/tools/bin/mount
find: /proc/1/task: Permission denied
find: WARNING: Hard link count is wrong for /proc: this may be a bug in your filesystem driver.  Automatically turning on find's -noleaf option.  Earlier results may have failed to include directories that should have been searched.
find: /proc/1/fd: Permission denied
find: /proc/2/task: Permission denied
find: /proc/2/fd: Permission denied
find: /proc/3/task: Permission denied
find: /proc/3/fd: Permission denied
find: /proc/4/task: Permission denied
find: /proc/4/fd: Permission denied
find: /proc/16/task: Permission denied
find: /proc/16/fd: Permission denied
find: /proc/87/task: Permission denied
find: /proc/87/fd: Permission denied
find: /proc/100/task: Permission denied
find: /proc/100/fd: Permission denied
find: /proc/145/task: Permission denied
find: /proc/145/fd: Permission denied
find: /proc/146/task: Permission denied
find: /proc/146/fd: Permission denied
find: /proc/148/task: Permission denied
find: /proc/148/fd: Permission denied
find: /proc/147/task: Permission denied
find: /proc/147/fd: Permission denied
find: /proc/739/task: Permission denied
find: /proc/739/fd: Permission denied
find: /proc/893/task: Permission denied
find: /proc/893/fd: Permission denied
find: /proc/972/task: Permission denied
find: /proc/972/fd: Permission denied
find: /proc/1716/task: Permission denied
find: /proc/1716/fd: Permission denied
find: /proc/1719/task: Permission denied
find: /proc/1719/fd: Permission denied
find: /proc/1839/task: Permission denied
find: /proc/1839/fd: Permission denied
find: /proc/1916/task: Permission denied
find: /proc/1916/fd: Permission denied
find: /proc/2103/task: Permission denied
find: /proc/2103/fd: Permission denied
find: /proc/6328/task: Permission denied
find: /proc/6328/fd: Permission denied
find: /proc/6384/task: Permission denied
find: /proc/6384/fd: Permission denied
find: /proc/6394/task: Permission denied
find: /proc/6394/fd: Permission denied
find: /proc/6396/task: Permission denied
find: /proc/6396/fd: Permission denied
find: /proc/6399/task: Permission denied
find: /proc/6399/fd: Permission denied
find: /proc/6402/task: Permission denied
find: /proc/6402/fd: Permission denied
find: /proc/6405/task: Permission denied
find: /proc/6405/fd: Permission denied
find: /proc/6411/task: Permission denied
find: /proc/6411/fd: Permission denied
find: /proc/6419/task: Permission denied
find: /proc/6419/fd: Permission denied
find: /proc/6420/task: Permission denied
find: /proc/6420/fd: Permission denied
find: /proc/6421/task: Permission denied
find: /proc/6421/fd: Permission denied
find: /proc/6422/task: Permission denied
find: /proc/6422/fd: Permission denied
find: /proc/6423/task: Permission denied
find: /proc/6423/fd: Permission denied
find: /proc/6424/task: Permission denied
find: /proc/6424/fd: Permission denied
find: /proc/6507/task: Permission denied
find: /proc/6507/fd: Permission denied
find: /proc/6519/task: Permission denied
find: /proc/6519/fd: Permission denied
find: /proc/6520/task: Permission denied
find: /proc/6520/fd: Permission denied
find: /proc/6536/task: Permission denied
find: /proc/6536/fd: Permission denied
find: /proc/6537/task: Permission denied
find: /proc/6537/fd: Permission denied
find: /proc/6559/task: Permission denied
find: /proc/6559/fd: Permission denied
find: /proc/6562/task: Permission denied
find: /proc/6562/fd: Permission denied
find: /proc/6564/task: Permission denied
find: /proc/6564/fd: Permission denied
find: /proc/6567/task: Permission denied
find: /proc/6567/fd: Permission denied
find: /proc/6576/task: Permission denied
find: /proc/6576/fd: Permission denied
find: /proc/6580/task: Permission denied
find: /proc/6580/fd: Permission denied
find: /proc/6581/task: Permission denied
find: /proc/6581/fd: Permission denied
find: /proc/6583/task: Permission denied
find: /proc/6583/fd: Permission denied
find: /proc/6584/task: Permission denied
find: /proc/6584/fd: Permission denied
find: /proc/6585/task: Permission denied
find: /proc/6585/fd: Permission denied
find: /proc/6589/task: Permission denied
find: /proc/6589/fd: Permission denied
find: /proc/6590/task: Permission denied
find: /proc/6590/fd: Permission denied
find: /proc/6592/task: Permission denied
find: /proc/6592/fd: Permission denied
find: /proc/6594/task: Permission denied
find: /proc/6594/fd: Permission denied
find: /proc/6598/task: Permission denied
find: /proc/6598/fd: Permission denied
find: /proc/6698/task: Permission denied
find: /proc/6698/fd: Permission denied
find: /proc/6699/task: Permission denied
find: /proc/6699/fd: Permission denied
find: /proc/6701/task: Permission denied
find: /proc/6701/fd: Permission denied
find: /proc/6702/task: Permission denied
find: /proc/6702/fd: Permission denied
find: /proc/6703/task: Permission denied
find: /proc/6703/fd: Permission denied
I have no clue what's going on here! Please help me.
 
Old 05-02-2005, 06:47 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Well that's:
Code:
ldd /tools/bin/mount
 
Old 05-02-2005, 04:42 PM   #9
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Here is the commands output...

Code:
root@darkstar:~# ldd /tools/bin/mount
        linux-gate.so.1 =>  (0xffffe000)
        libblkid.so.1 => not found
        libuuid.so.1 => not found
        libc.so.6 => /tools/lib/libc.so.6 (0x40018000)
        /tools/lib/ld-linux.so.2 (0x40000000)

Code:
I have no name!:/# ldd /tools/bin/mount
        linux-gate.so.1 =>  (0xffffe000)
        libblkid.so.1 => not found
        libuuid.so.1 => not found
        libc.so.6 => /tools/lib/libc.so.6 (0x40018000)
        /tools/lib/ld-linux.so.2 (0x40000000)

?!...
 
Old 05-03-2005, 07:55 AM   #10
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
here is the problem:
Code:
libblkid.so.1 => not found
        libuuid.so.1 => not found
in fact these 2 libraries are from e2fsprog... so what is surprising is that your "mount" exec is linked with lib which relies on a specific fs
the only reason why it can do that is e2fsprog provides a "mount" command and that's the one you have installed whereas you should have installed the "mount" command from util-linux package...
 
Old 05-03-2005, 10:09 AM   #11
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
so how do i get the mount command from util-linux working?
 
Old 05-04-2005, 07:12 AM   #12
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Well recompile util-linux package, check that mount command is correctly linked (with ldd command) and then if that's OK install it.
 
Old 05-04-2005, 10:33 AM   #13
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# sed -i 's@/usr/include@/tools/include@g' configure

Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# ./configure

configuring util-linux-2.12q

You have <scsi/scsi.h>
You have <linux/blkpg.h>
You have <linux/kd.h>
You have <locale.h>
You have <langinfo.h>
You have <sys/user.h>
You have <uuid/uuid.h>
You have <rpcsvc/nfs_prot.h>
You have <asm/types.h>
You have <linux/raw.h>
You have <stdint.h>
You have <sys/io.h>
You have inet_aton()
You have fsync()
You have getdomainname()
You have nanosleep()
You have personality()
You have updwtmp()
You have fseeko()
You have lchown()
You have rpmatch()
You have <term.h>
You have ncurses. Using <ncurses/curses.h>.
You have termcap
You need -lcrypt
You have <libintl.h> and gettext()
You have __progname
You have <pty.h> and openpty()
You have wide character support
You have SYS_pivot_root
You have a tm_gmtoff field in struct tm
Your rpcgen seems to work
You have zlib
You have blkid
Doesn't the above say i have libblkid ? I checked my /mnt/lfs/tools/lib and no blkid* or libblkid* exists.. Here the other commands i entered, following the LFS book:

Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# make -C lib
make: Entering directory `/mnt/lfs/sources/util-linux-2.12q/lib'
make: Nothing to be done for `all'.
make: Leaving directory `/mnt/lfs/sources/util-linux-2.12q/lib'
Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# make -C mount mount umount
make: Entering directory `/mnt/lfs/sources/util-linux-2.12q/mount'
make: `mount' is up to date.
make: `umount' is up to date.
make: Leaving directory `/mnt/lfs/sources/util-linux-2.12q/mount'
Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# make -C text-utils more
make: Entering directory `/mnt/lfs/sources/util-linux-2.12q/text-utils'
make: `more' is up to date.
make: Leaving directory `/mnt/lfs/sources/util-linux-2.12q/text-utils'
Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# cp mount/{,u}mount text-utils/more /tools/bin
i also tried simply running the mount command within the chroot environment:

Code:
I have no name!:/sources/util-linux-2.12q/mount# mount
mount: error while loading shared libraries: libblkid.so.1: cannot open shared object file: No such file or directory
Here's the ldd command again:

Code:
I have no name!:/# ldd /tools/bin/mount
        linux-gate.so.1 =>  (0xffffe000)
        libblkid.so.1 => not found
        libuuid.so.1 => not found
        libc.so.6 => /tools/lib/libc.so.6 (0x40018000)
        /tools/lib/ld-linux.so.2 (0x40000000)
Code:
root@darkstar:/mnt/lfs/sources/util-linux-2.12q# ldd /tools/bin/mount
        linux-gate.so.1 =>  (0xffffe000)
        libblkid.so.1 => not found
        libuuid.so.1 => not found
        libc.so.6 => /tools/lib/libc.so.6 (0x40018000)
        /tools/lib/ld-linux.so.2 (0x40000000)
please help me i'm stuck!

Last edited by gatblast45; 05-04-2005 at 10:34 AM.
 
Old 05-05-2005, 10:32 AM   #14
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
do:
Code:
cd /mnt/lfs/sources/util-linux-2.12q
make distclean
and then recompile util-linux. What is strange is that libblkid is installed at e2fsprog step and you install it in chapter 6... So it should not be installed when you do you ./configure and hence not detected 'cause you have to do the sed hack to prevent from searching elsewhere then /tools/include directory.
so if it stil does not work do:
Code:
cd /tools/include
rm -fr blkid
so blkid should not be detected anymore
 
Old 05-08-2005, 06:02 PM   #15
gatblast45
Member
 
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Angry

Sorry i havent responded lately my windows xp commited suicide on me a few days ago so i couldn't access the internet until it was fixed. i tried the commands you gave me and still.. same results. i'm thinking i'll just download another distribution besides slackware, start over and pray it works. thanks for the help i really appreciated it! Any recommended distribution to build LFS with might help prevent me posting up all these problems!...

thanks. -mike
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS 6 Chapter 6.3 chroot error gatblast45 Linux From Scratch 8 01-01-2008 03:12 AM
Error in Glibc Chapter-6 LFS ver-6..Help pls?? chakkaradeepcc Linux From Scratch 10 05-23-2005 12:33 PM
ERROR IN??: lfs 6.0 chapter 5.35. Udev-030 jobesd Linux From Scratch 4 01-31-2005 05:05 PM
now getting error in coreutils test(chapter 6-lfs-5.1.1) linuxbh Linux From Scratch 2 09-16-2004 02:45 AM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM


All times are GMT -5. The time now is 12:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration