Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885769 - net-dns/knot-3.2.1-r1 - libknot/.../eth.c: error: implicit declaration of function bpf_get_link_xdp_info [-Werror=implicit-functio
Summary: net-dns/knot-3.2.1-r1 - libknot/.../eth.c: error: implicit declaration of fun...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pierre-Olivier Mercier
URL:
Whiteboard:
Keywords:
: 911711 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-13 11:00 UTC by Toralf Förster
Modified: 2023-10-17 17:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.73 KB, text/plain)
2022-12-13 11:00 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,69.43 KB, application/x-bzip)
2022-12-13 11:00 UTC, Toralf Förster
Details
environment (environment,83.66 KB, text/plain)
2022-12-13 11:00 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,42.71 KB, application/x-bzip)
2022-12-13 11:00 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,15.32 KB, application/x-bzip)
2022-12-13 11:00 UTC, Toralf Förster
Details
net-dns:knot-3.2.1-r1:20221213-104532.log (net-dns:knot-3.2.1-r1:20221213-104532.log,82.53 KB, text/plain)
2022-12-13 11:00 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,26.41 KB, application/x-bzip)
2022-12-13 11:00 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,17.71 KB, text/plain)
2023-10-17 17:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,57.66 KB, text/plain)
2023-10-17 17:22 UTC, Toralf Förster
Details
environment (environment,83.15 KB, text/plain)
2023-10-17 17:22 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-10-17 17:22 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.51 KB, application/x-xz)
2023-10-17 17:22 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,13.78 KB, application/x-xz)
2023-10-17 17:22 UTC, Toralf Förster
Details
net-dns:knot-3.2.9:20231011-104303.log (net-dns:knot-3.2.9:20231011-104303.log,242.85 KB, text/plain)
2023-10-17 17:22 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,28.80 KB, application/x-xz)
2023-10-17 17:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-13 11:00:12 UTC
libknot/xdp/eth.c: In function knot_eth_xdp_mode:
libknot/xdp/eth.c:217:30: error: storage size of info isnt known
  217 |         struct xdp_link_info info;
      |                              ^~~~
make[3]: *** [Makefile:5593: libknot/xdp/la-bpf-user.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libknot/xdp/eth.c:218:19: error: implicit declaration of function bpf_get_link_xdp_info [-Werror=implicit-function-declaration]
  218 |         int ret = bpf_get_link_xdp_info(if_index, &info, sizeof(info), 0);
      |                   ^~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20221210-210004

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
/usr/lib/llvm/15
15.0.6
Python 3.10.9
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.2 *

  HEAD of ::gentoo
commit 5db9e294831c31ef205e7c58f8056e46b8ac9b6d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 13 09:46:50 2022 +0000

    2022-12-13 09:46:49 UTC

emerge -qpvO net-dns/knot
[ebuild  N    ] net-dns/knot-3.2.1-r1  USE="cookies dnsproxy doh libidn2 noudp onlinesign queryacl rrl stats synthrecord systemd utils whoami xdp -caps -dnstap -doc -fastparser -geoip -idn"
Comment 1 Toralf Förster gentoo-dev 2022-12-13 11:00:13 UTC
Created attachment 842437 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-13 11:00:14 UTC
Created attachment 842439 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-12-13 11:00:15 UTC
Created attachment 842441 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-13 11:00:17 UTC
Created attachment 842443 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-13 11:00:18 UTC
Created attachment 842445 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-13 11:00:19 UTC
Created attachment 842447 [details]
net-dns:knot-3.2.1-r1:20221213-104532.log
Comment 7 Toralf Förster gentoo-dev 2022-12-13 11:00:20 UTC
Created attachment 842449 [details]
temp.tar.bz2
Comment 8 Agostino Sarubbo gentoo-dev 2023-08-04 15:11:38 UTC
*** Bug 911711 has been marked as a duplicate of this bug. ***
Comment 9 listout 2023-10-17 17:09:12 UTC
Can we please close this. net-dns/knot-3.2.9 seems to build fine on musl clang, also net-dns/knot-3.2.1-r1 is no longer in tree.
Comment 10 Toralf Förster gentoo-dev 2023-10-17 17:21:03 UTC
(In reply to listout from comment #9)
> Can we please close this. net-dns/knot-3.2.9 seems to build fine on musl
> clang, also net-dns/knot-3.2.1-r1 is no longer in tree.


the tinderbox reproduced this with net-dns/knot-3.2.9
Comment 11 Toralf Förster gentoo-dev 2023-10-17 17:21:57 UTC
appeared recently at the tinderbox image 23.0_desktop_plasma_systemd-20231010-081424
Comment 12 Toralf Förster gentoo-dev 2023-10-17 17:21:58 UTC
too long lines were shrinked:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../src/contrib/libngtcp2 -I../src/contrib/libngtcp2/ngtcp2/lib -include ../src/config.h -DCONFIG_DIR=\"/etc/knot\" -DSTORAGE_DIR=\"/var/lib/knot\" -DRUN_DIR=\"/var/run/knot\" -DMODULE_DIR=\"\" -DMODULE_INSTDIR=\"/usr/lib64/knot/modules
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../src/contrib/libngtcp2 -I../src/contrib/libngtcp2/ngtcp2/lib -include ../src/config.h -DCONFIG_DIR=\"/etc/knot\" -DSTORAGE_DIR=\"/var/lib/knot\" -DRUN_DIR=\"/var/run/knot\" -DMODULE_DIR=\"\" -DMODULE_INSTDIR=\"/usr/lib64/knot/modules
libknot/xdp/eth.c: In function knot_eth_xdp_mode:
libknot/xdp/eth.c:296:30: error: storage size of info isnt known
  296 |         struct xdp_link_info info;
      |                              ^~~~
libknot/xdp/eth.c:297:19: error: implicit declaration of function bpf_get_link_xdp_info [-Werror=implicit-function-declaration]
  297 |         int ret = bpf_get_link_xdp_info(if_index, &info, sizeof(info), 0);
      |                   ^~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20231010-081424

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.2
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit ea2798c0423554f3c0544b8da23341d10baea2c0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Oct 11 09:31:57 2023 +0000

    2023-10-11 09:31:57 UTC

emerge -qpvO net-dns/knot
[ebuild  N    ] net-dns/knot-3.2.9  USE="caps dnsproxy dnstap doh geoip libidn2 queryacl quic rrl stats synthrecord systemd xdp -cookies -doc -fastparser -idn -noudp -onlinesign -utils -whoami"
Comment 13 Toralf Förster gentoo-dev 2023-10-17 17:21:59 UTC
Created attachment 873051 [details]
emerge-info.txt
Comment 14 Toralf Förster gentoo-dev 2023-10-17 17:22:00 UTC
Created attachment 873052 [details]
emerge-history.txt
Comment 15 Toralf Förster gentoo-dev 2023-10-17 17:22:02 UTC
Created attachment 873053 [details]
environment
Comment 16 Toralf Förster gentoo-dev 2023-10-17 17:22:02 UTC
Created attachment 873054 [details]
etc.clang.tar.xz
Comment 17 Toralf Förster gentoo-dev 2023-10-17 17:22:03 UTC
Created attachment 873055 [details]
etc.portage.tar.xz
Comment 18 Toralf Förster gentoo-dev 2023-10-17 17:22:04 UTC
Created attachment 873056 [details]
logs.tar.xz
Comment 19 Toralf Förster gentoo-dev 2023-10-17 17:22:05 UTC
Created attachment 873057 [details]
net-dns:knot-3.2.9:20231011-104303.log
Comment 20 Toralf Förster gentoo-dev 2023-10-17 17:22:07 UTC
Created attachment 873058 [details]
temp.tar.xz