找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 10262|回复: 9

编译出错,patch打不上

[复制链接]
发表于 2013-3-23 18:21 | 显示全部楼层 |阅读模式
编译gargoyle出错
同步源码,什么也没改,编译ar71xx.usb_large
一开始提示obfsproxy-0.1.4.tar.gz下不下来,我手动下载放到目录里再编译,提示
  1. make[4]: Entering directory `/home/merlin/Gargoyle/gargoyle/ar71xx-src/package/obfsproxy'
  2. . /home/merlin/Gargoyle/gargoyle/ar71xx-src/include/shell.sh; gzip -dc /home/merlin/Gargoyle/gargoyle/ar71xx-src/dl/obfsproxy-0.1.4.tar.gz | /bin/tar -C /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.. -xf -

  3. Applying ./patches/001-no-werror.patch using plaintext:
  4. can't find file to patch at input line 3
  5. Perhaps you used the wrong -p or --strip option?
  6. The text leading up to this was:
  7. --------------------------
  8. |--- a/Makefile.am
  9. |+++ b/Makefile.am
  10. --------------------------
  11. No file to patch.  Skipping patch.
  12. 1 out of 1 hunk ignored
  13. Patch failed!  Please fix ./patches/001-no-werror.patch!
  14. make[4]: *** [/home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.prepared_f1210c01fcc031253fed1a4eb4cfe0f8] Error 1
  15. make[4]: Leaving directory `/home/merlin/Gargoyle/gargoyle/ar71xx-src/package/obfsproxy'
  16. make[3]: *** [package/obfsproxy/compile] Error 2
复制代码
大家说怎么解决啊

发表于 2013-3-23 18:49 | 显示全部楼层
把001-no-werror.patch删掉试试
发表于 2013-3-23 18:50 | 显示全部楼层
把001-no-werror.patch删掉试试
 楼主| 发表于 2013-3-23 19:12 | 显示全部楼层
haxc 发表于 2013-3-23 18:50
把001-no-werror.patch删掉试试

首先,谢谢您的回复,openwrt目录里obfsproxy的patch一共有3个,我把001删了,就002报错,和001一样,这次把3个全删了,正在编译
 楼主| 发表于 2013-3-23 19:16 | 显示全部楼层
NeilYYM 发表于 2013-3-23 19:12
首先,谢谢您的回复,openwrt目录里obfsproxy的patch一共有3个,我把001删了,就002报错,和001一样,这次 ...
  1. make[4]: Entering directory `/home/merlin/Gargoyle/gargoyle/ar71xx-src/package/obfsproxy'
  2. . /home/merlin/Gargoyle/gargoyle/ar71xx-src/include/shell.sh; gzip -dc /home/merlin/Gargoyle/gargoyle/ar71xx-src/dl/obfsproxy-0.1.4.tar.gz | /bin/tar -C /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.. -xf -
  3. touch /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.prepared_5b6a091f4648fad18ac2a092951bff7a
  4. (cd /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/merlin/Gargoyle/gargoyle/ar71xx-src/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/autom4te AUTOCONF=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/autoconf AUTOMAKE=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/automake ACLOCAL=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/aclocal AUTOHEADER=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/libtoolize LIBTOOL=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/libtool M4=/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/m4 AUTOPOINT=true /home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/bin/autoreconf -v -f -i -s -B /home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/host/share/aclocal -I /home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/host/share/aclocal -I /home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/share/aclocal -I m4 -I . . || true; fi; );
  5. (cd /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/./; if [ -x ./configure ]; then /usr/bin/find /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/ -name config.guess | xargs -r -n1 cp /home/merlin/Gargoyle/gargoyle/ar71xx-src/scripts/config.guess; /usr/bin/find /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/ -name config.sub | xargs -r -n1 cp /home/merlin/Gargoyle/gargoyle/ar71xx-src/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CPPFLAGS="-I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib "  CROSS_COMPILE="yes"  ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=i686-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   --with-libevent-dir="/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr" --with-ssl-dir="/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr"  ; fi; )
  6. rm -f /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.configured_*
  7. touch /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.configured_
  8. CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/merlin/Gargoyle/gargoyle/ar71xx-src/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" ;
  9. make[5]: Entering directory `/home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy'
  10. make[5]: *** No targets specified and no makefile found.  Stop.
  11. make[5]: Leaving directory `/home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy'
  12. make[4]: *** [/home/merlin/Gargoyle/gargoyle/ar71xx-src/build_dir/target-mips_r2_uClibc-0.9.33.2/obfsproxy/.built] Error 2
复制代码
发表于 2013-3-23 19:42 | 显示全部楼层
试试把obfsproxy-0.1.4.tar.gz解压缩后,autoreconf -i ,再打包,把patch放回去,不行的话我也没有办法了
 楼主| 发表于 2013-3-23 19:53 | 显示全部楼层
haxc 发表于 2013-3-23 19:42
试试把obfsproxy-0.1.4.tar.gz解压缩后,autoreconf -i ,再打包,把patch放回去,不行的话我也没有办法了

好的,谢谢了。我现在正在编attitude_adjustment-34879的源码,选上了obfsproxy,看看openwrt会不会出错。
 楼主| 发表于 2013-3-23 20:22 | 显示全部楼层
NeilYYM 发表于 2013-3-23 19:53
好的,谢谢了。我现在正在编attitude_adjustment-34879的源码,选上了obfsproxy,看看openwrt会不会出错。 ...

在openwrt里编译通过,autoreconf -i后文件内容没有变化
发表于 2014-5-19 10:34 | 显示全部楼层
本帖最后由 xwing 于 2014-5-19 10:35 编辑
haxc 发表于 2013-3-23 19:42
试试把obfsproxy-0.1.4.tar.gz解压缩后,autoreconf -i ,再打包,把patch放回去,不行的话我也没有办法了

HAXC大神的方法有用,先将patch文件解压到同名文件夹下,在文件夹内执行autoreconf -i ,再重新打包成原文件,将patch放到产生错误提示的dl目录下,重新编译通过。
发表于 2015-3-15 19:58 | 显示全部楼层
我是这样解决的

修改 /gargoyle/custom-src/package/obfsproxy/Makefile

PKG_BUILD_DIR:=$(BUILD_DIR)/obfsproxy-legacy
PKG_BUILD_DIR:=$(BUILD_DIR)/obfsproxy-0.1.4

PKG_SOURCE_SUBDIR:=obfsproxy-legacy
PKG_SOURCE_SUBDIR:=obfsproxy-0.1.4

修改 /gargoyle/custom-src/package/obfsproxy/patches/003-allow-daemonize.patch
...
+++ b/src/main.c
cd custom-src
make package/obfsproxy/compile V=99
编译成功


回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-3 19:06

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表