Summary: | net-misc/wget2[lzip] - /.../lzlib.h: error: unknown type name uint8_t | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam, silvio.gerli |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://lists.nongnu.org/archive/html/lzip-bug/2022-11/msg00006.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 net-misc:wget2-2.0.0:20211106-004543.log temp.tar.bz2 build.log |
Description
Toralf Förster
![]() Created attachment 748965 [details]
emerge-info.txt
Created attachment 748968 [details]
emerge-history.txt
Created attachment 748971 [details]
environment
Created attachment 748974 [details]
etc.portage.tar.bz2
Created attachment 748977 [details]
logs.tar.bz2
Created attachment 748980 [details]
net-misc:wget2-2.0.0:20211106-004543.log
Created attachment 748983 [details]
temp.tar.bz2
Same error as OP when trying to update to 2.0.1. (In reply to Alexis from comment #8) > Same error as OP when trying to update to 2.0.1. Please provide a fresh build.log and emerge --info just for completeness, although it sounds like an issue in app-arch/lzlib's headers. *** Bug 847856 has been marked as a duplicate of this bug. *** Same error with net-misc/wget2-2.0.1 # emerge --info Portage 3.0.32 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r8, 5.17.15-gentoo x86_64) ================================================================= System uname: Linux-5.17.15-gentoo-x86_64-AMD_Ryzen_9_5900HS_with_Radeon_Graphics-with-glibc2.35 KiB Mem: 32267340 total, 6436556 free KiB Swap: 34814972 total, 34814716 free Timestamp of repository gentoo: Sat, 16 Jul 2022 13:00:01 +0000 Head commit of repository gentoo: 35a465bcdc0d76e2a8741bc9854d1d0be5be5b7f Timestamp of repository eclipse: Mon, 11 Jul 2022 04:31:58 +0000 Head commit of repository eclipse: 26778dae1f78a3b76c077104d193b25454378a87 Timestamp of repository steam-overlay: Thu, 14 Jul 2022 00:46:36 +0000 Head commit of repository steam-overlay: e71c67269ee996fc8ea0e76d0ae4d50e6292432c sh bash 5.1_p16 ld GNU ld (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.4::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta4-r2::gentoo dev-lang/rust: 1.62.0::gentoo dev-util/cmake: 3.23.2::gentoo dev-util/meson: 0.63.0::gentoo sys-apps/baselayout: 2.8-r1::gentoo sys-apps/openrc: 0.45.2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6::gentoo sys-devel/gcc: 11.3.0::gentoo, 12.1.1_p20220625::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.6::gentoo sys-devel/llvm: 14.0.6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.18-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: eclipse location: /var/db/repos/eclipse sync-type: git sync-uri: https://github.com/gentoo-mirror/eclipse.git masters: gentoo localrepo location: /var/db/repos/localrepo masters: gentoo steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=znver3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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" CXXFLAGS="-O2 -march=znver3 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -march=znver3 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=znver3 -pipe" GENTOO_MIRRORS="https://gentoo.mirror.garr.it/ https://mirror.init7.net/gentoo/" LANG="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="it en it_IT en_US" MAKEOPTS="--jobs 14 --load-average 15" 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 activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative djvu dri dri3 dts dvd dvdr elogind encode exif ffmpeg fftw flac fortran gdbm gif gles2 gpm gtk gui hidpi iconv icu id3tag ipv6 javafx jpeg kde kdesu kwallet lcms libglvnd libinput libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ntfs objc ogg opengl openmp opus pam pango pcre pcsc-lite pdf plasma png policykit ppds pulseaudio qml qt5 readline s3tc samba sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg theora tiff touchpad truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis vpx widgets wxwidgets x264 xattr xcb xml xv xvid xvmc zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="joystick wacom synaptics evdev libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi nvidia vesa v4l v4l2 modesetting fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS Created attachment 791825 [details]
build.log
(In reply to Sam James from comment #9) > (In reply to Alexis from comment #8) > > Same error as OP when trying to update to 2.0.1. > > Please provide a fresh build.log and emerge --info just for completeness, > although it sounds like an issue in app-arch/lzlib's headers. Done, let us know. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3030fc80777b9245d3e0c5b27c42d6f755bb4fb6 commit 3030fc80777b9245d3e0c5b27c42d6f755bb4fb6 Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2022-07-17 09:22:02 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2022-07-17 09:23:12 +0000 net-misc/wget2: restore USE=lzip to fix automagic detection This feature still exists in current versions and when enabled can fail compilation in some cases Bug: https://bugs.gentoo.org/822057 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> net-misc/wget2/metadata.xml | 2 +- net-misc/wget2/wget2-2.0.1.ebuild | 4 +++- net-misc/wget2/wget2-9999.ebuild | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) Configure flag was renamed in 2.0.1 (from lz to lzip), I re-added the relevant USE-flag It should emerge fine on next sync if you have USE=-lzip As for fixing USE=lzip, I am still investigating, there was a similar issue reported some time ago [1], but no replies Interesting thing is that on my main "old" system (installed ages ago) on default/linux/amd64/17.1/desktop, USE=lzip works fine. But a fresh default/linux/amd64/17.1 stage3 in a container will fail with similar error as here [1] https://www.mail-archive.com/bug-wget@gnu.org/msg10173.html OK it compiles on my system as I also have USE=lzma, and lzma includes are before lzlib in wget2 decompressor - and lzma.h has proper logic for all these types USE="lzma lzip" works too then Adding a required use on lzma is only workaround though, issue is indeed in lzlib directly and the header should have similar logic to add types (or at least unconditionally include stdint.h): https://git.tukaani.org/?p=xz.git;a=blob;f=src/liblzma/api/lzma.h;h=8fbd9a874b32e713871e79213fad051215db0861;hb=HEAD#l71 Moving this bug to lzlib itself then ping As suspected, you're supposed to take care of getting uint8_t before including lzlib.h. He'll update the docs. Upstream fix: https://git.savannah.gnu.org/cgit/wget/wget2.git/commit/?id=96fda91da2df356a7e0897187822e27125a3e40b. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64664507e8311690d16bec79324880f1bd261ebd commit 64664507e8311690d16bec79324880f1bd261ebd Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2023-08-16 21:50:04 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2023-08-16 21:50:04 +0000 net-misc/wget2: fix compilation with USE=lzip Closes: https://bugs.gentoo.org/822057 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> net-misc/wget2/files/wget2-2.0.1-stdint.patch | 24 +++++++ net-misc/wget2/wget2-2.0.1-r4.ebuild | 97 +++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) |