Hi Jonas please update from svn (there are some fixes for those warnings) and let us know, it is working fine on my 3.4.9 kernel
Best Regards Alfredo On Sep 4, 2012, at 4:17 PM, Jonas Reetz <[email protected]> wrote: > Hey there, > > I got a problem on building pf_ring on my Debian Lenny with an 3.4.7 kernel > and an ARM based CPU. > > admin@xxx:/root/build/PF_RING/kernel$ make > make -C /lib/modules/3.4.7/build SUBDIRS=/root/build/PF_RING/kernel > EXTRA_CFLAGS='-I/root/build/PF_RING/kernel -DSVN_REV="\"5673\""' modules > make[1]: Entering directory `/media/usbhd-sdb1/kernel_source' > CC [M] /root/build/PF_RING/kernel/pf_ring.o > In file included from include/linux/tcp.h:211:0, > from include/linux/ipv6.h:221, > from /root/build/PF_RING/kernel/pf_ring.c:93: > include/net/sock.h: In function âskb_add_data_nocacheâ: > include/net/sock.h:1719:12: warning: pointer targets in passing argument 4 of > âskb_do_copy_data_nocacheâ differ in signedness [-Wpointer-sign] > include/net/sock.h:1693:19: note: expected âchar *â but argument is of type > âunsigned char *â > /root/build/PF_RING/kernel/pf_ring.c: In function âparse_pktâ: > /root/build/PF_RING/kernel/pf_ring.c:2162:3: warning: pointer targets in > passing argument 1 of âparse_raw_pktâ differ in signedness [-Wpointer-sign] > /root/build/PF_RING/kernel/pf_ring.c:1791:12: note: expected âchar *â but > argument is of type âu_char *â > /root/build/PF_RING/kernel/pf_ring.c: In function âbpf_filter_skbâ: > /root/build/PF_RING/kernel/pf_ring.c:3686:23: warning: variable âlenâ set but > not used [-Wunused-but-set-variable] > /root/build/PF_RING/kernel/pf_ring.c: In function âbuffer_ring_handlerâ: > /root/build/PF_RING/kernel/pf_ring.c:4492:42: warning: pointer targets in > assignment differ in signedness [-Wpointer-sign] > /root/build/PF_RING/kernel/pf_ring.c: In function âdna_cluster_removeâ: > /root/build/PF_RING/kernel/pf_ring.c:5250:9: error: implicit declaration of > function âatomic_dec_if_positiveâ [-Werror=implicit-function-declaration] > /root/build/PF_RING/kernel/pf_ring.c: In function âring_setsockoptâ: > /root/build/PF_RING/kernel/pf_ring.c:6723:7: warning: variable âvalâ set but > not used [-Wunused-but-set-variable] > /root/build/PF_RING/kernel/pf_ring.c: In function âring_getsockoptâ: > /root/build/PF_RING/kernel/pf_ring.c:7706:7: warning: pointer targets in > passing argument 4 of > âplugin_registration[(int)rule.plugin_action.plugin_id]->pfring_plugin_get_statsâ > differ in signedness [-Wpointer-sign] > /root/build/PF_RING/kernel/pf_ring.c:7706:7: note: expected âu_char *â but > argument is of type âchar *â > /root/build/PF_RING/kernel/pf_ring.c:7769:3: warning: pointer targets in > passing argument 4 of > âplugin_registration[(int)rule->rule.plugin_action.plugin_id]->pfring_plugin_get_statsâ > differ in signedness [-Wpointer-sign] > /root/build/PF_RING/kernel/pf_ring.c:7769:3: note: expected âu_char *â but > argument is of type âchar *â > cc1: some warnings being treated as errors > make[2]: *** [/root/build/PF_RING/kernel/pf_ring.o] Error 1 > make[1]: *** [_module_/root/build/PF_RING/kernel] Error 2 > make[1]: Leaving directory `/media/usbhd-sdb1/kernel_source' > make: *** [all] Error 2 > > Would be awesome if you got any suggestions on solving the problem. > > Best regards, > > Jonas Reetz > _______________________________________________ > Ntop-dev mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
