OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000106OMNeT++command line toolspublic2009-09-09 16:332009-09-10 13:54
andras 
andras 
normalminoralways
resolvedfixed 
x86WindowsXP
4.0 
4.1 
0000106: configure script sets HAVE_PCAP even if wpcap.dll is missing
On Windows, OMNeT++ ships with a pcap.lib (in msys/lib). However, pcap.lib depends on wpcap.dll which is NOT contained in OMNeT++, but needs to be installed separately as part of WinPCAP.

The problem is that the configure script detects pcap.lib, and thus adds -DHAVE_PCAP to CFLAGS (and -lpcap to LDFLAGS). That is, any program that contains #ifdef HAVE_PCAP blocks (e.g. INET Framework!!!) will compile automatically with PCAP support, however it will fail to run because the wpcap.dll is missing.

Fix: configure should check if it can actually *run* a program that links with pcap, and only set HAVE_PCAP if it was successful.
No tags attached.
Issue History
2009-09-09 16:33andrasNew Issue
2009-09-10 13:54andrasNote Added: 0000172
2009-09-10 13:54andrasStatusnew => resolved
2009-09-10 13:54andrasFixed in Version => 4.1
2009-09-10 13:54andrasResolutionopen => fixed
2009-09-10 13:54andrasAssigned To => andras

Notes
(0000172)
andras   
2009-09-10 13:54   
On Windows, configure script now tests for existence of wpcap.dll before setting HAVE_PCAP.