Thanks ! It looks like we're now in a similar position: net/ring/ring_packet.c: In function 'add_skb_to_ring': net/ring/ring_packet.c:2498: error: implicit declaration of function 'HARD_TX_LOCK' net/ring/ring_packet.c:2506: 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
--- On Fri, 7/24/09, Troy Jordan <[email protected]> wrote: > From: Troy Jordan <[email protected]> > Subject: Re: [Ntop-misc] PF_RING build failure on Ubuntu 9.04 > To: [email protected] > Date: Friday, July 24, 2009, 8:15 AM > > James, > > The errors prior to HARD_TX_LOCK and HARD_TX_UNLCOCK can be > remedied on > RHEL5 by commenting out the #if block that contains those 4 > functions in > ring_packet.c (before running mkpatch.sh) as mentioned > here: > > http://www.gossamer-threads.com/lists/ntop/misc/22387 > > - Troy > > > > 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 > > > > > > [root[at]xxx SPECS]# cat /etc/redhat-release > > Red Hat Enterprise Linux Server release 5.3 (Tikanga) > > [root[at]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 > <troy.jordan[at]gmail.com> wrote: > > > >> From: troy jordan > <troy.jordan[at]gmail.com> > >> Subject: [Ntop-misc] PF_RING build failure on > Ubuntu 9.04 > >> To: ntop-misc[at]listgateway.unipi.it > >> 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 > >> > >> > >> > > _______________________________________________ > 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
