1
aa65535 2015-01-29 16:35:31 +08:00
这种错误一般是 PKG_BUILD_DIR 路径没写对,检查一下对应的 tar.gz 文件里的目录名称。
目录 /home/admin/openwrt/build_dir/target-mips_34kc_eglibc-2.19/deadwood-3.2.06 是对的么? 另外,问这种最好把 Makefile 贴出来,不然我只能猜了。 |
3
LazyZhu 2015-01-29 17:48:48 +08:00
|
4
debiansid OP @LazyZhu @aa65535
make -C /home/admin/openwrt/build_dir/target-mips_34kc_eglibc-2.19/deadwood-3.2.06/src CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16" FLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16" CC="mips-openwrt-linux-gnu-gcc" HOSTCC="gcc" V= make[4]: Entering directory `/home/admin/openwrt/build_dir/target-mips_34kc_eglibc-2.19/deadwood-3.2.06/src' mips-openwrt-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wall -c -o DwHash.o DwHash.c DwHash.c: In function 'dwh_hash_compress': DwHash.c:155:24: error: 'MUL_CONSTANT' undeclared (first use in this function) out *= MUL_CONSTANT; ^ DwHash.c:155:24: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [DwHash.o] Error 1 make[4]: Leaving directory `/home/admin/openwrt/build_dir/target-mips_34kc_eglibc-2.19/deadwood-3.2.06/src' make[3]: *** [/home/admin/openwrt/build_dir/target-mips_34kc_eglibc-2.19/deadwood-3.2.06/.built] Error 2 make[3]: Leaving directory `/home/admin/openwrt/package/openwrt-deadwood' make[2]: *** [package/openwrt-deadwood/compile] Error 2 make[2]: Leaving directory `/home/admin/openwrt' make[1]: *** [/home/admin/openwrt/staging_dir/target-mips_34kc_eglibc-2.19/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/admin/openwrt' make: *** [world] Error 2 编译不是每次都可以成功。指点下? |
5
debiansid OP @aa65535 @LazyZhu
我的Makefile # # Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=deadwood PKG_VERSION:=3.2.06 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://maradns.samiam.org/deadwood/stable/$(PKG_VERSION) #PKG_MD5SUM:=1d221438fb4d9317263555262b9c652c include $(INCLUDE_DIR)/package.mk define Package/deadwood SECTION:=net CATEGORY:=Network DEPENDS:=+libpthread TITLE:=Small and secure DNS Server URL:=http://www.maradns.org/ SUBMENU:=IP Addresses and Names endef define Package/deadwood/description maradns is a DNS server written with security, simplicity, and performance in mind. endef define Package/deadwood/conffiles /etc/maradns/dwood3rc endef #define Build/Configure # it's not GNU autoconf stuff # (cd $(PKG_BUILD_DIR)/src; \ #$(TARGET_CONFIGURE_OPTS) \ # ./configure \ ); #endef # cd $(PKG_BUILD_DIR)/src; \ define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src \ CFLAGS="$(TARGET_CFLAGS)" \ FLAGS="$(TARGET_CFLAGS)" \ CC="$(TARGET_CC)" \ HOSTCC="$(HOSTCC)" \ V= #mkdir -p $(PKG_INSTALL_DIR)/usr/{bin,sbin} #mkdir -p $(PKG_INSTALL_DIR)/usr/man/man{1,5,8} $(MAKE) -C $(PKG_BUILD_DIR)/tools \ CFLAGS="$(TARGET_CFLAGS)" \ FLAGS="$(TARGET_CFLAGS)" \ CC="$(TARGET_CC)" \ #PREFIX="$(PKG_INSTALL_DIR)/usr" \ #RPM_BUILD_ROOT="$(PKG_INSTALL_DIR)" \ V= #install endef define Package/deadwood/install $(INSTALL_DIR) $(1)/etc/maradns $(INSTALL_DATA) ./files/dwood3rc $(1)/etc/maradns/dwood3rc $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/deadwood.init $(1)/etc/init.d/deadwood $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Deadwood $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/duende $(1)/usr/bin/ endef $(eval $(call BuildPackage,deadwood)) |
6
LazyZhu 2015-01-29 18:28:02 +08:00
|
9
debiansid OP @LazyZhu 感谢… 还有我想在4300跑powerdns 的recursor 作者说uclibc 不支持*context 只能换eglibc 才能编译。现在主流都是uclibc 换了软件都要自己编译,有啥方案不?
|
10
LazyZhu 2015-01-29 19:43:28 +08:00
不知道powerdns要啥context, 搜索"uClibc context patch", openwrt 工具链自己打补丁哦
|
11
debiansid OP @LazyZhu root@YesRouter:/etc/maradns# *** Error in `Deadwood': double free or corruption (out): 0x004cf1f0 ***
eglibc 下不稳定貌似。你的ublibc下面正常不 |
12
debiansid OP @LazyZhu swapcontext;补丁是这个么?http://lists.uclibc.org/pipermail/uclibc/2013-January/047403.html
|
13
debiansid OP @LazyZhu http://git.uclibc.org/uClibc/commit/?id=a8dc90eaaa5e6474beac828558d969b1aafee4af
我找到了这个包,不知道怎么在buildroot里面替换原来的uclibc |
14
debiansid OP 替换bz2,编译失败,现在想打补丁,不知道应该在哪个阶段打
|