Mailing List Archive

Problem compiling PF_RING on Fedora 22 w/kernel 4.4.14
I'm trying to compile PF_RING on a Fedora 22 system that has kernel 4.4.14. I
downloaded the PF_RING code as of today.

This is the error I get:

$ make
make -C /lib/modules/4.4.14-200.fc22.x86_64/build
SUBDIRS=/home/iglesias/pf-ring/PF_RING/kernel
EXTRA_CFLAGS='-I/home/iglesias/pf-ring/PF_RING/kernel
-DGIT_REV="\"dev:e73ab18c1b49bbeb3a5f292af63f641fe2f7a64f\""' modules
make[1]: Entering directory '/usr/src/kernels/4.4.14-200.fc22.x86_64'
CC [M] /home/iglesias/pf-ring/PF_RING/kernel/pf_ring.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "sk_attach_filter" [/home/iglesias/pf-ring/PF_RING/kernel/pf_ring.ko]
undefined!
WARNING: "sk_detach_filter" [/home/iglesias/pf-ring/PF_RING/kernel/pf_ring.ko]
undefined!
CC /home/iglesias/pf-ring/PF_RING/kernel/pf_ring.mod.o
LD [M] /home/iglesias/pf-ring/PF_RING/kernel/pf_ring.ko
make[1]: Leaving directory '/usr/src/kernels/4.4.14-200.fc22.x86_64'


--
Mike Iglesias Email: iglesias@uci.edu
University of California, Irvine phone: 949-824-6926
Office of Information Technology FAX: 949-824-2270

_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: Problem compiling PF_RING on Fedora 22 w/kernel 4.4.14 [ In reply to ]
Hi Mike
this kernel is not supported atm as we do not have a similar system in our lab,
are you able to provide access to this system or send us a patch?

Thank you
Alfredo

> On 08 Aug 2016, at 22:55, Mike Iglesias <iglesias@uci.edu> wrote:
>
> I'm trying to compile PF_RING on a Fedora 22 system that has kernel 4.4.14. I
> downloaded the PF_RING code as of today.
>
> This is the error I get:
>
> $ make
> make -C /lib/modules/4.4.14-200.fc22.x86_64/build
> SUBDIRS=/home/iglesias/pf-ring/PF_RING/kernel
> EXTRA_CFLAGS='-I/home/iglesias/pf-ring/PF_RING/kernel
> -DGIT_REV="\"dev:e73ab18c1b49bbeb3a5f292af63f641fe2f7a64f\""' modules
> make[1]: Entering directory '/usr/src/kernels/4.4.14-200.fc22.x86_64'
> CC [M] /home/iglesias/pf-ring/PF_RING/kernel/pf_ring.o
> Building modules, stage 2.
> MODPOST 1 modules
> WARNING: "sk_attach_filter" [/home/iglesias/pf-ring/PF_RING/kernel/pf_ring.ko]
> undefined!
> WARNING: "sk_detach_filter" [/home/iglesias/pf-ring/PF_RING/kernel/pf_ring.ko]
> undefined!
> CC /home/iglesias/pf-ring/PF_RING/kernel/pf_ring.mod.o
> LD [M] /home/iglesias/pf-ring/PF_RING/kernel/pf_ring.ko
> make[1]: Leaving directory '/usr/src/kernels/4.4.14-200.fc22.x86_64'
>
>
> --
> Mike Iglesias Email: iglesias@uci.edu
> University of California, Irvine phone: 949-824-6926
> Office of Information Technology FAX: 949-824-2270
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: Problem compiling PF_RING on Fedora 22 w/kernel 4.4.14 [ In reply to ]
On 08/09/2016 01:02 AM, Alfredo Cardigliano wrote:
> Hi Mike
> this kernel is not supported atm as we do not have a similar system in our lab,
> are you able to provide access to this system or send us a patch?

I tried it on a Fedora 23 system (kernel 4.6.4) and pf_ring compiles there,
but the ixgbe driver does not.

CC [M]
/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.o
/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.c:
In function ‘ixgbe_ptp_start_cyclecounter’:
/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.c:1085:12:
error: implicit declaration of function ‘CLOCKSOURCE_MASK’
[-Werror=implicit-function-declaration]
cc.mask = CLOCKSOURCE_MASK(64);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target
'/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.o'
failed
make[2]: ***
[/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.o]
Error 1
Makefile:1433: recipe for target
'_module_/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src'
failed
make[1]: ***
[_module_/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src]
Error 2
make[1]: Leaving directory '/usr/src/kernels/4.6.4-201.fc23.x86_64'
Makefile:322: recipe for target 'default' failed
make: *** [default] Error 2

I'll upgrade to Fedora 23 so I can use pf_ring without the driver for now.


--
Mike Iglesias Email: iglesias@uci.edu
University of California, Irvine phone: 949-824-6926
Office of Information Technology FAX: 949-824-2270
Re: Problem compiling PF_RING on Fedora 22 w/kernel 4.4.14 [ In reply to ]
Hi Mike
I patched the ixgbe driver, it now supports latest kernels, I think it’s worth giving it a try.

Regards
Alfredo

> On 09 Aug 2016, at 17:37, Mike Iglesias <iglesias@uci.edu> wrote:
>
> On 08/09/2016 01:02 AM, Alfredo Cardigliano wrote:
>> Hi Mike
>> this kernel is not supported atm as we do not have a similar system in our lab,
>> are you able to provide access to this system or send us a patch?
>
> I tried it on a Fedora 23 system (kernel 4.6.4) and pf_ring compiles there,
> but the ixgbe driver does not.
>
> CC [M]
> /local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.o
> /local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.c:
> In function ‘ixgbe_ptp_start_cyclecounter’:
> /local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.c:1085:12:
> error: implicit declaration of function ‘CLOCKSOURCE_MASK’
> [-Werror=implicit-function-declaration]
> cc.mask = CLOCKSOURCE_MASK(64);
> ^
> cc1: some warnings being treated as errors
> scripts/Makefile.build:291: recipe for target
> '/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.o'
> failed
> make[2]: ***
> [/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src/ixgbe_ptp.o]
> Error 1
> Makefile:1433: recipe for target
> '_module_/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src'
> failed
> make[1]: ***
> [_module_/local/iglesias/pf_ring/PF_RING/drivers/intel/ixgbe/ixgbe-4.1.5-zc/src]
> Error 2
> make[1]: Leaving directory '/usr/src/kernels/4.6.4-201.fc23.x86_64'
> Makefile:322: recipe for target 'default' failed
> make: *** [default] Error 2
>
> I'll upgrade to Fedora 23 so I can use pf_ring without the driver for now.
>
>
> --
> Mike Iglesias Email: iglesias@uci.edu
> University of California, Irvine phone: 949-824-6926
> Office of Information Technology FAX: 949-824-2270
>
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: Problem compiling PF_RING on Fedora 22 w/kernel 4.4.14 [ In reply to ]
On 08/10/2016 03:28 AM, Alfredo Cardigliano wrote:
> Hi Mike
> I patched the ixgbe driver, it now supports latest kernels, I think it’s worth giving it a try.

I tried it with a new copy of the sources that I downloaded today, and it
still had the same problem compiling the ixgbe driver. I made this change to
kcompat.h and it compiled ok. I may not be able to test it until sometime
next week though.

*** kcompat.h.dist 2016-08-19 09:14:20.005245702 -0700
--- kcompat.h 2016-08-19 09:14:20.006245725 -0700
***************
*** 4883,4888 ****
--- 4883,4892 ----
atomic_inc(&page->_count);
}

+ #else
+ #ifndef NO_PTP_SUPPORT
+ #include <linux/clocksource.h>
+ #endif
#endif /* 4.6.0 */

#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0))


Mike