LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6 Chapter 6.8 mount error (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-chapter-6-8-mount-error-318197/)

gatblast45 04-28-2005 03:56 PM

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)

Oliv' 04-29-2005 07:11 AM

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

gatblast45 04-29-2005 02:09 PM

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 ?

TruckStuff 04-29-2005 08:40 PM

Try the following:
Code:

# ldd `which mount`
(those are backticks, not single quotes, btw)

gatblast45 04-30-2005 11:18 AM

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 !

Oliv' 05-01-2005 07:37 AM

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

gatblast45 05-01-2005 11:49 PM

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.

Oliv' 05-02-2005 06:47 AM

Well that's:
Code:

ldd /tools/bin/mount

gatblast45 05-02-2005 04:42 PM

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)


?!...

Oliv' 05-03-2005 07:55 AM

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:confused:
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...

gatblast45 05-03-2005 10:09 AM

so how do i get the mount command from util-linux working?

Oliv' 05-04-2005 07:12 AM

Well recompile util-linux package, check that mount command is correctly linked (with ldd command) and then if that's OK install it.

gatblast45 05-04-2005 10:33 AM

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!

Oliv' 05-05-2005 10:32 AM

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 :mad:

gatblast45 05-08-2005 06:02 PM

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


All times are GMT -5. The time now is 02:10 AM.