Hi,

I'v faced a serious problem while trying to install libpcap using fink.
The error code follows. I have a MacbookPro with Mac OS X Lion.

Thanks,
Charles.

gcc -O -fno-common -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c 
./gencode.c
./pcap-bpf.c:741:18: error: variable has incomplete type 'struct bpf_stat'
        struct bpf_stat s;
                        ^
./pcap-bpf.c:741:9: note: forward declaration of 'struct bpf_stat'
        struct bpf_stat s;
               ^
./pcap-bpf.c:756:19: error: use of undeclared identifier 'BIOCGSTATS'
        if (ioctl(p->fd, BIOCGSTATS, (caddr_t)&s) < 0) {
                         ^
./pcap-bpf.c:924:15: error: incomplete definition of type 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ~~~^
./pcap-bpf.c:924:12: note: forward declaration of 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ^
./pcap-bpf.c:895:22: note: instantiated from:
#define bhp ((struct bpf_hdr *)bp)
                     ^
./pcap-bpf.c:925:15: error: incomplete definition of type 'struct bpf_hdr'
                hdrlen = bhp->bh_hdrlen;
                         ~~~^
./pcap-bpf.c:924:12: note: forward declaration of 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ^
./pcap-bpf.c:895:22: note: instantiated from:
#define bhp ((struct bpf_hdr *)bp)
                     ^
./pcap-bpf.c:941:47: error: incomplete definition of type 'struct bpf_hdr'
                    bpf_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, 
caplen)) {
                                                         ~~~^
./pcap-bpf.c:924:12: note: forward declaration of 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ^
./pcap-bpf.c:895:22: note: instantiated from:
#define bhp ((struct bpf_hdr *)bp)
                     ^
./pcap-bpf.c:944:26: error: incomplete definition of type 'struct bpf_hdr'
                        pkthdr.ts.tv_sec = bhp->bh_tstamp.tv_sec;
                                           ~~~^
./pcap-bpf.c:924:12: note: forward declaration of 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ^
./pcap-bpf.c:895:22: note: instantiated from:
#define bhp ((struct bpf_hdr *)bp)
                     ^
./pcap-bpf.c:952:27: error: incomplete definition of type 'struct bpf_hdr'
                        pkthdr.ts.tv_usec = bhp->bh_tstamp.tv_usec;
                                            ~~~^
./pcap-bpf.c:924:12: note: forward declaration of 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ^
./pcap-bpf.c:895:22: note: instantiated from:
#define bhp ((struct bpf_hdr *)bp)
                     ^
./pcap-bpf.c:966:20: error: incomplete definition of type 'struct bpf_hdr'
                        pkthdr.len = bhp->bh_datalen;
                                     ~~~^
./pcap-bpf.c:924:12: note: forward declaration of 'struct bpf_hdr'
                caplen = bhp->bh_caplen;
                         ^
./pcap-bpf.c:895:22: note: instantiated from:
#define bhp ((struct bpf_hdr *)bp)
                     ^
./pcap-bpf.c:1015:20: error: use of undeclared identifier 'BIOCSHDRCMPLT'
                if (ioctl(p->fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) {
                                 ^
./pcap-bpf.c:1428:16: error: use of undeclared identifier 'BIOCVERSION'
        if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0) {
                      ^
./pcap-bpf.c:1629:18: error: use of undeclared identifier 'BIOCSBLEN'
                        if (ioctl(fd, BIOCSBLEN,
                                      ^
gcc -O -fno-common -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c 
./optimize.c
./pcap-bpf.c:1643:18: error: use of undeclared identifier 'BIOCSETIF'
                        if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) {
                                      ^
./pcap-bpf.c:1657:19: error: use of undeclared identifier 'BIOCGBLEN'
                        if ((ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) ||
                                       ^
./pcap-bpf.c:1668:22: error: use of undeclared identifier 'BIOCSBLEN'
                                (void) ioctl(fd, BIOCSBLEN, (caddr_t)&v);
                                                 ^
./pcap-bpf.c:1672:19: error: use of undeclared identifier 'BIOCSETIF'
                                if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) >= 0)
                                              ^
./pcap-bpf.c:1692:16: error: use of undeclared identifier 'BIOCGDLT'
        if (ioctl(fd, BIOCGDLT, (caddr_t)&v) < 0) {
                      ^
./pcap-bpf.c:1983:21: error: use of undeclared identifier 'BIOCSRTIMEOUT'
                        if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) {
                                         ^
./pcap-bpf.c:2054:20: error: use of undeclared identifier 'BIOCPROMISC'
                if (ioctl(p->fd, BIOCPROMISC, NULL) < 0) {
                                 ^
./pcap-bpf.c:2061:16: error: use of undeclared identifier 'BIOCGBLEN'
        if (ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) {
                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [pcap-bpf.o] Error 1
make: *** Waiting for unfinished jobs....
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/etc/fink-0.32.6/bin/dpkg-lockwait -r fink-buildlock-libpcap1-1.1.1-1
(Lecture de la base de données... 6130 fichiers et répertoires déjà installés.)
Suppression de fink-buildlock-libpcap1-1.1.1-1 ...
Failed: phase compiling: libpcap1-1.1.1-1 failed

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to