From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 49] Compile error kni_net.c unknown field ‘ndo_change_mtu’
Date: Fri, 18 May 2018 16:17:15 +0000 [thread overview]
Message-ID: <bug-49-3@http.dpdk.org/tracker/> (raw)
https://dpdk.org/tracker/show_bug.cgi?id=49
Bug ID: 49
Summary: Compile error kni_net.c unknown field ‘ndo_change_mtu’
Product: DPDK
Version: 18.02
Hardware: All
OS: All
Status: CONFIRMED
Severity: major
Priority: Normal
Component: mk
Assignee: dev@dpdk.org
Reporter: jingshaochen@gmail.com
Target Milestone: ---
Try to build DPDK in CentOS 7. Both 18.02.1 and 17.11.2 have the same error.
uname -a
Linux cse-kvm 3.10.0-862.2.3.el7.x86_64 #1 SMP Wed May 9 18:05:47 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
make config T=i686-native-linuxapp-gcc
make
== Build lib
== Build lib/librte_compat
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/eal
== Build lib/librte_eal/linuxapp/igb_uio
Building modules, stage 2.
MODPOST 1 modules
== Build lib/librte_eal/linuxapp/kni
CC [M]
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.o
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: unknown field ‘ndo_change_mtu’ specified in initializer
.ndo_change_mtu = kni_net_change_mtu,
^
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: missing braces around initializer [-Werror=missing-braces]
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: (near initialization for ‘kni_net_netdev_ops.<anonymous>’)
[-Werror=missing-braces]
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: initialization from incompatible pointer type [-Werror]
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: (near initialization for
‘kni_net_netdev_ops.<anonymous>.ndo_select_queue’) [-Werror]
cc1: all warnings being treated as errors
make[8]: ***
[/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.o]
Error 1
make[7]: ***
[_module_/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni]
Error 2
make[6]: *** [sub-make] Error 2
make[5]: *** [rte_kni.ko] Error 2
make[4]: *** [kni] Error 2
make[3]: *** [linuxapp] Error 2
make[2]: *** [librte_eal] Error 2
make[1]: *** [lib] Error 2
make: *** [all] Error 2
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2018-05-18 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-18 16:17 bugzilla [this message]
2018-05-31 4:53 ` [Bug 49] Compile error kni_net.c unknown field ‘ndo_change_mtu’ bugzilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-49-3@http.dpdk.org/tracker/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.