On 8/8/06, Roy S. Rapoport <[EMAIL PROTECTED]> wrote: > On Tue, Aug 08, 2006 at 09:28:18AM -0700, Aaron Turner wrote: > > Huh. Not sure why newer versions of gcc find it, but I won't > > complain... easy enough to fix. Thanks for the tip. So I take it > > that things are compiling fine now for you? > > Yup. All good. Here's the sequence of events: > > A) That problem with dbgx not being defined in common/cache.c occured; I > fixed it by adding '#include "err.h"' in cache.c
Thanks for the info. > B) I then got errors because GCC claimed that you cannot have an #ifdef > in the middle of a macro; in other words, it considered > dbgx( blah blah blah > #ifdef foo > anotherblah > #else > someotherblah > #endif > ); > > to be wrong. Before complaining to the list again, I figured I'd make > sure it wasn't the fact my version of GCC was born while there was still > a Democrat in the White House, so I upgraded to GCC 4.1.1 and it worked > fine. Good to hear, although for compatibility reasons I'll prolly have to rewrite it so older versions are happy. > I just tried using GCC 4.1.1 again, by the way, after removing that > #include "err.h" -- I wanted to see if that issue was also caused by my > old GCC -- but no such luck. I got the same complaint. So I suspect > that's a real issue. Wierd. Works fine with 4.0.1 under OS X and I thought it worked fine under gcc 3.4.3 on CentOS 4.1. At least I'm pretty sure that code hasn't changed in a few weeks. Either way, thanks for the tip so I can fix it. > Things are much less frustrating and are actually working now -- thanks! > > (I still don't quite know how to use --dlink to change to ethernet, but > I'll browse the docs and see if I can figure it out) Depends on what you want to do. With HDLC there really isn't a real layer two header to edit. Opening up the file in Ethereal/Wireshark should clear up what I mean. If you wanted to change the packets from HDLC to say Ethernet, then you would specify the new ethernet header with --dlink and specify the new DLT type with --dlt (added in beta11). The manual has an example: http://tcpreplay.synfin.net/trac/wiki/tcprewrite#HandlingnonEthernetDLTs If there is something else you want to do, let me know and I'll see what I can do. -- Aaron Turner http://synfin.net/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
