分类: LINUX
2009-08-27 16:50:15
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-linux.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./fad-getad.c
In file included from ./fad-getad.c:64:
/usr/include/linux/if_packet.h:52: 错误:expected specifier-qualifier-list
before ‘__u32’
make: *** [fad-getad.o] 错误 1
看报错信息是/usr/include/linux/if_packet.h这个路径下的c语言的头文件出现问题,
解决方法如下:
将
#include
加入到
/usr/include/linux/if_packet.h
然后再make,OK一切正常,继续往下面装.