LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 10-28-2012, 07:24 AM   #1
Registered: Aug 2012
Posts: 142

Rep: Reputation: Disabled
Unhappy error in Udev compiling

in section 6.61 of refrence book LFS 7.2, I encounter with below error.
I dont know why my ld dosen't find blkid and kmod libraries.
this is the result:
root:/sources/systemd-188# make -f udev-lfs-188/Makefile.lfs
cp udev-lfs-188/cfg.h .
CC src/shared/log.c
CC src/shared/label.c
CC src/shared/mkdir.c
CC src/shared/cgroup-util.c
CC src/shared/strv.c
CC src/shared/path-util.c
CC src/shared/conf-files.c
CC src/shared/hashmap.c
CC src/shared/set.c
CC src/shared/exit-status.c
CC src/shared/util.c
src/shared/util.c: In function 'rm_rf_children':
src/shared/util.c:3380:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/shared/util.c: In function 'rm_rf_internal':
src/shared/util.c:3414:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/shared/util.c:3434:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/shared/util.c: In function 'in_initrd':
src/shared/util.c:5877:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
CC src/shared/dev-setup.c
CC src/login/sd-login.c
CC src/libsystemd-daemon/sd-daemon.c
CC src/libudev/libudev-device-private.c
CC src/libudev/libudev-device.c
CC src/libudev/libudev-enumerate.c
CC src/libudev/libudev-list.c
CC src/libudev/libudev-monitor.c
CC src/libudev/libudev-queue-private.c
CC src/libudev/libudev-queue.c
CC src/libudev/libudev-util.c
CC src/libudev/libudev.c
CC src/udev/udev-ctrl.c
CC src/udev/udev-rules.c
CC src/udev/udev-watch.c
CC src/udev/udev-event.c
CC src/udev/udev-node.c
CC src/udev/udev-builtin.c
CC src/udev/udev-builtin-blkid.c
CC src/udev/udev-builtin-firmware.c
CC src/udev/udev-builtin-path_id.c
CC src/udev/udev-builtin-hwdb.c
CC src/udev/udev-builtin-kmod.c
CC src/udev/udev-builtin-uaccess.c
CC src/udev/udev-builtin-usb_id.c
CC src/udev/udev-builtin-input_id.c
AR build/udev-local.a
LINK build/
ln -sfn build/
ln -sfn build/
CC src/udev/udevd.c
LINK build/udevd
/tools/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lblkid
/tools/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkmod
collect2: error: ld returned 1 exit status
make: *** [build/udevd] Error 1
Old 10-28-2012, 07:29 AM   #2
Senior Member
Registered: Jan 2011
Distribution: /LFS/Centos6.3/Debain
Posts: 1,885
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259

Did you download systemd-188
Extract it cd into it
then run commands in book
I read that a few times till I got it
Old 10-28-2012, 07:32 AM   #3
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
yes, I did all of thing that you say. I first extract systemd then cd to extracted directory and run commands.
Old 10-30-2012, 03:19 PM   #4
Registered: Apr 2011
Location: Gatineau, Quebec
Distribution: OpenBSD
Posts: 80

Rep: Reputation: 5
Maybe there is a problem with kmod and Util-linux. libkmod is in kmod 9 and libblkid in Util-linux.


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
error in udev in chapter 6.60 ankit0301 Linux From Scratch 3 04-23-2012 05:15 AM
cross compiling udev for ARM valdez Linux - Software 3 05-15-2011 01:29 PM
udev error PLEASE HELP sykes89 Linux - Laptop and Netbook 4 11-29-2006 04:31 PM
all the newer kernels im compiling pause on udev darksmiley Linux - General 6 12-28-2005 09:05 AM
udev boot error alma Linux - Newbie 3 11-27-2005 10:51 AM

All times are GMT -5. The time now is 08:33 AM.

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