On Wed, Jul 29, 2009 at 6:30 PM, Chris Packham<judge.pack...@gmail.com> wrote:
> On Thu, Jul 30, 2009 at 12:38 PM, Aaron Turner<synfina...@gmail.com> wrote:
>> On Wed, Jul 29, 2009 at 5:16 PM, Chris Packham<judge.pack...@gmail.com> 
>> wrote:
>>> On Thu, Jul 30, 2009 at 9:57 AM, Chris Packham<judge.pack...@gmail.com> 
>>> wrote:
>>>> A bit of googling turned up some guideance on how to handle this [1].
>>>> Looks like there is an optional argument to AC_RUN_IFELSE that can be
>>>> used for an action-if-cross-compiling. The cache manipulation trick is
>>>> also mentioned. I'll post a patch shortly.
>>>
>>> Turned out to be easy enough after I figured out the autoconf syntax.
>>>
>>> The changes are basically to 1) allow the tests that execute code to
>>> be skipped if cross compiling and 2) turn the libpcap_version into a
>>> cached variable so that we can tell tcpreplay which version of libpcap
>>> is used in our target environment.
>>>
>>> With my patch applied the typical usage is
>>>
>>> autoreconf    # this won't be necessary once my patch is accepted upstream
>>>
>>> tr_cv_libpcap_version=">= 0.7.0" \
>>> ./configure --target=powerpc-linux \
>>>                --host=powerpc-linux \
>>>                --build=i386-pc-linux-gnu \
>>>                --program-prefix="" \
>>>                --with-libpcap=<path-to-libpcap>
>>>
>>
>> What is the output of:
>>
>>  grep ALIGN src/config.h
>>
>> I'm curious if FORCE_ALIGN was set (needs to be for PPC builds).
>
> ~/tcpreplay-3.4.3> grep ALIGN src/config.h
> #define FORCE_ALIGN 1
>
> The other thing I should mentioned is that in addition to compiling
> I've confirmed tcpreplay runs on my target. I haven't tried any of the
> other tools yet.

Well if it figured out the alignment issue then things are probably
ok.  tcprewrite is by far the most likely to crash if things aren't
right though.

Anyways, when I get some free cycles I'll try to merge your patch in,
but as an FYI, tcpreplay 4.0 has switched to cmake (www.cmake.org) in
order to allow building on more platforms (specifically native
windows/MSVC++).

-- 
Aaron Turner
http://synfin.net/
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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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