Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867757 - net-analyzer/suricata-6.0.6-r1:0/6 - util-ebpf.c: error: implicit declaration of function bpf_program_set_socket_filter
Summary: net-analyzer/suricata-6.0.6-r1:0/6 - util-ebpf.c: error: implicit declaration...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-31 19:10 UTC by Toralf Förster
Modified: 2022-09-01 12:27 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.71 KB, text/plain)
2022-08-31 19:10 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,74.20 KB, application/x-bzip)
2022-08-31 19:10 UTC, Toralf Förster
Details
environment (environment,177.98 KB, text/plain)
2022-08-31 19:10 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.19 KB, application/x-bzip)
2022-08-31 19:10 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,20.78 KB, application/x-bzip)
2022-08-31 19:10 UTC, Toralf Förster
Details
net-analyzer:suricata-6.0.6-r1:20220831-175223.log.bz2 (net-analyzer:suricata-6.0.6-r1:20220831-175223.log.bz2,11.37 KB, application/x-bzip)
2022-08-31 19:10 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,52.18 KB, application/x-bzip)
2022-08-31 19:10 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-08-31 19:10:19 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/hs    -I/usr/lib64/htp/include  -I/usr/include/nspr  -I/usr/include/nss -I/usr/include/nspr   -Wextra -Werror-implicit-function-declaration    -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declaratio
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/hs    -I/usr/lib64/htp/include  -I/usr/include/nspr  -I/usr/include/nss -I/usr/include/nspr   -Wextra -Werror-implicit-function-declaration    -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declaratio
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/hs    -I/usr/lib64/htp/include  -I/usr/include/nspr  -I/usr/include/nss -I/usr/include/nspr   -Wextra -Werror-implicit-function-declaration    -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declaratio
util-ebpf.c: In function EBPFLoadFile:
util-ebpf.c:375:17: error: implicit declaration of function bpf_program__set_socket_filter; did you mean bpf_program__set_log_level? [-Werror=implicit-function-declaration]
  375 |                 bpf_program__set_socket_filter(bpfprog);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j4-20220827-050006

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.0
 [2] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.6
Python 3.10.6
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.62.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.21.0 [icedtea-8]
2)	OpenJDK 11.0.15_p10 [openjdk-11]
*)	OpenJDK 17.0.3_p7 [openjdk-17]
4)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
5)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
6)	Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   openjdk-11 
  [3]   openjdk-17  system-vm
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit aef8423758d101b70b5860401c940bc84641e32e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 31 17:31:48 2022 +0000

    2022-08-31 17:31:47 UTC

emerge -qpvO net-analyzer/suricata
[ebuild  N    ] net-analyzer/suricata-6.0.6-r1  USE="af-packet bpf detection hyperscan lz4 nfqueue systemd verify-sig -control-socket (-cuda) -debug -geoip -hardened -lua -nflog -redis -test" LUA_SINGLE_TARGET="lua5-1 -luajit" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-08-31 19:10:20 UTC
Created attachment 802261 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-08-31 19:10:21 UTC
Created attachment 802264 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-08-31 19:10:23 UTC
Created attachment 802267 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-08-31 19:10:24 UTC
Created attachment 802270 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-08-31 19:10:25 UTC
Created attachment 802273 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-08-31 19:10:26 UTC
Created attachment 802276 [details]
net-analyzer:suricata-6.0.6-r1:20220831-175223.log.bz2
Comment 7 Toralf Förster gentoo-dev 2022-08-31 19:10:27 UTC
Created attachment 802279 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-09-01 12:27:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=748cdd7b6cc6c2c5b3fd4ab2796e12054b8d666a

commit 748cdd7b6cc6c2c5b3fd4ab2796e12054b8d666a
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-09-01 11:59:55 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-09-01 11:59:55 +0000

    net-analyzer/suricata: require <dev-libs/libbpf-1.0.0
    
    bpf_program__set_<TYPE>() APIs were deprecated since libbpf-0.8.0
    and have been removed before 1.0 release; see
    https://lore.kernel.org/bpf/Yrwhi2VWtxF+QJk6@boxer/T/
    
    Closes: https://bugs.gentoo.org/867757
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 net-analyzer/suricata/suricata-6.0.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)