I'm also getting a build failure on Red Hat 5.3 after the ring module failed to 
load in Red Hat 4.4. Ubuntu was going to be the next on the list :) Can anyone 
suggest a current known good build environment ?


net/ring/ring_packet.c:1311: error: redefinition of 'ip_hdr'
include/linux/ip.h:109: error: previous definition of 'ip_hdr' was here
net/ring/ring_packet.c:1317: error: redefinition of 'skb_set_network_header'
include/linux/skbuff.h:1021: error: previous definition of 
'skb_set_network_header' was here
net/ring/ring_packet.c:1322: error: redefinition of 'skb_reset_network_header'
include/linux/skbuff.h:1016: error: previous definition of 
'skb_reset_network_header' was here
net/ring/ring_packet.c:1327: error: redefinition of 'skb_reset_transport_header'
include/linux/skbuff.h:995: error: previous definition of 
'skb_reset_transport_header' was here
net/ring/ring_packet.c: In function 'add_skb_to_ring':
net/ring/ring_packet.c:2496: error: implicit declaration of function 
'HARD_TX_LOCK'
net/ring/ring_packet.c:2504: error: implicit declaration of function 
'HARD_TX_UNLOCK'
make[2]: *** [net/ring/ring_packet.o] Error 1
make[1]: *** [net/ring] Error 2
make: *** [net] Error 2


[r...@xxx SPECS]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[r...@xxx SPECS]# uname -a
Linux xxx 2.6.18-128.el5PAE #1 SMP Wed Dec 17 12:02:33 EST 2008 i686 i686 i386 
GNU/Linux

I'm using a PF_RING snapshot from yesterday.

Thanks,
James


--- On Thu, 7/23/09, troy jordan <[email protected]> wrote:

> From: troy jordan <[email protected]>
> Subject: [Ntop-misc] PF_RING build failure on Ubuntu 9.04
> To: [email protected]
> Date: Thursday, July 23, 2009, 3:25 PM
> 
> I have encountered a new build error with the  pfring v.
> 3.9.5 (build 3825) and am wondering if anyone else has seen
> this:
> 
> 
> %> make-kpkg -initrd -revision=pfring3.9.5 kernel_image
> <snip>
> 
> CC [M]  net/ring/ring_packet.o
> 
> net/ring/ring_packet.c:2500:26: error: macro
> "HARD_TX_LOCK" requires 3 arguments, but only 2
> given
> net/ring/ring_packet.c: In function ‘add_skb_to_ring’:
> net/ring/ring_packet.c:2496: error: ‘HARD_TX_LOCK’
> undeclared (first use in this function)
> 
> net/ring/ring_packet.c:2496: error: (Each undeclared
> identifier is reported only once
> net/ring/ring_packet.c:2496: error: for each function it
> appears in.)
> net/ring/ring_packet.c:2508:10: error: macro
> "HARD_TX_UNLOCK" requires 2 arguments, but only 1
> given
> 
> net/ring/ring_packet.c:2504: error: ‘HARD_TX_UNLOCK’
> undeclared (first use in this function)
> make[3]: *** [net/ring/ring_packet.o] Error 1
> make[2]: *** [net/ring] Error 2
> make[1]: *** [net] Error 2
> make[1]: Leaving directory
> `/usr/src/linux-source-2.6.28'
> 
> make: *** [debian/stamp/build/kernel] Error 2
> 
> Build environment is:
> 
> PF_RING : v3.9.5 (build 3825)
> Ubuntu release : 9.04
> Ubuntu kernel :  2.6.28-13-generic #45-Ubuntu SMP
> mainline kernel (for mkpatch) : 2.6.28.9
> 
> kernel-source (for kernel build) : 2.6.28-13.45
> 
> Thanks for your help.
> 
> - Troy
> 
> 
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> 


      
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to