luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.86k stars 537 forks source link

compile error by run make in LINUX directory #922

Open wchen8416 opened 1 year ago

wchen8416 commented 1 year ago

/netmap/LINUX/virtio_net.c/virtio_net_src.c:1403:19: error: initialization of ‘void ()(struct net_device , struct ethtool_ringparam , struct kernel_ethtool_ringparam , struct netlink_ext_ack )’ from incompatible pointer type ‘void ()(struct net_device , struct ethtool_ringparam )’ [-Werror=incompatible-pointer-types] 1403 | .get_ringparam = virtnet_get_ringparam, | ^~~~~

why? thanks for your help.

wchen8416 commented 1 year ago

[root@localhost LINUX]# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/10.3.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --without-cloog --enable-gnu-indirect-function --build=x86_64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --disable-bootstrap --with-tune=generic --with-arch_32=x86-64 --disable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.3.1 (GCC) [root@localhost LINUX]# [root@localhost LINUX]# uname -a Linux localhost.localdomain 5.10.0-136.31.0.107.oe2203sp1.x86_64 #1 SMP Thu May 11 10:59:16 CST 2023 x86_64 x86_64 x86_64 GNU/Linux [root@localhost LINUX]#

brvtalcake commented 1 year ago

I just ran into the same issue on :


        `:+ssssssssssssssssss+:`           ---------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 23.04 x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: Z690 UD 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.2.0-20-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 day, 18 hours, 15 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 3508 (dpkg), 25 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.2.15 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 44.1 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 12th Gen Intel i3-12100 (8) @ 5.500GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel Alder Lake-S GT1 [UHD Graphics 730] 
      -+sssssssssssssssssyyyssss+-         Memory: 6942MiB / 15752MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-. 

Configured with a regular ./configure.

Maybe the code downloaded from the Linux kernel is not up to date anymore (or something like that) ?

giuseppelettieri commented 1 year ago

The virtio_net driver doesn't build at the moment. If you don't need it you can disable it with

./configure --no-drivers=virtio_net.c
Emjayen commented 1 year ago

Is there any ETA on virtio_net being fixed?