mentohust-proxy icon indicating copy to clipboard operation
mentohust-proxy copied to clipboard

交叉编译出错

Open iLayPark opened this issue 8 years ago • 20 comments

Makefile:396: recipe for target 'mentohust' failed make[2]: *** [mentohust] Error 1 make[2]: Leaving directory '/home/1/mentohust-proxy-master/src' Makefile:486: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/1/mentohust-proxy-master'

iLayPark avatar Nov 14 '16 00:11 iLayPark

没有截到具体错误信息。这只是连锁的错误而已。

updateing avatar Nov 14 '16 01:11 updateing

下课回去再编译下,ubuntu下交叉编译mt7620,你的两个proxy版本编译都出错,原版和V4版不出错。非计算机专业,对这些不是很懂

iLayPark avatar Nov 14 '16 03:11 iLayPark

是不是没有链接libpthread?我的代理版本都需要这个多线程库。请贴上完整的错误信息。

此外,我也不是计算机专业。

updateing avatar Nov 14 '16 04:11 updateing

CCLD mentohust /home/1/mt7620/libpcap.a(nametoaddr.o): In function pcap_nametoaddr': nametoaddr.c:(.text+0x60): warning: gethostbyname is obsolescent, use getnameinfo() instead. /home/1/mt7620/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/lib/libpthread.a(pthread_once.os): In functionclear_once_control': /home/buildbot/slave-local/ramips_mt7620/build/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/libpthread/nptl/sysdeps/unix/sysv/linux/mips/pthread_once.c:33: undefined reference to _Unwind_Resume' /home/1/mt7620/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/lib/libpthread.a(pthread_once.os):(.data.DW.ref.__gcc_personality_v0[DW.ref.__gcc_personality_v0]+0x0): undefined reference to__gcc_personality_v0' collect2: error: ld returned 1 exit status Makefile:396: recipe for target 'mentohust' failed make[2]: *** [mentohust] Error 1 make[2]: Leaving directory '/home/1/mentohust-proxy-master/src' Makefile:486: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/1/mentohust-proxy-master' Makefile:361: recipe for target 'all' failed make: *** [all] Error 2

iLayPark avatar Nov 14 '16 05:11 iLayPark

工具链自身问题,尝试用动态链接或者换工具链再静态链接。

updateing avatar Nov 14 '16 05:11 updateing

对了,这两个mentohust-proxy跟mentohust-v4-proxy有什么区别呀?

Droid-MAX avatar Nov 24 '16 15:11 Droid-MAX

同武汉!😂另外那个叫ifwangs的小伙伴,mentohust-proxy我已经搞定了,mentohust-v4-proxy还没看,我想先了解这两者有何区别我在决定要不要搞出来。。

Droid-MAX avatar Nov 24 '16 15:11 Droid-MAX

前者在不使用代理认证的时候(独立工作时)只能做v2算法的客户端用,后者可以做v4的客户端。

updateing avatar Nov 24 '16 17:11 updateing

看来我有必要起床搞事了~2333

Droid-MAX avatar Nov 25 '16 01:11 Droid-MAX

可以加好友交♂流♂交♂流嘛~

Droid-MAX avatar Nov 25 '16 02:11 Droid-MAX

commit里面author的邮箱是在用的,可以发邮件~

updateing avatar Nov 25 '16 03:11 updateing

mentohust-v4-proxy for mt7620搞定!

Droid-MAX avatar Nov 25 '16 04:11 Droid-MAX

http://pan.baidu.com/s/1hrEmVsg minieap,mentohust-proxy,mentohust-v4-proxy for mt7620 platform openwrt router,all of dynamically linked.

Droid-MAX avatar Nov 25 '16 04:11 Droid-MAX

今天抱着再试一试的心态把agentx1换回去了,竟然奇迹般的能用了,好开森!!

Droid-MAX avatar Nov 25 '16 12:11 Droid-MAX

有能用的就好~

updateing avatar Nov 25 '16 16:11 updateing

有一个问题就是 我编译好了mt7628的可执行mentohust文件 中间没有报错 但是我把可执行文件放在路由之后 不能正确的运行。 $ ./mentohust 不能运行 不知道问什么。。。

rzhbit avatar Dec 26 '17 09:12 rzhbit

没有任何报错和输出信息?随口一说不贴代码出来谁能帮你。。。

Droid-MAX avatar Dec 26 '17 11:12 Droid-MAX

configure--host 错了不会有任何 error 提示,只不过编译出来是电脑用的而已。

建议将整个 configure 过程贴出来。

updateing avatar Dec 26 '17 13:12 updateing

sh autogen.sh ./configure --host=mipsel-openwrt-linux-uclibc --disable-encodepass --disable-notify --with-pcap=/home/rzh/wifi/openwrt/libpcap.a make 参考的是这篇文章 http://spaces.ac.cn/archives/3936/ 因为我的路由器是mt7628 所以我用了mt7628的sdk 把环境变量也改了 但是编译出来的文件路由运行不了

rzhbit avatar Dec 29 '17 08:12 rzhbit

报错是这样的。。 ./mentohust:line 1:syntax error:unexpected word (expecting ")")

rzhbit avatar Jan 08 '18 02:01 rzhbit