Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925011 - net-analyzer/suricata-7.0.2-r1 - util-host-info.c: error: passing argument 1 of pcre2_substring_list_free_8 from incompatible pointer type [-Wincompat
Summary: net-analyzer/suricata-7.0.2-r1 - util-host-info.c: error: passing argument 1 ...
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: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-02-19 20:07 UTC by Toralf Förster
Modified: 2024-02-28 21:46 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,21.94 KB, text/plain)
2024-02-19 20:07 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,86.61 KB, application/x-xz)
2024-02-19 20:07 UTC, Toralf Förster
Details
environment (environment,187.20 KB, text/plain)
2024-02-19 20:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2024-02-19 20:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.56 KB, application/x-xz)
2024-02-19 20:07 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,18.08 KB, application/x-xz)
2024-02-19 20:07 UTC, Toralf Förster
Details
net-analyzer:suricata-7.0.2-r1:20240218-233519.log.xz (net-analyzer:suricata-7.0.2-r1:20240218-233519.log.xz,14.45 KB, application/x-xz)
2024-02-19 20:07 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,89.39 KB, application/x-xz)
2024-02-19 20:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,55.93 KB, application/x-xz)
2024-02-19 20:07 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 2024-02-19 20:07:47 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/lib64/htp/include -D__SCFILENAME__=\"util-hashlist\"  -Wextra -Werror-implicit-function-declaration   -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-paramete
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/lib64/htp/include -D__SCFILENAME__=\"util-hash-lookup3\"  -Wextra -Werror-implicit-function-declaration   -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-para
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/lib64/htp/include -D__SCFILENAME__=\"util-hash-string\"  -Wextra -Werror-implicit-function-declaration   -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-param
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/lib64/htp/include -D__SCFILENAME__=\"util-host-info\"  -Wextra -Werror-implicit-function-declaration   -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-paramet
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/lib64/htp/include -D__SCFILENAME__=\"util-host-os-info\"  -Wextra -Werror-implicit-function-declaration   -I/usr/include -DLOCAL_STATE_DIR=\"/var\" -Wall -Wno-unused-para
util-host-info.c: In function SCKernelVersionIsAtLeast:
util-host-info.c:94:31: error: passing argument 1 of pcre2_substring_list_free_8 from incompatible pointer type [-Wincompatible-pointer-types]
   94 |     pcre2_substring_list_free((PCRE2_SPTR *)list);
      |                               ^~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20240210-221505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
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.6
Python 3.11.8
Available Rust versions:
  [1]   rust-bin-1.75.0
  [2]   rust-1.75.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.0 linux/amd64

  HEAD of ::gentoo
commit ebab19ea967ef5e783a0ef1c69977fb9210d110d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Feb 18 23:04:07 2024 +0000

    2024-02-18 23:04:07 UTC

emerge -qpvO net-analyzer/suricata
[ebuild  N    ] net-analyzer/suricata-7.0.2-r1  USE="af-packet detection nfqueue verify-sig -af-xdp -bpf -control-socket -cuda -debug -geoip -hardened -hyperscan -lua -lz4 -nflog -redis -systemd -test" LUA_SINGLE_TARGET="lua5-1 -luajit" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
Comment 1 Toralf Förster gentoo-dev 2024-02-19 20:07:48 UTC
Created attachment 885456 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-02-19 20:07:49 UTC
Created attachment 885457 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-02-19 20:07:51 UTC
Created attachment 885458 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-02-19 20:07:52 UTC
Created attachment 885459 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-02-19 20:07:53 UTC
Created attachment 885460 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-02-19 20:07:54 UTC
Created attachment 885461 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-02-19 20:07:55 UTC
Created attachment 885462 [details]
net-analyzer:suricata-7.0.2-r1:20240218-233519.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-02-19 20:07:56 UTC
Created attachment 885463 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-02-19 20:07:57 UTC
Created attachment 885464 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-02-28 21:46:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c54d76e8fab4063a74490103bace21d972a4d9d

commit 4c54d76e8fab4063a74490103bace21d972a4d9d
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2024-02-28 21:25:33 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2024-02-28 21:46:09 +0000

    net-analyzer/suricata: add 7.0.3, remove 7.0.2 and 7.0.2-r1
    
    Includes Brahmajit's patch for the gcc-14 issue, as it is yet to be
    fixed upstream.
    
    Closes: https://bugs.gentoo.org/925011
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 net-analyzer/suricata/Manifest                     |   4 +-
 .../suricata-7.0.3_fix-build-with-gcc14.patch      |  39 ++++
 net-analyzer/suricata/suricata-7.0.2.ebuild        | 221 ---------------------
 ...icata-7.0.2-r1.ebuild => suricata-7.0.3.ebuild} |   3 +-
 4 files changed, 43 insertions(+), 224 deletions(-)