在OS X上编译hexinject时出错

时间:2015-10-19 00:14:03

标签: macos makefile hex

使用<div id="myDiv"> <div class="cars"></div> </div> <select id="selector"> <option class="car" value="alfaromeo">Alfa Romeo</option> <option class="car" value="volvo">Volvo</option> <option class="car" value="ford">Ford</option> <option class="car" value="opel">Opel</option> </select>从OS X上的源代码编译 hexinject 时出现此错误:

make

我已经安装了In file included from hexinject.c:8: In file included from ./hexinject.h:22: ./hexpcap.h:309:12: warning: returning 'const char *' from a function with result type 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] return raw; ^~~ 10 warnings generated. Undefined symbols for architecture x86_64: "_field_print", referenced from: _tcp_print in hexinject-0a9735.o _udp_print in hexinject-0a9735.o _icmp_print in hexinject-0a9735.o _igmp_print in hexinject-0a9735.o _ip_print in hexinject-0a9735.o _arp_print in hexinject-0a9735.o _ethernet_print in hexinject-0a9735.o ... "_protocol_16bit_extract", referenced from: _ethernet_print in hexinject-0a9735.o _llc_print in hexinject-0a9735.o "_protocol_48bit_extract", referenced from: _ethernet_print in hexinject-0a9735.o "_protocol_8bit_extract", referenced from: _ip_print in hexinject-0a9735.o _isl_print in hexinject-0a9735.o _llc_print in hexinject-0a9735.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [all] Error 1 libpcap。我该如何解决这个错误?

1 个答案:

答案 0 :(得分:1)

见这里:http://sourceforge.net/p/hexinject/bugs/3/

打开tcl并从以下功能中删除prettypacket.h关键字

inlineprotocol_8bit_extractprotocol_16bit_extract, 和protocol_48bit_extract

然后像往常一样使用field_print进行编译