Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953390 - net-analyzer/wireshark-4.4.5 - ui/qt/utils/wireshark_zip_helper.h:24:10: fatal error: minizip-ng/zip.h: No such file or directory
Summary: net-analyzer/wireshark-4.4.5 - ui/qt/utils/wireshark_zip_helper.h:24:10: fata...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-04-07 20:53 UTC by Martin Mokrejš
Modified: 2025-04-08 09:02 UTC (History)
3 users (show)

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


Attachments
build.log.gz (build.log.gz,94.71 KB, application/octet-stream)
2025-04-07 20:54 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2025-04-07 20:53:41 UTC
FAILED: ui/qt/CMakeFiles/qtui.dir/models/profile_model.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DCARES_NO_DEPRECATED -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -I/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5_build/ui/qt/qtui_autogen/include -I/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5_build -I/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5 -I/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5_build/ui/qt -isystem /var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5/ui/qt -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6 -isystem /usr/include/qt6/QtCore -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtCore5Compat -isystem /usr/include/qt6/QtConcurrent -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtMultimedia -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtDBus  -Wall -Wextra -Wpointer-arith -Wformat-security -fno-strict-overflow -fexcess-precision=fast -Wvla -Wattributes -Wpragmas -Wredundant-decls -Wunreachable-code -Wlogical-op -Wno-error=stringop-overflow= -Wno-error=deprecated-declarations -Wframe-larger-than=32768 -Wno-format-truncation -fdiagnostics-color=always -Wextra-semi -O2 -pipe -march=native -ftree-vectorize -fPIC -DPIC -fmacro-prefix-map="/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5/"= -fmacro-prefix-map="/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5_build/"= -std=c++17 -fPIC -fPIC -MD -MT ui/qt/CMakeFiles/qtui.dir/models/profile_model.cpp.o -MF ui/qt/CMakeFiles/qtui.dir/models/profile_model.cpp.o.d -o ui/qt/CMakeFiles/qtui.dir/models/profile_model.cpp.o -c /var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5/ui/qt/models/profile_model.cpp
In file included from /var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5/ui/qt/models/profile_model.cpp:25:
/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5/ui/qt/utils/wireshark_zip_helper.h:24:10: fatal error: minizip-ng/zip.h: No such file or directory
   24 | #include "minizip-ng/zip.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
 * ERROR: net-analyzer/wireshark-4.4.5::gentoo failed (compile phase):
 *   ninja -v -j5 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3486:  Called cmake_src_compile
 *   environment, line 1492:  Called cmake_build
 *   environment, line 1459:  Called eninja
 *   environment, line 1787:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/wireshark-4.4.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/wireshark-4.4.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/wireshark-4.4.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/wireshark-4.4.5/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5_build'
 * S: '/var/tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5'



# emerge -pv minizip-ng

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 20.57 s (backtrack: 0/20).

[ebuild     U  ] sys-libs/minizip-ng-4.0.8:0/4::gentoo [4.0.4:0/4::gentoo] USE="lzma%* openssl zstd (-compat) -test" 0 KiB



# emerge -pqv '=net-analyzer/wireshark-4.4.5::gentoo'
[ebuild     U ] net-analyzer/wireshark-4.4.5 [4.4.3] USE="capinfos captype dftest dumpcap editcap filecaps gui libxml2 lz4 mergecap minizip netlink opus pcap plugins randpkt randpktdump reordercap sharkd ssl text2pcap tshark udpdump wifi zlib zstd -androiddump -bcg729 -brotli -ciscodump -doc -dpauxmon -http2 -http3 -ilbc -kerberos -lua -maxminddb -sbc -sdjournal (-selinux) -smi -snappy -spandsp -sshdump -test -verify-sig" LUA_SINGLE_TARGET="-lua5-3 -lua5-4" 


Upgrade of of minizip-ng did not help. Now I have:

[ebuild   R    ] sys-libs/minizip-ng-4.0.8:0/4::gentoo  USE="lzma openssl zstd (-compat) -test" 0 KiB
Comment 1 Martin Mokrejš 2025-04-07 20:54:32 UTC
Created attachment 923900 [details]
build.log.gz
Comment 2 Holger Hoffstätte 2025-04-07 21:07:00 UTC
No idea what's going on here but can you try with USE="-minizip"?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-07 21:08:17 UTC
emerge --info is missing. You've been around long enough. Please always include it.
Comment 4 Martin Mokrejš 2025-04-07 21:16:37 UTC
# emerge --info '=net-analyzer/wireshark-4.4.5::gentoo'

Portage 3.0.67 (python 3.13.2-final-0, default/linux/amd64/23.0/split-usr/no-multilib, gcc-14, glibc-2.41-r1, 6.13.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.13.6-x86_64-Intel-R-_Core-TM-_i7-7820HQ_CPU_@_2.90GHz-with-glibc2.41
KiB Mem:    32730260 total,  15197640 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 06 Apr 2025 09:45:00 +0000
Head commit of repository gentoo: fc5e6f0ade056cb3289c0c14c0e73f7bffbd97f2
Head commit of repository jgenco: 1cf5eedeb5cd34dcabd865c20b1e5396418ac359

Head commit of repository without-systemd: 5d3567162093b20268bee39d28ade80ca3732aeb

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.69-r5::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.10.16_p2::gentoo, 3.11.11_p2::gentoo, 3.12.9::gentoo, 3.13.2::gentoo, 3.13.2-r100::gentoo
dev-lang/rust-bin:         1.77.1-r102::gentoo, 1.84.1-r1::gentoo, 1.85.0-r1::gentoo, 1.85.1::gentoo
llvm-core/clang:           14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo, 19.1.7::gentoo, 20.1.2::gentoo
llvm-core/lld:             14.0.6-r1::gentoo, 15.0.7::gentoo, 16.0.6::gentoo, 18.1.8::gentoo
llvm-core/llvm:            14.0.6-r4::gentoo, 15.0.7-r7::gentoo, 16.0.6-r5::gentoo, 17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.7::gentoo, 20.1.2::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.61::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.43-r2::gentoo, 2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             10.3.0::gentoo, 11.5.0::gentoo, 12.2.1_p20230304::gentoo, 13.2.1_p20240210::gentoo, 14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

guru
    location: /var/db/repos/guru
    sync-type: webrsync
    sync-uri: https://gitweb.gentoo.org/repo/proj/guru.git
    masters: gentoo
    volatile: True

jgenco
    location: /var/db/repos/jgenco
    sync-type: git
    sync-uri: https://github.com/jgenco/jgenco-overlay
    masters: gentoo
    volatile: False

science
    location: /var/db/repos/science
    sync-type: rsync
    sync-uri: https://wiki.gentoo.org/wiki/Project:Science
    masters: gentoo
    volatile: True
    sync-rsync-extra-opts: 

without-systemd
    location: /var/db/repos/without-systemd
    sync-type: git
    sync-uri: https://github.com/KenjiBrown/without-systemd
    masters: gentoo
    volatile: False

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

layman
    location: /var/lib/layman
    masters: gentoo
    priority: 1
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 NPSL Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware fasta vienna-rna unafold GRL MSttfEULA hplip-plugin meme mRNAmarkup ApE ICS ipw3945 finchtv modeller gmap master-pdf-editor abyss swiss-prot Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 estscan bcca_2010 oncotator Adobe blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute UPennState freedist free-noncomm blasr sun-jlfgr FLI-Jena PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth google-chrome ACE AFL churchill genscan no-source-code linux-fw-redistributable ISSL JSON MPEG-4 Apache-2.0 BSD MIT BSD-2 FSFAP unicode Subversion OPERA-2018 ms-teams-pre TeamViewer PSF-2.4 merlin android julius CROSSOVER-3 lha PUEL-11 supermicro microsoft-edge android OFL PUEL-12 SSPL-1 Volatility-1.0"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /usr/share/maven-bin-3.8/conf /usr/share/maven-bin-3.9/conf /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -ftree-vectorize -flto"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amr amrenc aom apache apache2 archive armadillo asm audit av1 avx avx2 berkdb blas bluetooth bluray bmp boost bz2 bzip2 cairo caps ccid cdda cdio cdr cdrom cet cgi chromium cli codec2 coin cpudetection cracklib crypt cryptlib cryptsetup cups curl cxx d3d11 d3d9 dav1d dbus device-mapper dhcp directfb directx dri dri3 drm dvbpsi dvd dvda dxf dxva2 egl elogind emboss encode eselect-ldso exif faad fax fbcon fdk ffmpeg fftw flac fontconfig foomatic fortran frei0r fuse gbm gcrypt gd gdal gdbm geoip geolocation georeferencer geos gimp gles gles1 gles2 glpk gml gmp gnutls gpm gps grass gstreamer gtk gtk3 h.264 h.265 h264 h265 hal haptic hdf5 heif hevc hpijs hwdb iconv icu id3tag imaging innodb inotify iproute2 ipv6 java javafx javascript jce jpeg jpeg2k jpg js jscript kdrive keymap kms ladspa lapack laptop las lcms libaom libdrm libkms libnotify librtmp libsodium libsoxr libtesseract libtirpc libv4l libxml2 live lm-sensors lm_sensors lto lz4 lzma lzo mad mariadb matroska mjpeg mmal mmx modemmanager mp3 mpeg mtp ncurses netcdf networkmanager nfs nftables nls nptl nptlonly nscd nss ntfsprogs nvenc objc ocr odbc ogdi ogg openal opencl opengl openh264 openmp opensc openssl opus pam parport pcre pcre16 pcsc pcsc-lite pdal pdf perl php png polar policykit polkit postgres ppds pppd python qemu qml qt3support qt4 qt5 rav1e rdp readline rendering resolvconf romio rubberband scanner seccomp server session sha slideshow smartcard sndfile sndio sodium spice split-usr sqlite srt sse sse2 sse3 sse4_1 sse4_2 ssh ssl sslv3 ssse3 startup-notification suexec svg svt-av1 syslog tcl tcpd test-rust threads tiff tk tkip tools truetype twolame unicode unwind upnp usb v4l v4l2 vaapi vidstab vim-syntax virtualbox vmaf vnc vorbis vp8 vp9 vpx vulkan wavpack wayland webdav webkit webp wifi x11 x264 x265 xa xattr xcb xephyr xft xls xml xmp xorg xrandr xv xvfb xvid xvmc zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="hdspm usb-usx2y" APACHE2_MODULES="alias authn_core authz_core socache_shmcb authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic unixd" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="gpsclock navcom ntrip rtcm104v2 rtcm104v3 ublox nmea0183 nmea2000 aivdm passthrough" GRUB_PLATFORMS="efi-64 pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en-GB en cs" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="19" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python2_7 python3_9 python3_10 python3_11 python3_12 python3_13" RUBY_TARGETS="ruby32 ruby33 ruby34" VIDEO_CARDS="vesa vboxvideo vmware vmvga vmwgfx fbdev intel iris i915 i965 d3d12 virgl zink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 5 Martin Mokrejš 2025-04-07 21:35:14 UTC
(In reply to Holger Hoffstätte from comment #2)
> No idea what's going on here but can you try with USE="-minizip"?

No, it did not help. Seems the USE flag is ignored.

Nevertheless, here is the problem:

# find /usr/include/ -name zip.h
/usr/include/minizip/zip.h
/usr/include/QuaZip-Qt5-1.4/quazip/zip.h
/usr/include/zip.h
#

# equery files minizip-ng |  grep -i include
/usr/include
/usr/include/minizip-ng
/usr/include/minizip-ng/mz.h
/usr/include/minizip-ng/mz_crypt.h
/usr/include/minizip-ng/mz_os.h
/usr/include/minizip-ng/mz_strm.h
/usr/include/minizip-ng/mz_strm_buf.h
/usr/include/minizip-ng/mz_strm_bzip.h
/usr/include/minizip-ng/mz_strm_lzma.h
/usr/include/minizip-ng/mz_strm_mem.h
/usr/include/minizip-ng/mz_strm_os.h
/usr/include/minizip-ng/mz_strm_pkcrypt.h
/usr/include/minizip-ng/mz_strm_split.h
/usr/include/minizip-ng/mz_strm_wzaes.h
/usr/include/minizip-ng/mz_strm_zlib.h
/usr/include/minizip-ng/mz_strm_zstd.h
/usr/include/minizip-ng/mz_zip.h
/usr/include/minizip-ng/mz_zip_rw.h
#
Comment 6 Holger Hoffstätte 2025-04-07 21:40:03 UTC
I just realized I had USE=-minizip on my test machine. However with minizip enabled (default) it also built without issue, after pulling in minizip-ng. Building with either minizip-ng-4.0.8 and -4.0.9 worked as well, no difference.
Only differences in USE are libxml and lz4, which don't seem to have anything to do with it.
Comment 7 Martin Mokrejš 2025-04-07 21:43:01 UTC
Isn't the problem that the file is renamed to minizip-ng/mz_zip.h ? Although I did not study its contents. If Gentoo added the "mz_" prefix or upstream I have no idea.
Comment 8 Holger Hoffstätte 2025-04-07 21:45:12 UTC
Interestingly I see this in my build.log:

-- Could NOT find Minizipng (missing: MINIZIPNG_INCLUDE_DIR) (found version "4.0.9")
-- Found Minizip: /usr/lib64/libminizip.so (found version "1.3.1")

so it finds the one from the old zlib.

But pkg-config says:

$pkg-config --cflags minizip-ng
-I/usr/include/minizip-ng -DWITH_GZFILEOP

looking..
Comment 9 Holger Hoffstätte 2025-04-07 21:51:09 UTC
(In reply to Martin Mokrejš from comment #7)
> Isn't the problem that the file is renamed to minizip-ng/mz_zip.h ?

That does seem to be the issue, yes.

> If Gentoo added the "mz_" prefix or upstream I have no idea.

We do not rename anything in minizip-ng. Not sure what is happening, maybe Wireshark never tested with minizp-ng enabled (only with zlib-ng).
Comment 10 Holger Hoffstätte 2025-04-07 21:52:57 UTC
wireshark_zip_helper.h says:

#ifdef HAVE_MINIZIP
#include "minizip/zip.h"
#else
#include "minizip-ng/zip.h"
#endif

..so there..
Comment 11 Holger Hoffstätte 2025-04-07 22:24:08 UTC
Hmm.. I think we messed this up:

https://gitlab.com/wireshark/wireshark/-/blob/master/cmake/modules/FindMinizipng.cmake

says: "only if it has the compatibility layer with the original minizip"

which we do not have, as USE=compat on minizip-ng is package-masked:

# Sam James <sam@gentoo.org> (2022-10-02)
# USE=compat / possibly allowing sys-libs/zlib needs to be figured out,
# but packages want to use the actual zlib-ng library, so we need to
# mask it and can't hold the whole thing up on the compat effort.
sys-libs/zlib-ng compat
sys-libs/minizip-ng compat

Unfortunately trying to unmask compat only on minizip-ng conflicts with zlib[minizip]: 

    compat? ( !sys-libs/zlib[minizip] )

..which is correct and necessary, since both minizip-ng[compat] and zlib[minizip] want to install conflicting files.

Bummer. Will have to think about this more tomorrow.
Comment 12 Martin Mokrejš 2025-04-07 22:31:32 UTC
Thank you for your analysis, it is not a problem for me, I hardly use wireshark at all.
Comment 13 Holger Hoffstätte 2025-04-07 22:36:41 UTC
(In reply to Martin Mokrejš from comment #5)
> (In reply to Holger Hoffstätte from comment #2)
> > No idea what's going on here but can you try with USE="-minizip"?
> 
> No, it did not help. Seems the USE flag is ignored.

You're half-right. As usual Wireshark tries to be "helpful" and has options to ENABLE_MINIZIP _and_ ENABLE_MINIZIPNG..or both, or neither.

Since it insists on minizip-ng[compat] we _could_ do:

diff --git a/net-analyzer/wireshark/wireshark-4.4.5.ebuild b/net-analyzer/wireshark/wireshark-4.4.5.ebuild
index 20119886..c447c346 100644
--- a/net-analyzer/wireshark/wireshark-4.4.5.ebuild
+++ b/net-analyzer/wireshark/wireshark-4.4.5.ebuild
@@ -61,7 +61,7 @@ RDEPEND="
    lua? ( ${LUA_DEPS} )
    lz4? ( app-arch/lz4:= )
    maxminddb? ( dev-libs/libmaxminddb:= )
-   minizip? ( sys-libs/minizip-ng )
+   minizip? ( sys-libs/zlib[minizip] )
    netlink? ( dev-libs/libnl:3 )
    opus? ( media-libs/opus )
    pcap? ( net-libs/libpcap )
@@ -213,6 +213,7 @@ src_configure() {
        -DENABLE_LUA=$(usex lua)
        -DLUA_FIND_VERSIONS="${ELUA#lua}"
        -DENABLE_LZ4=$(usex lz4)
+       -DENABLE_MINIZIPNG=OFF
        -DENABLE_MINIZIP=$(usex minizip)
        -DENABLE_NETLINK=$(usex netlink)
        -DENABLE_NGHTTP2=$(usex http2)

and use zlib-ng for fast zlib support (dynamic compression) but old minizip for minizip. This will result in linking against both old and new:

ldd /tmp/portage/net-analyzer/wireshark-4.4.5/work/wireshark-4.4.5_build/run/wireshark  | grep -e mini -e libz
	libminizip.so.1 => /usr/lib64/libminizip.so.1 (0x00007fbf743c9000)
	libz.so.1 => /usr/lib64/libz.so.1 (0x00007fbf725b7000)
	libzstd.so.1 => /usr/lib64/libzstd.so.1 (0x00007fbf6b941000)
	libz-ng.so.2 => /usr/lib64/libz-ng.so.2 (0x00007fbf6b68d000)

Alternatively we can ...wait for it... roll back zlib-ng support to old zlib.
:-(

Sam?
Comment 14 Holger Hoffstätte 2025-04-07 22:47:48 UTC
All this being said, I still do not understand how you ended up with the original compiler error in the first place and why nobody else did.
Comment 15 Holger Hoffstätte 2025-04-07 22:48:23 UTC
Confirming since this is definitely wrong.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-08 06:57:52 UTC
Thanks for the investigation. This is horrible all-round.

I think changing back to zlib is the lesser evil here. Requiring minizip-ng[compat] would be gross and mean we're forcing minizip-ng on people (it's too unilateral), and having zlib and zlib-ng at the same time feels kind of pointless (or daft).
Comment 17 Holger Hoffstätte 2025-04-08 08:58:05 UTC
I reverted to old zlib/minizip. We can revisit this once Wireshark has forward-ported their minizip integration to the minizip-ng API (see the long explanation in the link in comment #11).
Comment 18 Larry the Git Cow gentoo-dev 2025-04-08 09:02:16 UTC
The bug has been closed via the following commit(s):

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

commit c98d6f0172fd022899ce5d89e8d6c9fa0c70cad6
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2025-04-08 08:38:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-08 09:01:26 +0000

    net-analyzer/wireshark: revert to old zlib due to conflict with minizip-ng
    
    Discussion of bug #953390 has revealed that Wireshark's minizip-ng
    feature currently relies on it being built with minizip compatibility,
    which is unfortunately not easily possible at the moment.
    Technically this could be solved by linking both zlib[minizip] and
    zlib-ng, but down that path lies madness, so just consistently revert
    to zlib/minizip.
    
    Closes: https://bugs.gentoo.org/953390
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{wireshark-4.4.5.ebuild => wireshark-4.4.5-r1.ebuild}        | 9 +++++----
 net-analyzer/wireshark/wireshark-9999.ebuild                     | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)