Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4254307A.93651604@dessent.net>
Date: Wed, 06 Apr 2005 11:54:50 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: libnet-pcap-perl ??
References: <d2v3hp$qef$1@sea.gmane.org> <42533B40.A8382720@dessent.net> <Pine.CYG.4.58.0504061329110.3196@fordpc.vss.fsi.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

Brian Ford wrote:

> > The problem with all this is that the winpcap DLLs are compiled with
> > Mingw and depend on msvcrt, so if you want to use them with Cygwin apps
> > you have to recompile them to use cygwin1.dll.  If you don't do this,
> > the libpcap application (Net::Pcap in this case) will compile but fail
> > to run correctly.
> 
> Just curious what this really means.  I use the winpcap DLLs daily in a
> Cygwin appliction (custom, not Perl) without incident.  Am I just lucky?

I'm not entirely sure either. :-)  I too have "fudged it" and gotten
some apps to work, but with strage behavior sometimes.  Run cygcheck on
the app and see if it's loading both cygwin1.dll and msvcr*.dll, if so
then it's luck.  I think it mostly tends to work because the winpcap
stuff doesn't call the C runtime for much.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

