[Oisf-devel] PCAP error when compiling

Duarte Silva duarte.silva at serializing.me
Tue Jul 30 06:05:33 UTC 2013


Try to install the pcap-devel package or the Ubuntu equivalent of it.

Best regards,
Duarte
On 30 Jul 2013 03:34, "Brant Wells" <bwells at tfc.edu> wrote:

> Hey Guys,
>
> I'm trying to compile Suricata 2.0 from git (last check out item is
>
> commit 4424f5a2313813579f96ec72e756e0**b58071c64b
> Author: Eric Leblond <eric at regit.org>
> Date:   Mon Jul 29 14:58:07 2013 +0200
>
> )
>
> I'm running on a Ubuntu 12.0.4.2 LTS that has been upgraded from 11.0.4...
>  After running the autogen.sh and
>
>  $ ./configure --enable-nfqueue --enable-af-packet
> --enable-non-bundled-htp --with-libhtp-includes=/usr/**local/includes
> --with-htp-libraries=/usr/**local/lib
>
> I get the following error:
>
> source-pcap.o: In function `ReceivePcapThreadInit':
> /home/tech/Software/suricata/**src/source-pcap.c:402: undefined reference
> to `pcap_create'
> /home/tech/Software/suricata/**src/source-pcap.c:424: undefined reference
> to `pcap_set_snaplen'
> /home/tech/Software/suricata/**src/source-pcap.c:436: undefined reference
> to `pcap_set_promisc'
> /home/tech/Software/suricata/**src/source-pcap.c:445: undefined reference
> to `pcap_set_timeout'
> /home/tech/Software/suricata/**src/source-pcap.c:459: undefined reference
> to `pcap_set_buffer_size'
> /home/tech/Software/suricata/**src/source-pcap.c:471: undefined reference
> to `pcap_activate'
> source-pcap.o: In function `PcapTryReopen':
> /home/tech/Software/suricata/**src/source-pcap.c:169: undefined reference
> to `pcap_activate'
> collect2: ld returned 1 exit status
> make[3]: *** [suricata] Error 1
> make[3]: Leaving directory `/home/tech/Software/suricata/**src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/tech/Software/suricata/**src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/tech/Software/suricata'
> make: *** [all] Error 2
>
> The only libraries that I have compiled from source are the un-bundled HTP
> libs... the rest are ubuntu packages.
>
> Any ideas?
>
> Thanks!
> ~Brant
>
>
>
>
>
> ______________________________**_________________
> Suricata IDS Devel mailing list: oisf-devel@**openinfosecfoundation.org<oisf-devel at openinfosecfoundation.org>
> Site: http://suricata-ids.org | Participate: http://suricata-ids.org/**
> participate/ <http://suricata-ids.org/participate/>
> List: https://lists.**openinfosecfoundation.org/**
> mailman/listinfo/oisf-devel<https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel>
> Redmine: https://redmine.**openinfosecfoundation.org/<https://redmine.openinfosecfoundation.org/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20130730/162ad89f/attachment-0002.html>


More information about the Oisf-devel mailing list