Subject: | Net-Pcap-0.15_01 cygwin patch |
Date: | Sun, 23 Sep 2007 15:49:10 -0400 |
To: | sebastien [...] aperghis.net |
From: | "John L. Chmielewski" <jlc [...] cfl.rr.com> |
Hi Sébastien,
I distribute NCID, ncid.sourceforge.net, and have a sip perl module
that pickups Called ID. The cygwin port uses Net-Perl, but it does
not configure anymore. It seems like Net-Pcap mostly ignores a cygwin
environment. Maybe I am doing something wrong, but I had to add one
line to Makefile.PL.
I added (line 49):
} elsif ($^O eq 'cygwin') {
as the line before:
warn <<"REASON" unless have_library('wpcap', 'pcap_lib_version',
'pcap');
and include INC and LIBS to find stuff at c:/WpdPack
Configure will not find the pcap_lib_version function, but is happy with
the library otherwise.
It is very difficult finding information about Net-Pcap under cygwin,
and so
it took me a while to figure what was wrong and how to correct it.
Hopefully
the change I made was correct, and you can incorporate it.
--
John