本文介绍了OpenWRT - 重新编译时缺少依赖关系的包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我从头开始编译一个OpenWRT图像,包括我的包,通常情况下,如果有人可以帮助我,我真的很感激,一切正常



否则,当我尝试重新编译时,我会继续缺少依赖关系错误。



唯一的解决方案已经发现哪些工作是将我的包装放在一个完全干净的OpenWRT环境中,并重新编译一切。这是没有用的,因为需要一个小时才能编译整个OpenWRT镜像。



这是我的错误:

  michael @ michael-VirtualBox:〜/ Documents / openwrt / openwrt $ make package / amldmonitor / compile V = 99 
^ Tmake [1]:输入目录`/ home / michael / Documents / openwrt / openwrt'
make [2]:输入目录`/ home / michael / Documents / openwrt / openwrt / package / kernel / linux'
/ home / michael / Documents / openwrt / openwrt / target / linux / imx23 / modules.mk:65:warning:覆盖目标命令`/home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp/.kmod -usb-mxs-phy_installed'
modules / usb.mk:1079:warning:忽略目标的旧命令`/home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root- x86 / stamp / .kmod-usb-mxs-phy_installed'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65:warning:覆盖目标命令`/ hom e / michael / Documents / openwrt / openwrt / bin / x86 / packages / kmod-usb-mxs-phy_3.8.13-1_x86.ipk'
modules / usb.mk:1079:warning:忽略目标的旧命令` /home/michael/Documents/openwrt/openwrt/bin/x86/packages/kmod-usb-mxs-phy_3.8.13-1_x86.ipk'
/ home / michael / Documents / openwrt / openwrt / target / linux / imx23 / modules.mk:65:warning:覆盖目标命令`kmod-usb-mxs-phy-clean'
modules / usb.mk:1079:warning:忽略目标目标的旧命令`kmod-usb-mxs -phy-clean'
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokernel>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
警告:跳过kmod-ata-core - 包未选择
警告:跳过kmod-ata-ahci - 未选择包
警告:跳过kmod-ata-piix - 未选择包
警告:跳过kmod-block2mtd - 未选择包
警告:忽略kmod-md-mod - 未选择的包
警告:跳过kmod-scsi-core - 未选择包
警告:跳过kmod-scsi-cdrom - 未选择包
警告:忽略kmod-crypto-core - 未选择包
警告:忽略kmod-crypto-hash - 未选择包
警告:忽略kmod-crypto-aes - 未选择包
警告:跳过kmod-crypto-crc32c - 未选择包
警告:跳过kmod-fs-ext4 - 未选择包
警告:跳过kmod-fs-isofs - 未选择包
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target-i386_i 486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-hwmon-core>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
警告:跳过kmod-i2c-core - 未选择包
警告:跳过kmod-i2c-algo-bit - 未选择包
警告:跳过kmod-hid - 未选择包
警告:跳过kmod-input-core - 未选择包
警告:跳过kmod-acpi-button - 未选择包
警告:跳过kmod-ledtrig-netdev - 未选择包
警告:跳过kmod-ledtrig-default-on - 未选择
警告:跳过kmod-ledtrig-timer - 未选择包
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default .install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-lib-crc-ccitt>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
警告:跳过kmod-lib-crc16 - 未选择包
警告:跳过kmod-lib-zlib - 未选择包
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]。那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回声kmod-libphy>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回声kmod-natsemi>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-sis900>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回波kmod-via-rhine>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回波kmod-via-velocity>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回声kmod-8139too>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-r8169>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回波kmod-ne2k-pci>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回波kmod-e100>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-e1000>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回波kmod-3c59x>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-pcnet32>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-tg3>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ipt-core>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ipt-conntrack>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ipt-nat>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ipt-nathelper>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ip6tables>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
警告:跳过kmod-bridge - 未选择包
警告:跳过kmod-llc - 未选择包
警告:跳过kmod-stp - 未选择包
警告:跳过kmod-8021q - 未选择包
如果[-f / home / michael /Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ipv6>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-tun>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回声kmod-slhc>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ppp>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-pppox>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接;回声kmod-pppoe>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
警告:跳过kmod-nls-base - 包未选择
警告:跳过kmod-serial-8250 - 未选择包
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]。那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-pps>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / linux.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / linux.default.install.clean;网络连接; echokmod-ptp>>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
警告:跳过kmod-random-core - 未选择包
警告:跳过kmod-thermal - 未选择包
警告:跳过kmod-pcmcia-rsrc - 未选择包
警告:跳过kmod-sound-seq - 未选择包
警告:跳过kmod-usb-core - 未选择包
警告:跳过kmod-usb-uhci - 未选择包
警告:跳过kmod-usb-ohci - 未选择包
警告:跳过kmod-usb2 - 未选择包
警告:跳过kmod-usb2-pci - 未选择包
警告:跳过kmod-usb-storage - 未选择包
警告:忽略kmod-fb - 未选择的包
警告:跳过kmod-fb-cfb-fillrect - 未选择包
警告:跳过kmod-fb-cfb-copyarea - 未选择包
警告:跳过kmod-fb-cfb-imgblt - 未选择包
警告:跳过kmod-pcmcia-au1000 - 未选择包
警告:跳过kmod-rtc-stmp3xxx - 未选择包
警告:跳过kmod-usb-chipidea-imx - 未选择包
警告:跳过kmod-ata-rbppc-cf - 未选择的包
警告:跳过kmod-ata-rb532-cf - 未选择的包
make [2]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / kernel / linux'
make [2]:输入目录`/ home / michael / Documents / openwrt / openwrt / package / libs / toolchain'
if [ f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / toolchain.default.install.clean;网络连接; echolibc>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install
如果[-f / home / michael / Documents / openwrt / openwrt / staging_dir / target -i386_i486_uClibc-0.9.33.2 / pkginfo / toolchain.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / toolchain.default.install.clean;网络连接; echolibgcc>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install
警告:跳过libssp - 未选择包
警告:跳过libstdcpp - - 未选择包
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / toolchain.default.install.clean;网络连接; echolibpthread>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install
警告:跳过libthread-db - 未选择包
警告:跳过librt - 未选择的包
警告:跳过libgfortran - 未选择包
警告:跳过ldd - 未选择包
警告:跳过ldconfig - 包未选择
make [2]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / libs / toolchain'
make [2]:输入目录`/ home / michael / Documents / openwrt / openwrt / package / libs / ocf-crypto-headers'
make [2]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / libs / ocf-crypto-headers'
make [2]目录`/ home / michael / Documents / openwrt / openwrt / package / libs / zlib'
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/ zlib.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/zlib.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / zlib.default.install.clean;网络连接; echozlib>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/zlib.default.install
make [2]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / libs / zlib'
make [2]:输入目录`/ home / michael / Documents / openwrt / openwrt / package / libs / openssl'
如果[-f / home / michael / /openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / openssl.default.install.clean;网络连接;回声libopenssl>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install
警告:跳过openssl-util - 包未选择
make [2 ]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / libs / openssl'
make [2]:输入目录`/ home / michael / Documents / openwrt / openwrt / package / amld'
如果[-f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install.clean];那么rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9 .33.2 /的pkginfo / amld.default.install.clean;网络连接; echoamld>> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install
make [2]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / amld'
make [2]:输入目录`/ home / michael / Documents / openwrt / openwrt / package / amldmonitor'
mkdir -p / home / michael / Documents / openwrt / openwrt / bin / x86 / packages /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ipkg-x86/amldmonitor/CONTROL / home / michael / Documents / openwrt / openwrt / staging_dir / target- i386_i486_uClibc-0.9.33.2 / pkginfo
install -d -m0755 /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ipkg-x86/amldmonitor/bin
install -m0755 /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/amldmonitor/home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ ipkg-x86 / amldmonitor / bin /
find / home / micha el / Documents / openwrt / openwrt / build_dir / target-i386_i486_uClibc-0.9.33.2 / amldmonitor / ipkg-x86 / amldmonitor -name'CVS'-o -name'.svn'-o -name'#*'-o - 名称'*〜'| xargs -r rm -rf
包amldmonitor缺少以下库的依赖:
libc.so.6
make [2]:*** [/ home / michael / Documents / openwrt /openwrt/bin/x86/packages/amldmonitor_1_x86.ipk]错误1
make [2]:离开目录`/ home / michael / Documents / openwrt / openwrt / package / amldmonitor'
make [1] :*** [package / amldmonitor / compile]错误2
make [1]:离开目录`/ home / michael / Documents / openwrt / openwrt'
make:*** [package / amldmonitor /编译]错误2

我的包Makefile:

 包含$(TOPDIR)/rules.mk 

PKG_NAME:= amldmonitor
PKG_RELEASE:= 1

include $(INCLUDE_DIR)/package.mk

定义包/ amldmonitor
TITLE:= amldmontior
SECTION:= utils
类别:=实用程序
DEPENDS: = + amld + libc + libpthread
endef

CONFIGURE_VARS + = \
CC =$(TOOLCHAIN_DIR)/ bin / $(TARGET_CC)

定义构建/准备
mkdir -p $(PKG_BUILD_DIR)
$(CP)./files/* $(PKG_BUILD_DIR)/
endef

定义构建/编译
$(MAKE)-C $ (PKG_BUILD_DIR)$(TARGET_CONFIGURE_OPTS)
endef

定义包/ amldmonitor / install
$(INSTALL_DIR)$(1)/ bin
$(INSTALL_BIN)$( PKG_BUILD_DIR)/ amldmonitor $(1)/ bin /
endef

$(eval $(call BuildPackage,amldmonitor))

这是我的项目源文件的Makefile:

  LDFLAGS = -pthread 
CFLAGS = -g -Wall
全部:amldmonitor

amldmonitor:amldmonitor.o
$(CC)amldmonitor.o -o amldmonitor $(LDFLAGS)

amldmonitor.o:amldmonitor.c
$(CC)$(CFLAGS)-c amldmonitor.c

clean:
rm * .o amldmonitor


解决方案

以下这个线程,一个用户在我的编译输出中注意到它提到:

  make [3]:全部无法完成。 

评论:

检查我的包源文件夹后,确实包含.o文件和一个可执行文件。



删除它解决了我遇到的问题!


If anybody can help me with this I would really appreciate it because it's driving me insane.

When I compile an OpenWRT image from scratch including my packages, usually, everything works fine.

Otherwise, when I then try to recompile, I keep getting missing dependency errors.

The only solution I have found which works is to place my package into a completely clean OpenWRT environment and compile everything again. This is not helpful considering it takes over an hour to compile the entire OpenWRT image.

Here is my error:

michael@michael-VirtualBox:~/Documents/openwrt/openwrt$ make package/amldmonitor/compile V=99
^Tmake[1]: Entering directory `/home/michael/Documents/openwrt/openwrt'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/kernel/linux'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65: warning: overriding commands for target `/home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp/.kmod-usb-mxs-phy_installed'
modules/usb.mk:1079: warning: ignoring old commands for target `/home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp/.kmod-usb-mxs-phy_installed'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65: warning: overriding commands for target `/home/michael/Documents/openwrt/openwrt/bin/x86/packages/kmod-usb-mxs-phy_3.8.13-1_x86.ipk'
modules/usb.mk:1079: warning: ignoring old commands for target `/home/michael/Documents/openwrt/openwrt/bin/x86/packages/kmod-usb-mxs-phy_3.8.13-1_x86.ipk'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65: warning: overriding commands for target `kmod-usb-mxs-phy-clean'
modules/usb.mk:1079: warning: ignoring old commands for target `kmod-usb-mxs-phy-clean'
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kernel" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-ata-core -- package not selected
WARNING: skipping kmod-ata-ahci -- package not selected
WARNING: skipping kmod-ata-piix -- package not selected
WARNING: skipping kmod-block2mtd -- package not selected
WARNING: skipping kmod-md-mod -- package not selected
WARNING: skipping kmod-scsi-core -- package not selected
WARNING: skipping kmod-scsi-cdrom -- package not selected
WARNING: skipping kmod-crypto-core -- package not selected
WARNING: skipping kmod-crypto-hash -- package not selected
WARNING: skipping kmod-crypto-aes -- package not selected
WARNING: skipping kmod-crypto-crc32c -- package not selected
WARNING: skipping kmod-fs-ext4 -- package not selected
WARNING: skipping kmod-fs-isofs -- package not selected
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-hwmon-core" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-i2c-core -- package not selected
WARNING: skipping kmod-i2c-algo-bit -- package not selected
WARNING: skipping kmod-hid -- package not selected
WARNING: skipping kmod-input-core -- package not selected
WARNING: skipping kmod-acpi-button -- package not selected
WARNING: skipping kmod-ledtrig-netdev -- package not selected
WARNING: skipping kmod-ledtrig-default-on -- package not selected
WARNING: skipping kmod-ledtrig-timer -- package not selected
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-lib-crc-ccitt" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-lib-crc16 -- package not selected
WARNING: skipping kmod-lib-zlib -- package not selected
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-libphy" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-natsemi" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-sis900" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-via-rhine" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-via-velocity" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-8139too" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-r8169" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ne2k-pci" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-e100" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-e1000" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-3c59x" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-pcnet32" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-tg3" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ipt-core" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ipt-conntrack" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ipt-nat" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ipt-nathelper" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ip6tables" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-bridge -- package not selected
WARNING: skipping kmod-llc -- package not selected
WARNING: skipping kmod-stp -- package not selected
WARNING: skipping kmod-8021q -- package not selected
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ipv6" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-tun" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-slhc" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ppp" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-pppox" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-pppoe" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-nls-base -- package not selected
WARNING: skipping kmod-serial-8250 -- package not selected
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-pps" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kmod-ptp" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-random-core -- package not selected
WARNING: skipping kmod-thermal -- package not selected
WARNING: skipping kmod-pcmcia-rsrc -- package not selected
WARNING: skipping kmod-sound-seq -- package not selected
WARNING: skipping kmod-usb-core -- package not selected
WARNING: skipping kmod-usb-uhci -- package not selected
WARNING: skipping kmod-usb-ohci -- package not selected
WARNING: skipping kmod-usb2 -- package not selected
WARNING: skipping kmod-usb2-pci -- package not selected
WARNING: skipping kmod-usb-storage -- package not selected
WARNING: skipping kmod-fb -- package not selected
WARNING: skipping kmod-fb-cfb-fillrect -- package not selected
WARNING: skipping kmod-fb-cfb-copyarea -- package not selected
WARNING: skipping kmod-fb-cfb-imgblt -- package not selected
WARNING: skipping kmod-pcmcia-au1000 -- package not selected
WARNING: skipping kmod-rtc-stmp3xxx -- package not selected
WARNING: skipping kmod-usb-chipidea-imx -- package not selected
WARNING: skipping kmod-ata-rbppc-cf -- package not selected
WARNING: skipping kmod-ata-rb532-cf -- package not selected
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/kernel/linux'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/libs/toolchain'
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install
WARNING: skipping libssp -- package not selected
WARNING: skipping libstdcpp -- package not selected
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/toolchain.default.install
WARNING: skipping libthread-db -- package not selected
WARNING: skipping librt -- package not selected
WARNING: skipping libgfortran -- package not selected
WARNING: skipping ldd -- package not selected
WARNING: skipping ldconfig -- package not selected
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/libs/toolchain'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/libs/ocf-crypto-headers'
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/libs/ocf-crypto-headers'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/libs/zlib'
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/zlib.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/zlib.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/zlib.default.install.clean; fi; echo "zlib" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/zlib.default.install
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/libs/zlib'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/libs/openssl'
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean; fi; echo "libopenssl" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/openssl.default.install
WARNING: skipping openssl-util -- package not selected
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/libs/openssl'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/amld'
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install.clean; fi; echo "amld" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/amld.default.install
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/amld'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/amldmonitor'
mkdir -p /home/michael/Documents/openwrt/openwrt/bin/x86/packages /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ipkg-x86/amldmonitor/CONTROL /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo
install -d -m0755 /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ipkg-x86/amldmonitor/bin
install -m0755 /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/amldmonitor /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ipkg-x86/amldmonitor/bin/
find /home/michael/Documents/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/amldmonitor/ipkg-x86/amldmonitor -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package amldmonitor is missing dependencies for the following libraries:
libc.so.6
make[2]: *** [/home/michael/Documents/openwrt/openwrt/bin/x86/packages/amldmonitor_1_x86.ipk] Error 1
make[2]: Leaving directory `/home/michael/Documents/openwrt/openwrt/package/amldmonitor'
make[1]: *** [package/amldmonitor/compile] Error 2
make[1]: Leaving directory `/home/michael/Documents/openwrt/openwrt'
make: *** [package/amldmonitor/compile] Error 2

And my package Makefile:

include $(TOPDIR)/rules.mk

PKG_NAME:=amldmonitor
PKG_RELEASE:=1

include $(INCLUDE_DIR)/package.mk

define Package/amldmonitor
 TITLE:=amldmontior
 SECTION:=utils
 CATEGORY:=Utilities
 DEPENDS:=+amld +libc +libpthread
endef

CONFIGURE_VARS+= \
    CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)"

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./files/* $(PKG_BUILD_DIR)/
endef

define Build/Compile
    $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
endef

define Package/amldmonitor/install
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/amldmonitor $(1)/bin/
endef

$(eval $(call BuildPackage,amldmonitor))

Here is the Makefile for my projects source files:

LDFLAGS=-pthread
CFLAGS=-g -Wall
all: amldmonitor

amldmonitor:amldmonitor.o
    $(CC) amldmonitor.o -o amldmonitor $(LDFLAGS)

amldmonitor.o: amldmonitor.c
    $(CC) $(CFLAGS) -c amldmonitor.c

clean:
    rm *.o amldmonitor
解决方案

Following this thread, a user noticed in my compilation output that it mentioned:

make[3]: Nothing to be done for `all'.

Comment:

After inspecting my package source folder, it did indeed contain .o files and an executable.

Removing this solved the issues I was having!

这篇关于OpenWRT - 重新编译时缺少依赖关系的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-14 12:30