- 论坛徽章:
- 0
|
我从ftp:ftp.samba.org上下载了ppp的源代码包:ppp-2.4.3.tar.gz,解压后进入目录,执行:
- #./configure
- #make CC=arm-linux-gcc
- ..............
- .............
- options.c:59:18: pcap.h: No such file or directory
- options.c: In function `setpassfilter':
- options.c:1449: error: `pcap_t' undeclared (first use in this function)
- options.c:1449: error: (Each undeclared identifier is reported only once
- options.c:1449: error: for each function it appears in.)
- options.c:1449: error: `pc' undeclared (first use in this function)
- options.c:1452: warning: implicit declaration of function `pcap_open_dead'
- options.c:1452: error: `DLT_PPP' undeclared (first use in this function)
- options.c:1453: warning: implicit declaration of function `pcap_compile'
- options.c:1455: warning: implicit declaration of function `pcap_geterr'
- options.c:1458: warning: implicit declaration of function `pcap_close'
- options.c: In function `setactivefilter':
- options.c:1470: error: `pcap_t' undeclared (first use in this function)
- options.c:1470: error: `pc' undeclared (first use in this function)
- options.c:1473: error: `DLT_PPP' undeclared (first use in this function)
- options.c: At top level:
- options.c:129: error: storage size of `pass_filter' isn't known
- options.c:130: error: storage size of `active_filter' isn't known
- make[1]: *** [options.o] 错误 1
- make[1]: Leaving directory `/home/exp/ppp-2.4.3/pppd'
- make: *** [all] 错误 2
复制代码
请教各位高手这是啥原因?
我的arm-linux-gcc的版本是3.3.2
[ 本帖最后由 phenix_yw 于 2007-1-11 09:50 编辑 ] |
|