-----Original Message----- From: Welsh, Ed
Hopefully this is an appropriate place to field this. Let me know otherwise.
I am attempting to install the Net::RawIP perl module and keep getting heinous compile errors. I'll take any suggestions as to research resources. This is a fairly clean install of perl and Fedora. I'm thinking that the old code (2000) isn't compatible with the newer gcc. Can someone try this on an older gcc install?
thanks
Environment: Fedora Core 3 Perl 5.8.5 Libpcap 0.8.3 Gcc 3.4.3
Here are the compile errors:
[root@fake Net-RawIP-0.1]# make cp RawIP.pm blib/lib/Net/RawIP.pm AutoSplitting blib/lib/Net/RawIP.pm (blib/lib/auto/Net/RawIP) cp RawIP/libpcap.pod blib/lib/Net/RawIP/libpcap.pod /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/ +perl5/5.8.5/ExtUtils/typemap -typemap typemap RawIP.xs > RawIP.xsc & +& mv RawIP.xsc RawIP.c gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -f +no-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_ +FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386
- -mtune=pentium4 -DVERSION="0.1" -DXS_VERSION="0.1" -fPIC "-I/u
+sr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" -D_LINUX_ -D_ETH_ - +D_IFLIST_ -D_GLIBC_ RawIP.c RawIP.xs: In function `ip_opts_creat': RawIP.xs:444: error: label at end of compound statement RawIP.xs: In function `tcp_opts_creat': RawIP.xs:543: error: label at end of compound statement
Have you looked at the RawIP.c at lines 444 and 543 and verified they didn't mistakenly place labels at the end of a compound statement? Or that they didn't make a typo somewhere and forget a bracket or something? The warnings can be ignored.