LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   error in Udev compiling (http://www.linuxquestions.org/questions/linux-from-scratch-13/error-in-udev-compiling-4175434467/)

k84834 10-28-2012 07:24 AM

error in Udev compiling
 
Hi
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:
Code:

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/libudev.so.1.0.2
ln -sfn libudev.so.1.0.2 build/libudev.so.1
ln -sfn libudev.so.1.0.2 build/libudev.so
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
root:/sources/systemd-188#


spiky0011 10-28-2012 07:29 AM

Hi

Did you download systemd-188
http://www.freedesktop.org/software/...emd-188.tar.xz
Extract it cd into it
then run commands in book
I read that a few times till I got it

k84834 10-28-2012 07:32 AM

yes, I did all of thing that you say. I first extract systemd then cd to extracted directory and run commands.

mariostg 10-30-2012 03:19 PM

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


All times are GMT -5. The time now is 07:39 AM.