-   Linux From Scratch (
-   -   error in udev in chapter 6.60 (

ankit0301 04-21-2012 02:12 PM

error in udev in chapter 6.60
while issuing the make command in udev chpater 6.60 for lfs 7.1 the following error results.please provide help

root:/sources/udev-181# make
GEN test/sys/kernel/uevent_seqnum
make --no-print-directory all-recursive
Making all in .
CC src/libudev.lo
CC src/libudev-list.lo
CC src/libudev-util.lo
CC src/libudev-device.lo
CC src/libudev-enumerate.lo
CC src/libudev-monitor.lo
src/libudev-monitor.c: In function 'udev_monitor_receive_device':
src/libudev-monitor.c:654:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
CC src/libudev-queue.lo
CCLD src/
CC src/libudev-util-private.lo
CC src/libudev-device-private.lo
CC src/libudev-queue-private.lo
CCLD src/
CC src/src_udevadm-udev-event.o
CC src/src_udevadm-udev-watch.o
CC src/src_udevadm-udev-node.o
CC src/src_udevadm-udev-rules.o
CC src/src_udevadm-udev-ctrl.o
CC src/src_udevadm-udev-builtin.o
CC src/src_udevadm-udev-builtin-blkid.o
CC src/src_udevadm-udev-builtin-firmware.o
CC src/src_udevadm-udev-builtin-hwdb.o
CC src/src_udevadm-udev-builtin-input_id.o
CC src/src_udevadm-udev-builtin-kmod.o
src/udev-builtin-kmod.c:30:21: fatal error: libkmod.h: No such file or directory
compilation terminated.
make[2]: *** [src/src_udevadm-udev-builtin-kmod.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Thank you

Erfankam 04-22-2012 07:11 AM

Try install or put libudev and libudev-dev before to have include file in your include path.

stoat 04-22-2012 08:06 AM

And if nothing else works, I would delete the udev build directory and do it again. Untar both tarballs again as described. Then copy and paste the commands; especially that large block of commands (copy and paste it all-at-once). That particular page in the book is sort of a busy one; easy to botch. I just finished a new 7.1 system and, unlike the 7.0 book which had a few errata, this one was smooth sailing straight through including that udev page you're stuck on. I had to do nothing special to get past that.

Erfankam 04-23-2012 05:15 AM

I suggest use "ldconfig" command after installation complete.
This command updates library cache to have proper file in your lib directory.

All times are GMT -5. The time now is 12:09 PM.