Problems instaling perl Net::Pcap module

SonOfLilit SonOfLilit@GMail.com
Thu Mar 3 22:26:00 GMT 2005


I hope this is the right place to post this.

The steps I went through:
* d/l it
* extract
* cd to dir
* d/l WinPcap developer kit and put ./lib to my /lib/Pcap and ./include to my
/usr/include, without replacing 2-3 .h headers that I already had
* $ perl Makefile.PL INC=-I/usr/include LIBS=-L/lib/Pcap
Says that all is right
* $ make
Gives me tons of warnings and errors - the errors about undefined references to
many pcap related symbols like '_pcap_dump' in pcap.c, while processing *pcap.o*.

Clue anyone?

Errors:
'Pcap.o(.text+0x12b7):Pcap.c: undefined reference to `_pcap_open_live
'Pcap.o(.text+0x1764):Pcap.c: undefined reference to `_pcap_open_offline
'Pcap.o(.text+0x1b90):Pcap.c: undefined reference to `_pcap_dump_open
'Pcap.o(.text+0x2039):Pcap.c: undefined reference to `_pcap_loop
'Pcap.o(.text+0x2549):Pcap.c: undefined reference to `_pcap_dispatch
'Pcap.o(.text+0x28d4):Pcap.c: undefined reference to `_pcap_close
'Pcap.o(.text+0x2b14):Pcap.c: undefined reference to `_pcap_dump_close
'Pcap.o(.text+0x2dc9):Pcap.c: undefined reference to `_pcap_datalink
'Pcap.o(.text+0x3139):Pcap.c: undefined reference to `_pcap_snapshot
'Pcap.o(.text+0x34a9):Pcap.c: undefined reference to `_pcap_is_swapped
'Pcap.o(.text+0x3819):Pcap.c: undefined reference to `_pcap_major_version
'Pcap.o(.text+0x3b89):Pcap.c: undefined reference to `_pcap_minor_version
'Pcap.o(.text+0x3f00):Pcap.c: undefined reference to `_pcap_geterr
'Pcap.o(.text+0x41fe):Pcap.c: undefined reference to `_pcap_strerror
'Pcap.o(.text+0x46bf):Pcap.c: undefined reference to `_pcap_compile
'Pcap.o(.text+0x4ce7):Pcap.c: undefined reference to `_pcap_setfilter
'Pcap.o(.text+0x50a9):Pcap.c: undefined reference to `_pcap_fileno
'Pcap.o(.text+0x5400):Pcap.c: undefined reference to `_pcap_perror
'Pcap.o(.text+0x561c):Pcap.c: undefined reference to `_pcap_findalldevs
'Pcap.o(.text+0x59b6):Pcap.c: undefined reference to `_pcap_stats
'Pcap.o(.text+0x5df4):Pcap.c: undefined reference to `_pcap_file
'Pcap.o(.text+0x6438):Pcap.c: undefined reference to `_pcap_dump
'Pcap.o(.text+0x67dd):Pcap.c: undefined reference to `_pcap_next
collect2: ld returned 1 exit status 
perlld: *** system() failed to execute
gcc -shared -o  Pcap.dll -Wl,--out-implib=libPcap.dll.a -Wl,--export-all-symbols
\ Wl,--enable-auto-import -Wl,--stack,8388608-
s -L/usr/local/lib Pcap.o  /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a-

make: *** [blib/arch/auto/Net/Pcap/Pcap.dll] Error 1 


--
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/



More information about the Cygwin mailing list