I don't know if this is the correct forum to post this but hopefully someone can atleast point me in the right direction if they can't help me.
I am trying to install the Net::Pcap module for perl from Tim Potter version .04. I have installed gcc 2.95.3 on my Solaris 8 box. I am sure it's just a config/option issue with gcc. When I run:
perl Makefile.PL
I get this:
Note (probably harmless): No library found for -lpcap
Writing Makefile for Net::Pcap
If I manually try to compile Pcap.c using this (I know there are more options I should use but I am not hugely familiar with gcc):
gcc Pcap.c
I get this:
Pcap.xs:18: EXTERN.h: No such file or directory
In file included from Pcap.xs:19:
perl.h:27: config.h: No such file or directory
In file included from Pcap.xs:19:
perl.h:441: embed.h: No such file or directory
In file included from Pcap.xs:19:
perl.h:1664: handy.h: No such file or directory
perl.h:1828: unixish.h: No such file or directory
perl.h:2135: iperlsys.h: No such file or directory
In file included from Pcap.xs:19:
perl.h:2138: sv.h: No such file or directory
perl.h:2139: util.h: No such file or directory
In file included from /usr/include/curses.h:23,
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/curses.h:5,
from /usr/include/form.h:13,
from perl.h:2140,
from Pcap.xs:19:
/usr/include/widec.h:38: warning: `getwc' redefined
/usr/include/iso/wchar_iso.h:337: warning: this is the location of the previous definition
/usr/include/widec.h:39: warning: `putwc' redefined
/usr/include/iso/wchar_iso.h:340: warning: this is the location of the previous definition
/usr/include/widec.h:40: warning: `getwchar' redefined
/usr/include/iso/wchar_iso.h:338: warning: this is the location of the previous definition
/usr/include/widec.h:41: warning: `putwchar' redefined
/usr/include/iso/wchar_iso.h:341: warning: this is the location of the previous definition
In file included from Pcap.xs:19:
perl.h:2141: gv.h: No such file or directory
perl.h:2142: cv.h: No such file or directory
perl.h:2143: opnames.h: No such file or directory
perl.h:2144: op.h: No such file or directory
perl.h:2145: cop.h: No such file or directory
perl.h:2146: av.h: No such file or directory
perl.h:2147: hv.h: No such file or directory
perl.h:2148: mg.h: No such file or directory
perl.h:2149: scope.h: No such file or directory
perl.h:2150: warnings.h: No such file or directory
perl.h:2151: utf8.h: No such file or directory
perl.h:2152: sharedsv.h: No such file or directory
perl.h:3058: perly.h: No such file or directory
In file included from Pcap.xs:19:
perl.h:3256: pp.h: No such file or directory
In file included from Pcap.xs:19:
perl.h:3279: opcode.h: No such file or directory
perl.h:3284: embedvar.h: No such file or directory
perl.h:3299: intrpvar.h: No such file or directory
perl.h:3301: thrdvar.h: No such file or directory
perl.h:3314: perlvars.h: No such file or directory
perl.h:4077: patchlevel.h: No such file or directory
In file included from Pcap.xs:20:
XSUB.h:255: perlapi.h: No such file or directory
All the .h files are in my /usr/perl5/5.00503/sun4-solaris/CORE directory.
The README for Pcap mentions they successfully tested on Solaris 2.6 with gcc 2.8.1.
Any help is appreciated.
TioTony