[Ntop-misc] Compiling TNAPI/ixgbe fails
Chris Hellkvist
chris.hellkvist at googlemail.com
Thu Apr 26 17:05:24 CEST 2012
Hi Chris,
Am 26. April 2012 16:46 schrieb Chris Wakelin <c.d.wakelin at reading.ac.uk>:
> You'll need the PF_RING source tree to be in the right place for that
> path to work. You could just copy the pf_ring.h over and remove the path
> in ixgbe.h (I do this when compiling with dkms); otherwise try moving
> the ixgbe-3.6.7-TNAPIv2 source tree to say PF_RING/drivers/TNAPI/ (with
> PF_RING/, without version number, being the source tree for PF_RING).
thanks for this, seems like the hard-coded path n ixgbe.h is a bit weird.
I moved pf_ring.h into the src directory and changed ixgbe.h to point
to the new location . Now it's able to include pf_ring.h, but still
fails:
chris at isrt-34-ta:~/ixgbe-3.6.7-TNAPIv2/src$ make
make -C /lib/modules/3.0.0-17-generic/build
SUBDIRS=/home/dth/PF_RING/drivers/TNAPI/src modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-17-generic'
CC [M] /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o
In file included from /home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.c:146:0:
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c: In function
‘tnapi_ixgbe_clean_rx_irq’:
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: warning:
passing argument 4 of ‘hook->ring_handler’ makes pointer from integer
without a cast [enabled by default]
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: note:
expected ‘u_int8_t *’ but argument is of type ‘u8’
/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_tnapi.c:500:5: error: too
few arguments to function ‘hook->ring_handler’
make[2]: *** [/home/dth/PF_RING/drivers/TNAPI/src/ixgbe_main.o] Error 1
make[1]: *** [_module_/home/dth/PF_RING/drivers/TNAPI/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-17-generic'
make: *** [default] Error 2
Maybe a point for Luca ;-).
Thanks,
Chris
More information about the Ntop-misc
mailing list