the following is the faults when I run make after run ./configure:
# make
/bin/ksh ./libtool --mode=compile cc -DHAVE_CONFIG_H -D_U_="" -I.
-I/usr/local/include -g -belf -c bpf_filter.c
cc -DHAVE_CONFIG_H -D_U_= -I. -I/usr/local/include -g -belf -c bpf_filter.c -o
bpf_filter.o
rm -f grammar.c
make grammar.o
yacc -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
cc -DHAVE_CONFIG_H -D_U_="" -I. -I/usr/local/include -g -belf -c
grammar.c
lex -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
5862/6000 nodes(%e), 21878/25000 positions(%p), 1292/2000 (%n), 47025
transitions,
3621/4000 packed char classes(%k), 14684/16000 packed transitions(%a),
17206/19000 output slots(%o)
/bin/ksh ./libtool --mode=compile cc -DHAVE_CONFIG_H -D_U_="" -I.
-I/usr/local/include -g -belf -c scanner.c
cc -DHAVE_CONFIG_H -D_U_= -I. -I/usr/local/include -g -belf -c scanner.c -o
scanner.o
/bin/ksh ./libtool --mode=compile cc -DHAVE_CONFIG_H -D_U_="" -I.
-I/usr/local/include -g -belf -c grammar.c
cc -DHAVE_CONFIG_H -D_U_= -I. -I/usr/local/include -g -belf -c grammar.c -o
grammar.o
sed -n -e 's/.*/static const char pcap_version_string[] = "libpcap
version &";/p' ./VERSION > version.h
echo `cat VERSION` | \
sed -e 's/.*/char pcap_version[] = "&";/' > version.c
/bin/ksh ./libtool --mode=compile cc -DHAVE_CONFIG_H -D_U_="" -I.
-I/usr/local/include -g -belf -c version.c
cc -DHAVE_CONFIG_H -D_U_= -I. -I/usr/local/include -g -belf -c version.c -o
version.o
/bin/ksh ./libtool --mode=compile cc -DHAVE_CONFIG_H -D_U_="" -I.
-I/usr/local/include -g -belf -c pcap-dlpi.c
cc -DHAVE_CONFIG_H -D_U_= -I. -I/usr/local/include -g -belf -c pcap-dlpi.c -o
pcap-dlpi.o
"pcap-dlpi.c", line 699: error: undefined symbol: DL_PROMISC_PHYS
"pcap-dlpi.c", line 709: error: undefined symbol: DL_PROMISC_MULTI
"pcap-dlpi.c", line 728: error: undefined symbol: DL_PROMISC_SAP
"pcap-dlpi.c", line 786: error: undefined symbol: DL_FDDI
"pcap-dlpi.c", line 786: error: integral constant expression expected
"pcap-dlpi.c", line 1198: error: undefined symbol: DL_TOOMANY
"pcap-dlpi.c", line 1198: error: integral constant expression expected
"pcap-dlpi.c", line 1198: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1201: error: undefined symbol: DL_NOTENAB
"pcap-dlpi.c", line 1201: error: integral constant expression expected
"pcap-dlpi.c", line 1201: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1204: error: undefined symbol: DL_BUSY
"pcap-dlpi.c", line 1204: error: integral constant expression expected
"pcap-dlpi.c", line 1204: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1207: error: undefined symbol: DL_NOAUTO
"pcap-dlpi.c", line 1207: error: integral constant expression expected
"pcap-dlpi.c", line 1207: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1210: error: undefined symbol: DL_NOXIDAUTO
"pcap-dlpi.c", line 1210: error: integral constant expression expected
"pcap-dlpi.c", line 1210: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1213: error: undefined symbol: DL_NOTESTAUTO
"pcap-dlpi.c", line 1213: error: integral constant expression expected
"pcap-dlpi.c", line 1213: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1216: error: undefined symbol: DL_XIDAUTO
"pcap-dlpi.c", line 1216: error: integral constant expression expected
"pcap-dlpi.c", line 1216: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1219: error: undefined symbol: DL_TESTAUTO
"pcap-dlpi.c", line 1219: error: integral constant expression expected
"pcap-dlpi.c", line 1219: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1222: error: undefined symbol: DL_PENDING
"pcap-dlpi.c", line 1222: error: integral constant expression expected
"pcap-dlpi.c", line 1222: error: duplicate case in switch: 1
"pcap-dlpi.c", line 1369: error: undefined symbol: dl_promiscon_req_t
"pcap-dlpi.c", line 1369: error: Syntax error before or at: req
"pcap-dlpi.c", line 1371: error: undefined symbol: req
"pcap-dlpi.c", line 1371: warning: left operand of "." must be struct/union
object
"pcap-dlpi.c", line 1371: error: undefined symbol: DL_PROMISCON_REQ
"pcap-dlpi.c", line 1372: error: undefined struct/union member: dl_level
"pcap-dlpi.c", line 1372: warning: left operand of "." must be struct/union
object
so, could anyone know how to resolve it?
sufei7099
2008-06-12
发件人: Guy Harris
发送时间: 2008-06-04 15:24:28
收件人: [email protected]
抄送:
主题: Re: [tcpdump-workers] SCO libpcap
sufei7099 wrote:
> How to install libpcap on SCO OPEN SERVER? I download the latest
> version of libpcap, but I can not install it on sco successfully. The
> phenomena is that some macro definition can not be found. I am wishing
> for your help.
To quote the INSTALL.txt file in the latest version of libpcap:
> If you use SCO, you might have trouble building libpcap from this
> release. We do not have a machine running SCO and have not had reports
> of anyone successfully building on it. Since SCO apparently supports
> DLPI, it's possible the current version works. Meanwhile, SCO provides
> a tcpdump binary as part of their "Network/Security Tools" package:
>
> http://www.sco.com/technology/internet/goodies/#SECURITY
>
> There is also a README that explains how to enable packet capture.
That's still true; none of us, as far as I know, have a machine running
SCO OpenServer. Furthermore, the *ONLY* libpcap stuff I could find at
the SCO Skunkware site:
http://www.sco.com/skunkware/
is a tarball of the libpcap 0.6.2 source which appears to be *identical*
to the standard libpcap 0.6.2 source release, which was in the "OSR5/UW7
Source Archives" directory, so perhaps libpcap 0.6.2 worked on
OpenServer 5, and some change to libpcap after 0.6.2 or some change to
OpenServer after OpenServer 5 caused it no longer to work.
If you can tell us what the compiler errors are when you try to compile
the current version of libpcap, we *might* be able to debug the problem.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.