in reply to Re^2: Net::Pcap install problem
in thread Net::Pcap install problem

It isn't perl that's at fault. Personally, I'd hit rt.cpan.org and report that it doesn't compile on solaris. But before I did that, I'd check to see if anyone else reported it. It seems to fail numerous places, but usually older versions.

http://testers.cpan.org/show/Net-Pcap.html

It's probably expecting gcc's argument forgiveness, which isn't reasonable with the solaris compiler. It's slightly more picky. My guess is that you could get it to work by farting around with the Build.PL or Makefile.PL, but it might be some work. If you posted that in your ticket... well, then you'd be cooking with fire.

-Paul

Replies are listed 'Best First'.
Re^4: Net::Pcap install problem
by jblevin (Initiate) on Jul 09, 2007 at 16:24 UTC
    Thanks all for the tips.

    I'm not sure why Net::Pcap installation would try to use the Solaris cc and not gcc. We have gcc installed on our system, and I have succesfully installed other Perl modules in the past (which used gcc).

    Maybe there is something about Net::Pcap's use of $Config in the Makefile.PL that does not work on Solaris. I noticed that this module has not been tested for awhile on Solaris.

    Since all I want to do is have my program write a pcap file, I suppose another option is to just write a C program that does this, and add a system() call to the C program from my Perl script. But it would be much nicer if I could do the whole thing in Perl...