具体错误:
/usr/bin/ld: udev/udevd.o: in function `static_dev_create_from_modules': /home/quantum6/udev-167/udev/udevd.c:829: undefined reference to `makedev' /usr/bin/ld: udev/udevd.o: in function `is_devpath_busy': /home/quantum6/udev-167/udev/udevd.c:512: undefined reference to `major' /usr/bin/ld: /home/quantum6/udev-167/udev/udevd.c:489: undefined reference to `major'
解决办法
在出错的文件中,加入以下代码:
#include <sys/types.h> #include <sys/sysmacros.h>