Hopefully this is an appropriate place to field this.  Let me know otherwise.

I am attempting to instal 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:

[EMAIL PROTECTED] 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
RawIP.xs: In function `XS_Net__RawIP_tcp_pkt_parse':
RawIP.xs:764: warning: use of cast expressions as lvalues is deprecate
+d
RawIP.xs:790: warning: use of cast expressions as lvalues is deprecate
+d
RawIP.xs: In function `XS_Net__RawIP_icmp_pkt_parse':
RawIP.xs:823: warning: use of cast expressions as lvalues is deprecate
+d
RawIP.xs: In function `XS_Net__RawIP_generic_pkt_parse':
RawIP.xs:863: warning: use of cast expressions as lvalues is deprecate
+d
RawIP.xs: In function `XS_Net__RawIP_udp_pkt_parse':
RawIP.xs:897: warning: use of cast expressions as lvalues is deprecate
+d
RawIP.xs: In function `XS_Net__RawIP_dispatch':
RawIP.xs:1289: warning: use of cast expressions as lvalues is deprecat
+ed
RawIP.xs: In function `XS_Net__RawIP_loop':
RawIP.xs:1311: warning: use of cast expressions as lvalues is deprecat
+ed
make: *** [RawIP.o] Error 1

Ed Welsh


The information transmitted in this e-mail is intended only for the addressee 
and may contain confidential and/or privileged material. 
Any interception, review, retransmission, dissemination, or other use of, or 
taking of any action upon this information by persons or entities
other than the intended recipient is prohibited by law and may subject them to 
criminal or civil liability. If you received this communication 
in error, please contact us immediately at 816.421.6611, and delete the 
communication from any computer or network system.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to