OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000106OMNeT++command line toolspublic2009-09-09 16:332009-09-10 13:54
Assigned Toandras 
Platformx86OSWindowsOS VersionXP
Product Version4.0 
Target VersionFixed in Version4.1 
Summary0000106: configure script sets HAVE_PCAP even if wpcap.dll is missing
DescriptionOn 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
andras (administrator)
2009-09-10 13:54

On Windows, configure script now tests for existence of wpcap.dll before setting HAVE_PCAP.

- Issue History
Date Modified Username Field Change
2009-09-09 16:33 andras New Issue
2009-09-10 13:54 andras Note Added: 0000172
2009-09-10 13:54 andras Status new => resolved
2009-09-10 13:54 andras Fixed in Version => 4.1
2009-09-10 13:54 andras Resolution open => fixed
2009-09-10 13:54 andras Assigned To => andras

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker