Thanks!

On Tue, Jul 19, 2011 at 11:52 AM, Bertrand Jacquin <be...@meleeweb.net> wrote:
> Hi,
>
> tcpreplay can't cross compile as configure.ac use AC_RUN_IFELSE without
> defining a cross-compiling result :
>
> ./configure --prefix=/usr --build=x86_64-pc-linux-gnu 
> --host=i586-alix-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info 
> --datadir=/usr/share --sysconfdir=/etc --locals tatedir=/var/lib 
> --enable-shared --disable-local-libopts --with-tcpdump=/usr/sbin/tcpdump 
> --without-pcapnav-config --disable-debug
> ...
> checking for library containing pcap_close... -lpcap
> checking for libpcap version... configure: error: in 
> `/usr/i586-alix-linux-gnu/tmp/portage/net-analyzer/tcpreplay-3.4.4-r1/work/tcpreplay-3.4.4':
> configure: error: cannot run test program while cross compiling
>
> So here is a fix to default to last pcap release
>
> configure: Building tcpbridge
> checking for PF_PACKET socket sending support... yes
> checking for BPF device sending support... configure: error: in 
> `/usr/i586-alix-linux-gnu/tmp/portage/net-analyzer/tcpreplay-3.4.4-r1/work/tcpreplay-3.4.4':
> configure: error: cannot run test program while cross compiling
>
> Same case, and use AC_CACHE_CHECK to let users define ac_cv_have_bpf and
> control the result if cross compiling :
>
> configure: Building tcpbridge
> checking for PF_PACKET socket sending support... yes
> checking for BPF device sending support... configure: error:
> cross-compiling,
>  presetting ac_cv_have_bpf=(yes|no) will help
>
> This apply on 3.4.4, I did check for 3.4.5_beta2, this should apply too.
>
> --
> Beber
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> Tcpreplay-users mailing list
> Tcpreplay-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
>



-- 
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to