Opened 7 years ago

Last modified 7 years ago

#456 stalled defect

make fails on cygwin (tcpreplay 3.4.4)

Reported by: ran.shenhar@… Owned by: aturner
Priority: low Milestone:
Component: tcpreplay Version: 3.4.4
Keywords: Cc:
Operating System: Win32 Add to FAQ?: yes
Hardware: Intel
Output of tcpreplay -V:

Description

Hi,
I'm trying to install tcpreplay 3.4.4 but make fails.
Please see attachments for config and make output.
Please let me know if further info is needed.

OS: Win XP
Requirements:
$ which Packet.dll
/cygdrive/c/WINDOWS/system32/Packet.dll
$ which wpcap.dll
/cygdrive/c/WINDOWS/system32/wpcap.dll
$ which gcc
/usr/bin/gcc

Attachments (4)

make.clean.log (2.4 KB) - added by ranshe 7 years ago.
output of make clean
configure.log (14.2 KB) - added by ranshe 7 years ago.
output of configure
makeclean.log (2.4 KB) - added by ranshe 7 years ago.
make.log (1.4 KB) - added by ranshe 7 years ago.
output of make (after make clean)

Download all attachments as: .zip

Change History (18)

comment:1 follow-up: Changed 7 years ago by aturner

Attachments?

Changed 7 years ago by ranshe

output of make clean

comment:2 in reply to: ↑ 1 Changed 7 years ago by ranshe

Replying to aturner:

Attachments?

Added

comment:3 Changed 7 years ago by ranshe

Hi,
Please let me know if this is enough info or if I can supply anything else which might be helpful.

Thanks,
--Ran

comment:4 Changed 7 years ago by aturner

  • Add to FAQ? set

Hi Ran,

Sorry, I've been out of town and haven't had much of a chance yet to look at this in depth. Looks like there is an issue compiling the included GNU Autogen/libopts tear off. I'll have to see if I can reproduce that, but my schedule is a bit slammed right now so it'll be at least a few days before I can investigate. As always, I strongly recommend using Linux, OS X or Free/NetBSD for tcpreplay as those are the most tested platforms. Windows support is still pretty much alpha quality at this time.

comment:5 Changed 7 years ago by ranshe

Thanks, I appreciate your investment in supporting a free product, and I didn't meant to rush you, just to verify that I provided everything I can from my side.

--Ran

comment:6 Changed 7 years ago by ranshe

Hi,
Just wanted to "ping" you on this one.

Thanks,
--Ran

comment:7 Changed 7 years ago by aturner

  • Output of tcpreplay -V modified (diff)

comment:8 Changed 7 years ago by aturner

  • Output of tcpreplay -V modified (diff)

Hmmm... not sure what your problem is right now... I just installed Cygwin (gcc, make, etc), winpcap w/ Dev Kit and grabbed the 3.4.4 tarball and it built just fine. I used gcc4- are you using gcc3 or 4? Maybe try switching to version 4? You may also want to make sure you have the latest version of libtool installed.

comment:9 Changed 7 years ago by ranshe

Upgraded gcc, libtool.
Still fails.
Attached configure, make clean and make output, along with gcc -v output.

Thanks,
--Ran

Changed 7 years ago by ranshe

output of configure

Changed 7 years ago by ranshe

Changed 7 years ago by ranshe

output of make (after make clean)

comment:10 Changed 7 years ago by ranshe

However:
$ ./configure > configure.log
configure: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.

Disabling --verbose

configure: WARNING: Your version of libpcap is too old for --verbose support
configure: WARNING: Windows/Cygwin? support is still somewhat experimental.
Please report any bugs! http://tcpreplay.synfin.net/trac/newticket

rshenhar@rshenhar /tcpreplay-3.4.4

$ make > make.log
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/cygwin/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONF
IG_H -I. -I../src -I.. -D_U_=\attribute((unused))\ -Wall -O3 -std=gnu99 -Wextra -Wno-variadi
c-macros -Wfatal-errors -I/wpdpack/include -MT libopts_la-libopts.lo -MD -MP -MF .deps/libopts_la-li
bopts.Tpo -c -o libopts_la-libopts.lo test -f 'libopts.c' || echo './'libopts.c'
make[1]: * [libopts_la-libopts.lo] Error 1
make:
* [all-recursive] Error 1

comment:11 Changed 7 years ago by aturner

from the tcpreplay-3.4.4 directory, what is the output of: head -1 libtool

You should see:

#! /bin/sh

The key thing here is the first line: #! /usr/bin/sh

From the error it almost sounds like there is an '(' somewhere on that line.

After updating your libtool on your box, you should try:

make distclean
./configure --enable-debug <other args>
make

The other thing which has me confused is the "C:/cygwin/bin/sh.exe" -- I don't think you're building this from the Cygwin shell, but maybe Windows cmd.exe? Trying to build tcpreplay as a native Windows application is sure to fail.

comment:12 Changed 7 years ago by aturner

  • Status changed from new to stalled

Hi Ran,

Checking in to see if you figured out why your logs included the Windows C: drive and if you were able to resolve this issue by using the Cygwin shell. Let me know. Thanks.

comment:13 Changed 7 years ago by ranshe

Nope, not working.
Thanks for your willingness to help!

--Ran

comment:14 Changed 7 years ago by aturner

ok, well if you want more help, you'll have to give more information. As I said, the C: drive bit is a strong indicator your Cygwin environment isn't configured properly since Cygwin doesn't support/understand DOS/Windows drives. You may want to ask the Cygwin people for help about that.

Note: See TracTickets for help on using tickets.