mentohust-proxy
mentohust-proxy copied to clipboard
交叉编译出错
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'
没有截到具体错误信息。这只是连锁的错误而已。
下课回去再编译下,ubuntu下交叉编译mt7620,你的两个proxy版本编译都出错,原版和V4版不出错。非计算机专业,对这些不是很懂
是不是没有链接libpthread
?我的代理版本都需要这个多线程库。请贴上完整的错误信息。
此外,我也不是计算机专业。
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 function
clear_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
工具链自身问题,尝试用动态链接或者换工具链再静态链接。
对了,这两个mentohust-proxy跟mentohust-v4-proxy有什么区别呀?
同武汉!😂另外那个叫ifwangs的小伙伴,mentohust-proxy我已经搞定了,mentohust-v4-proxy还没看,我想先了解这两者有何区别我在决定要不要搞出来。。
前者在不使用代理认证的时候(独立工作时)只能做v2算法的客户端用,后者可以做v4的客户端。
看来我有必要起床搞事了~2333
可以加好友交♂流♂交♂流嘛~
commit里面author的邮箱是在用的,可以发邮件~
mentohust-v4-proxy for mt7620搞定!
http://pan.baidu.com/s/1hrEmVsg minieap,mentohust-proxy,mentohust-v4-proxy for mt7620 platform openwrt router,all of dynamically linked.
今天抱着再试一试的心态把agentx1换回去了,竟然奇迹般的能用了,好开森!!
有能用的就好~
有一个问题就是 我编译好了mt7628的可执行mentohust文件 中间没有报错 但是我把可执行文件放在路由之后 不能正确的运行。 $ ./mentohust 不能运行 不知道问什么。。。
没有任何报错和输出信息?随口一说不贴代码出来谁能帮你。。。
configure
的 --host
错了不会有任何 error 提示,只不过编译出来是电脑用的而已。
建议将整个 configure 过程贴出来。
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 把环境变量也改了 但是编译出来的文件路由运行不了
报错是这样的。。 ./mentohust:line 1:syntax error:unexpected word (expecting ")")