Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Users

PF_RING compiling kernel module error

 

 

NTop users RSS feed   Index | Next | Previous | View Threaded


paul at wozney

Jan 29, 2010, 9:37 PM

Post #1 of 7 (685 views)
Permalink
PF_RING compiling kernel module error

Hello NTOP list,

I'm not a programmer, but I managed to stumble upon what appears to be a
missing header include in pf_ring.c.

I pulled the latest SVN and it was failing to compile the kernel module,
throwing this error:

$ make
make -C /lib/modules/2.6.28-17-generic/build
SUBDIRS=/usr/src/apps/PF_RING/kernel
EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'
CC [M] /usr/src/apps/PF_RING/kernel/pf_ring.o
/usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
/usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to
incomplete type
/usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to
incomplete type
/usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to
incomplete type
make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1
make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic'
make: *** [all] Error 2


I poked around line 2194 and 2196 and they both referenced ethtool. I added
this to the end of the include section: (about line 75)

#include <linux/ethtool.h>

And now it compiles.

I'm still a goodly distance from actually using pf_ring compiled
tcpdump/ntop but at least I have a kernel module.

I hope this helps someone!

Paul


sergiocharpinel at gmail

Feb 2, 2010, 4:52 AM

Post #2 of 7 (646 views)
Permalink
Re: PF_RING compiling kernel module error [In reply to]

Hi,

I'm getting compiling error in Debian lenny kernel 2.6.26

/usr/src/PF_RING/kernel# make
make -C /lib/modules/2.6.26-2-686/build
SUBDIRS=/usr/src/PF_RING/kernel
EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4116\""' modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686'
CC [M] /usr/src/PF_RING/kernel/pf_ring.o
/usr/src/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
/usr/src/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer
to incomplete type
/usr/src/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer
to incomplete type
/usr/src/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer
to incomplete type
/usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’:
/usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has
no member named ‘real_num_tx_queues’
make[2]: ** [/usr/src/PF_RING/kernel/pf_ring.o] Erro 1
make[1]: ** [_module_/usr/src/PF_RING/kernel] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686'
make: ** [all] Erro 2

Is there someone using PF_RING with debian lenny kernel?

Thanks

2010/1/30 Paul Wozney <paul [at] wozney>:
> Hello NTOP list,
> I'm not a programmer, but I managed to stumble upon what appears to be a
> missing header include in pf_ring.c.
> I pulled the latest SVN and it was failing to compile the kernel module,
> throwing this error:
>
> $ make
> make -C /lib/modules/2.6.28-17-generic/build
> SUBDIRS=/usr/src/apps/PF_RING/kernel
> EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'
>   CC [M]  /usr/src/apps/PF_RING/kernel/pf_ring.o
> /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to
> incomplete type
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to
> incomplete type
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to
> incomplete type
> make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1
> make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic'
> make: *** [all] Error 2
>
> I poked around line 2194 and 2196 and they both referenced ethtool.  I added
> this to the end of the include section: (about line 75)
>
> #include <linux/ethtool.h>
>
> And now it compiles.
> I'm still a goodly distance from actually using pf_ring compiled
> tcpdump/ntop but at least I have a kernel module.
> I hope this helps someone!
> Paul
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>



--
Sergio Roberto Charpinel Jr.
_______________________________________________
Ntop mailing list
Ntop [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop


deri at ntop

Feb 2, 2010, 4:57 AM

Post #3 of 7 (650 views)
Permalink
Re: PF_RING compiling kernel module error [In reply to]

Sergio
please resync and try again

Luca

On 02/02/2010 01:52 PM, Sergio Charpinel Jr. wrote:
Hi, I'm getting compiling error in Debian lenny kernel 2.6.26 /usr/src/PF_RING/kernel# make make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/usr/src/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4116\""' modules make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686' CC [M] /usr/src/PF_RING/kernel/pf_ring.o /usr/src/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’: /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has no member named ‘real_num_tx_queues’ make[2]: ** [/usr/src/PF_RING/kernel/pf_ring.o] Erro 1 make[1]: ** [_module_/usr/src/PF_RING/kernel] Erro 2 make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686' make: ** [all] Erro 2 Is there someone using PF_RING with debian lenny kernel? Thanks 2010/1/30 Paul Wozney <paul [at] wozney>:
Hello NTOP list, I'm not a programmer, but I managed to stumble upon what appears to be a missing header include in pf_ring.c. I pulled the latest SVN and it was failing to compile the kernel module, throwing this error: $ make make -C /lib/modules/2.6.28-17-generic/build SUBDIRS=/usr/src/apps/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'   CC [M]  /usr/src/apps/PF_RING/kernel/pf_ring.o /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1 make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic' make: *** [all] Error 2 I poked around line 2194 and 2196 and they both referenced ethtool.  I added this to the end of the include section: (about line 75) #include <linux/ethtool.h> And now it compiles. I'm still a goodly distance from actually using pf_ring compiled tcpdump/ntop but at least I have a kernel module. I hope this helps someone! Paul _______________________________________________ Ntop mailing list Ntop [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop"]http://listgateway.unipi.it/mailman/listinfo/ntop


sergiocharpinel at gmail

Feb 2, 2010, 5:06 AM

Post #4 of 7 (663 views)
Permalink
Re: PF_RING compiling kernel module error [In reply to]

Thanks Luka, but same error.

Checked out revision 4117.
debian:/usr/src# cd PF_RING/
debian:/usr/src/PF_RING# cd kernel/
debian:/usr/src/PF_RING/kernel# make
make -C /lib/modules/2.6.26-2-686/build
SUBDIRS=/usr/src/PF_RING/kernel
EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4117\""' modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-686'
CC [M] /usr/src/PF_RING/kernel/pf_ring.o
/usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’:
/usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has
no member named ‘real_num_tx_queues’
make[2]: *** [/usr/src/PF_RING/kernel/pf_ring.o] Error 1
make[1]: *** [_module_/usr/src/PF_RING/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-686'
make: *** [all] Error 2


2010/2/2 Luca Deri <deri [at] ntop>:
> Sergio
> please resync and try again
>
> Luca
>
> On 02/02/2010 01:52 PM, Sergio Charpinel Jr. wrote:
>
> Hi,
>
> I'm getting compiling error in Debian lenny kernel 2.6.26
>
> /usr/src/PF_RING/kernel# make
> make -C /lib/modules/2.6.26-2-686/build
> SUBDIRS=/usr/src/PF_RING/kernel
> EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4116\""' modules
> make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686'
> CC [M] /usr/src/PF_RING/kernel/pf_ring.o
> /usr/src/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
> /usr/src/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer
> to incomplete type
> /usr/src/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer
> to incomplete type
> /usr/src/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer
> to incomplete type
> /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’:
> /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has
> no member named ‘real_num_tx_queues’
> make[2]: ** [/usr/src/PF_RING/kernel/pf_ring.o] Erro 1
> make[1]: ** [_module_/usr/src/PF_RING/kernel] Erro 2
> make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686'
> make: ** [all] Erro 2
>
> Is there someone using PF_RING with debian lenny kernel?
>
> Thanks
>
> 2010/1/30 Paul Wozney <paul [at] wozney>:
>
>
> Hello NTOP list,
> I'm not a programmer, but I managed to stumble upon what appears to be a
> missing header include in pf_ring.c.
> I pulled the latest SVN and it was failing to compile the kernel module,
> throwing this error:
>
> $ make
> make -C /lib/modules/2.6.28-17-generic/build
> SUBDIRS=/usr/src/apps/PF_RING/kernel
> EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'
>   CC [M]  /usr/src/apps/PF_RING/kernel/pf_ring.o
> /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to
> incomplete type
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to
> incomplete type
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to
> incomplete type
> make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1
> make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic'
> make: *** [all] Error 2
>
> I poked around line 2194 and 2196 and they both referenced ethtool.  I added
> this to the end of the include section: (about line 75)
>
> #include <linux/ethtool.h>
>
> And now it compiles.
> I'm still a goodly distance from actually using pf_ring compiled
> tcpdump/ntop but at least I have a kernel module.
> I hope this helps someone!
> Paul
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>
>
>
>
>
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>



--
Sergio Roberto Charpinel Jr.
_______________________________________________
Ntop mailing list
Ntop [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop


deri at ntop

Feb 2, 2010, 5:24 AM

Post #5 of 7 (648 views)
Permalink
Re: PF_RING compiling kernel module error [In reply to]

Try again please

Luca

On 02/02/2010 02:06 PM, Sergio Charpinel Jr. wrote:
Thanks Luka, but same error. Checked out revision 4117. debian:/usr/src# cd PF_RING/ debian:/usr/src/PF_RING# cd kernel/ debian:/usr/src/PF_RING/kernel# make make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/usr/src/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4117\""' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-686' CC [M] /usr/src/PF_RING/kernel/pf_ring.o /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’: /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has no member named ‘real_num_tx_queues’ make[2]: *** [/usr/src/PF_RING/kernel/pf_ring.o] Error 1 make[1]: *** [_module_/usr/src/PF_RING/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-686' make: *** [all] Error 2 2010/2/2 Luca Deri <deri [at] ntop>:
Sergio please resync and try again Luca On 02/02/2010 01:52 PM, Sergio Charpinel Jr. wrote: Hi, I'm getting compiling error in Debian lenny kernel 2.6.26 /usr/src/PF_RING/kernel# make make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/usr/src/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4116\""' modules make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686' CC [M] /usr/src/PF_RING/kernel/pf_ring.o /usr/src/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’: /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has no member named ‘real_num_tx_queues’ make[2]: ** [/usr/src/PF_RING/kernel/pf_ring.o] Erro 1 make[1]: ** [_module_/usr/src/PF_RING/kernel] Erro 2 make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686' make: ** [all] Erro 2 Is there someone using PF_RING with debian lenny kernel? Thanks 2010/1/30 Paul Wozney <paul [at] wozney>: Hello NTOP list, I'm not a programmer, but I managed to stumble upon what appears to be a missing header include in pf_ring.c. I pulled the latest SVN and it was failing to compile the kernel module, throwing this error: $ make make -C /lib/modules/2.6.28-17-generic/build SUBDIRS=/usr/src/apps/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'   CC [M]  /usr/src/apps/PF_RING/kernel/pf_ring.o /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1 make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic' make: *** [all] Error 2 I poked around line 2194 and 2196 and they both referenced ethtool.  I added this to the end of the include section: (about line 75) #include <linux/ethtool.h> And now it compiles. I'm still a goodly distance from actually using pf_ring compiled tcpdump/ntop but at least I have a kernel module. I hope this helps someone! Paul _______________________________________________ Ntop mailing list Ntop [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop"]http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list Ntop [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop"]http://listgateway.unipi.it/mailman/listinfo/ntop


sergiocharpinel at gmail

Feb 2, 2010, 5:31 AM

Post #6 of 7 (645 views)
Permalink
Re: PF_RING compiling kernel module error [In reply to]

OK, it worked Luca.
Do you recommend to use kernel >= 2.6.31 ?

I can do same tests here with both kernels.

Thanks.

2010/2/2 Luca Deri <deri [at] ntop>:
> Try again please
>
> Luca
>
> On 02/02/2010 02:06 PM, Sergio Charpinel Jr. wrote:
>
> Thanks Luka, but same error.
>
> Checked out revision 4117.
> debian:/usr/src# cd PF_RING/
> debian:/usr/src/PF_RING# cd kernel/
> debian:/usr/src/PF_RING/kernel# make
> make -C /lib/modules/2.6.26-2-686/build
> SUBDIRS=/usr/src/PF_RING/kernel
> EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4117\""' modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-686'
> CC [M] /usr/src/PF_RING/kernel/pf_ring.o
> /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’:
> /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has
> no member named ‘real_num_tx_queues’
> make[2]: *** [/usr/src/PF_RING/kernel/pf_ring.o] Error 1
> make[1]: *** [_module_/usr/src/PF_RING/kernel] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-686'
> make: *** [all] Error 2
>
>
> 2010/2/2 Luca Deri <deri [at] ntop>:
>
>
> Sergio
> please resync and try again
>
> Luca
>
> On 02/02/2010 01:52 PM, Sergio Charpinel Jr. wrote:
>
> Hi,
>
> I'm getting compiling error in Debian lenny kernel 2.6.26
>
> /usr/src/PF_RING/kernel# make
> make -C /lib/modules/2.6.26-2-686/build
> SUBDIRS=/usr/src/PF_RING/kernel
> EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4116\""' modules
> make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686'
> CC [M] /usr/src/PF_RING/kernel/pf_ring.o
> /usr/src/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
> /usr/src/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer
> to incomplete type
> /usr/src/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer
> to incomplete type
> /usr/src/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer
> to incomplete type
> /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’:
> /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has
> no member named ‘real_num_tx_queues’
> make[2]: ** [/usr/src/PF_RING/kernel/pf_ring.o] Erro 1
> make[1]: ** [_module_/usr/src/PF_RING/kernel] Erro 2
> make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686'
> make: ** [all] Erro 2
>
> Is there someone using PF_RING with debian lenny kernel?
>
> Thanks
>
> 2010/1/30 Paul Wozney <paul [at] wozney>:
>
>
> Hello NTOP list,
> I'm not a programmer, but I managed to stumble upon what appears to be a
> missing header include in pf_ring.c.
> I pulled the latest SVN and it was failing to compile the kernel module,
> throwing this error:
>
> $ make
> make -C /lib/modules/2.6.28-17-generic/build
> SUBDIRS=/usr/src/apps/PF_RING/kernel
> EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'
>   CC [M]  /usr/src/apps/PF_RING/kernel/pf_ring.o
> /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’:
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to
> incomplete type
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to
> incomplete type
> /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to
> incomplete type
> make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1
> make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic'
> make: *** [all] Error 2
>
> I poked around line 2194 and 2196 and they both referenced ethtool.  I added
> this to the end of the include section: (about line 75)
>
> #include <linux/ethtool.h>
>
> And now it compiles.
> I'm still a goodly distance from actually using pf_ring compiled
> tcpdump/ntop but at least I have a kernel module.
> I hope this helps someone!
> Paul
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>
>
>
>
>
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>
>
>
>
>
> _______________________________________________
> Ntop mailing list
> Ntop [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>



--
Sergio Roberto Charpinel Jr.
_______________________________________________
Ntop mailing list
Ntop [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop


deri at ntop

Feb 2, 2010, 5:48 AM

Post #7 of 7 (657 views)
Permalink
Re: PF_RING compiling kernel module error [In reply to]

On 02/02/2010 02:31 PM, Sergio Charpinel Jr. wrote:
OK, it worked Luca. Do you recommend to use kernel >= 2.6.31 ? I can do same tests here with both kernels.

I'm adding code for setting filtering rules in hardware, when the hw allows that. So you don't have to upgrade now that this work is in progress, but later on if you like that feature you need to. However I appreciate bug reports so I can fix bugs on not-so-recent kernels

Luca

Thanks. 2010/2/2 Luca Deri <deri [at] ntop>:
Try again please Luca On 02/02/2010 02:06 PM, Sergio Charpinel Jr. wrote: Thanks Luka, but same error. Checked out revision 4117. debian:/usr/src# cd PF_RING/ debian:/usr/src/PF_RING# cd kernel/ debian:/usr/src/PF_RING/kernel# make make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/usr/src/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4117\""' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-686' CC [M] /usr/src/PF_RING/kernel/pf_ring.o /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’: /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has no member named ‘real_num_tx_queues’ make[2]: *** [/usr/src/PF_RING/kernel/pf_ring.o] Error 1 make[1]: *** [_module_/usr/src/PF_RING/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-686' make: *** [all] Error 2 2010/2/2 Luca Deri <deri [at] ntop>: Sergio please resync and try again Luca On 02/02/2010 01:52 PM, Sergio Charpinel Jr. wrote: Hi, I'm getting compiling error in Debian lenny kernel 2.6.26 /usr/src/PF_RING/kernel# make make -C /lib/modules/2.6.26-2-686/build SUBDIRS=/usr/src/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/PF_RING/kernel -DSVN_REV="\"4116\""' modules make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686' CC [M] /usr/src/PF_RING/kernel/pf_ring.o /usr/src/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type /usr/src/PF_RING/kernel/pf_ring.c: In function ‘packet_ring_bind’: /usr/src/PF_RING/kernel/pf_ring.c:2720: error: ‘struct net_device’ has no member named ‘real_num_tx_queues’ make[2]: ** [/usr/src/PF_RING/kernel/pf_ring.o] Erro 1 make[1]: ** [_module_/usr/src/PF_RING/kernel] Erro 2 make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686' make: ** [all] Erro 2 Is there someone using PF_RING with debian lenny kernel? Thanks 2010/1/30 Paul Wozney <paul [at] wozney>: Hello NTOP list, I'm not a programmer, but I managed to stumble upon what appears to be a missing header include in pf_ring.c. I pulled the latest SVN and it was failing to compile the kernel module, throwing this error: $ make make -C /lib/modules/2.6.28-17-generic/build SUBDIRS=/usr/src/apps/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic'   CC [M]  /usr/src/apps/PF_RING/kernel/pf_ring.o /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1 make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic' make: *** [all] Error 2 I poked around line 2194 and 2196 and they both referenced ethtool.  I added this to the end of the include section: (about line 75) #include <linux/ethtool.h> And now it compiles. I'm still a goodly distance from actually using pf_ring compiled tcpdump/ntop but at least I have a kernel module. I hope this helps someone! Paul _______________________________________________ Ntop mailing list Ntop [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop"]http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list Ntop [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop"]http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list Ntop [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop"]http://listgateway.unipi.it/mailman/listinfo/ntop

NTop users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.