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 <[email protected]>:
> 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
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>



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

Reply via email to