[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEnQRZC6pJPmG0WAKRPx34AGTDBAaTkXif4Ufx-SpwYsPP5wvA@mail.gmail.com>
Date: Thu, 21 Mar 2013 14:42:00 +0200
From: Daniel Baluta <dbaluta@...acom.com>
To: "devendra.aaru" <devendra.aaru@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: tools/selftests: psock_fanout compiler errors
On Thu, Mar 21, 2013 at 2:37 PM, devendra.aaru <devendra.aaru@...il.com> wrote:
> Hello,
>
> when i do make -C tools/testing/selftests/.
>
> I get
>
> gcc -Wall -I../../../../usr/include/ -o psock_fanout psock_fanout.c
> psock_fanout.c: In function ‘test_control_single’:
> psock_fanout.c:239:23: error: ‘PACKET_FANOUT_ROLLOVER’ undeclared
> (first use in this function)
> psock_fanout.c:239:23: note: each undeclared identifier is reported
> only once for each function it appears in
> psock_fanout.c:240:11: error: ‘PACKET_FANOUT_FLAG_ROLLOVER’ undeclared
> (first use in this function)
> psock_fanout.c: In function ‘test_control_group’:
> psock_fanout.c:264:11: error: ‘PACKET_FANOUT_FLAG_ROLLOVER’ undeclared
> (first use in this function)
> psock_fanout.c: In function ‘main’:
> psock_fanout.c:368:44: error: ‘PACKET_FANOUT_FLAG_ROLLOVER’ undeclared
> (first use in this function)
> psock_fanout.c:372:23: error: ‘PACKET_FANOUT_ROLLOVER’ undeclared
> (first use in this function)
> make[1]: *** [psock_fanout] Error 1
>
> i have the linux/if_packet.h file in /usr/include/ but i couldn't see
> PACKET_FANOUT_ROLLOVER flag in that header.
>
> I have a fedora 18 userspace
>
> uname -a if you need it:
>
> Linux localhost.localdomain 3.6.10-4.fc18.x86_64 #1 SMP Tue Dec 11
> 18:01:27 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> and the recent git head points to id in net-next is
> e76d120b68d2e0f159ba999b1210920a5a0ed53d.
>
> do i need to recompile the kernel and install kernel headers (i guess
> kernel headers doesn't matter in this point)?
Well :), check this [1].
thanks,
Daniel.
[1] http://www.spinics.net/lists/netdev/msg229812.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists