[Snort-devel] libdaq configure error in cross compiling

Steve Sturges steve.sturges at ...402...
Fri Sep 9 09:46:26 EDT 2011


Looking through the config.log, I see the following, which indicate there
are some other library dependencies on libpcap.so.  So, you'll need to
figure out what library includes those symbols and include that so that
libpcap loads correctly when dynamically linked.

configure:11801: $? = 0
configure:11801: result: yes
configure:11801: checking for pcap.h
configure:11801: result: yes
configure:11809: checking for pcap_lib_version in -lpcap
configure:11834: arm-linux-gcc -o conftest -g -O2 -fvisibility=hidden -Wall
-Wwrite-strings -Wsign-compare -Wcast-align -Wextra -Wformat
-Wformat-security -Wno-unused-parameter -fno-strict-aliasing
-fdiagnostics-show-option -pedantic -std=c99 -D_GNU_SOURCE
-I/home/linuxpc1/Elison/snort_dl/arm_install/include/
-L/home/linuxpc1/Elison/snort_dl/arm_install/lib/ conftest.c -lpcap   >&5
/home/linuxpc1/Elison/snort_dl/arm_install/lib//libpcap.so: undefined
reference to `usb_platform_finddevs'
/home/linuxpc1/Elison/snort_dl/arm_install/lib//libpcap.so: undefined
reference to `usb_create'
/home/linuxpc1/Elison/snort_dl/arm_install/lib//libpcap.so: undefined
reference to `can_create'
collect2: ld returned 1 exit status
configure:11834: $? = 1

On Fri, Sep 9, 2011 at 9:27 AM, elison.niven at ...2499... <
elison.niven at ...2499...> wrote:

> Hi,
>
> On Fri, Sep 9, 2011 at 6:30 PM, Steven Sturges <ssturges at ...402...>
> wrote:
> > Hi Elison--
> >
> > Where does pcap.h reside?  Directly in /home/elison/arm_install/include
> > or /home/elison/arm_install/include/pcap?
>
> pcap.h is in /home/elison/arm_install/include/ with contents
> #include <pcap/pcap.h>
>
> There is another pcap.h in /home/elison/arm_install/include/pcap/
>
> > What about libpcap.a?
>
> libpcap.a is in /home/elison/arm_install/lib/
>
> > It would be helpful to look through the config.log that results from
> > using the daq configure script... This will help identify whether it is
> > a path issue, or something else.
>
>
> Actual path is /home/linuxpc1/Elison/snort_dl/arm_install/
> Have kept config.log here
> http://pastebin.com/8XHb5skG
>
> > Cheers.
> > -steve
> >
> > On 9/9/11 2:38 AM, elison.niven at ...2499... wrote:
> >>
> >> Hi,
> >>
> >> I am trying to cross compile libdaq using arm-linux-gcc but configure
> >> fails
> >>
> >> "checking for pcap_lib_version... checking for pcap_lib_version in
> >> -lpcap... (cached) no
> >>
> >>    ERROR!  Libpcap library version>= 1.0.0 not found.
> >>    Get it from http://www.tcpdump.org"
> >>
> >> I did download libpcap and followed these steps:
> >> cd libpcap-1.1
> >> ./configure --prefix=/home/elison/arm_install --with-pcap=getad.c
> >> --host=arm-linux
> >> make FSRC=fad-getad.c PSRC=pcap-linux.c
> >> make FSRC=fad-getad.c PSRC=pcap-linux.c install
> >>
> >> I then have the pcap libraries for arm in /home/elison/arm_install.
> >>
> >> Then I try to build libdaq :
> >>
> >> cd daq-0.6.1
> >> ./configure --prefix=/home/elison/arm_install \
> >> --with-libpcap-includes=/home/elison/arm_install/include \
> >> --with-libpcap-libraries=/home/elison/arm_install/lib \
> >> --host=arm-linux
> >>
> >> It fails with
> >> "checking for pcap_lib_version... checking for pcap_lib_version in
> >> -lpcap... (cached) no
> >>
> >>    ERROR!  Libpcap library version>= 1.0.0 not found.
> >>    Get it from http://www.tcpdump.org"
> >>
> >> What is possibly wrong ? I sense it's some bug with the ./configure
> >> script.
> >> I can build snort from source for x86 and want to do it now for arm
> >> but am stuck at libdaq.
> >>
>
> Thanks,
> Elison
>
>
> ------------------------------------------------------------------------------
> Why Cloud-Based Security and Archiving Make Sense
> Osterman Research conducted this study that outlines how and why cloud
> computing security and archiving is rapidly being adopted across the IT
> space for its ease of implementation, lower cost, and increased
> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/snort-devel
>
> Please visit http://blog.snort.org for the latest news about Snort!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20110909/5484f1f2/attachment.html>


More information about the Snort-devel mailing list