Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894058 - app-arch/zstd-1.5.4-r2 - ../.../fileio.c: error: Bytef undeclared (first use in this function)
Summary: app-arch/zstd-1.5.4-r2 - ../.../fileio.c: error: Bytef undeclared (first use ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-02-12 16:45 UTC by Toralf Förster
Modified: 2023-02-15 01:39 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,21.22 KB, text/plain)
2023-02-12 16:45 UTC, Toralf Förster
Details
app-arch:zstd-1.5.4-r2:20230212-114755.log (app-arch:zstd-1.5.4-r2:20230212-114755.log,36.04 KB, text/plain)
2023-02-12 16:45 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,67.85 KB, application/x-bzip)
2023-02-12 16:45 UTC, Toralf Förster
Details
environment (environment,113.73 KB, text/plain)
2023-02-12 16:45 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,962 bytes, application/x-bzip)
2023-02-12 16:45 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.88 KB, application/x-bzip)
2023-02-12 16:45 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.13 KB, application/x-bzip)
2023-02-12 16:45 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 2023-02-12 16:45:04 UTC
too long lines were shrinked:

[32/60] x86_64-pc-linux-gnu-gcc -Iprograms/zstd.p -Iprograms -I../meson/programs -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -DXXH_NAMESPACE=ZSTD_ -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -DZSTD_LEGACY_SUPPORT=5 -pipe -march=native -f
[33/60] x86_64-pc-linux-gnu-gcc -Iprograms/zstd.p -Iprograms -I../meson/programs -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -DXXH_NAMESPACE=ZSTD_ -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -DZSTD_LEGACY_SUPPORT=5 -pipe -march=native -f
[34/60] x86_64-pc-linux-gnu-gcc -Iprograms/zstd.p -Iprograms -I../meson/programs -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -DXXH_NAMESPACE=ZSTD_ -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -DZSTD_LEGACY_SUPPORT=5 -pipe -march=native -f
FAILED: programs/zstd.p/.._.._.._programs_fileio.c.o 
x86_64-pc-linux-gnu-gcc -Iprograms/zstd.p -Iprograms -I../meson/programs -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -DXXH_NAMESPACE=ZSTD_ -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -DZSTD_LEGACY_SUPPORT=5 -pipe -march=native -fno-diagn
../../programs/fileio.c: In function FIO_compressLzmaFrame:
../../programs/fileio.c:1176:22: error: Bytef undeclared (first use in this function)
 1176 |     strm.next_out = (Bytef*)writeJob->buffer;
      |                      ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20230209-080021

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Rust versions:
  [1]   rust-bin-1.67.1
  [2]   rust-1.67.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit be807a356e98553e8277b99f8d78a5a1a8109e39
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Feb 12 11:02:01 2023 +0000

    2023-02-12 11:02:01 UTC

emerge -qpvO app-arch/zstd
[ebuild     U ] app-arch/zstd-1.5.4-r2 [1.5.2-r3] USE="lz4 lzma%* (split-usr) -static-libs -test% -zlib%"
Comment 1 Toralf Förster gentoo-dev 2023-02-12 16:45:05 UTC
Created attachment 850458 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-12 16:45:06 UTC
Created attachment 850460 [details]
app-arch:zstd-1.5.4-r2:20230212-114755.log
Comment 3 Toralf Förster gentoo-dev 2023-02-12 16:45:08 UTC
Created attachment 850462 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2023-02-12 16:45:09 UTC
Created attachment 850464 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-02-12 16:45:10 UTC
Created attachment 850466 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-12 16:45:11 UTC
Created attachment 850468 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-12 16:45:12 UTC
Created attachment 850470 [details]
logs.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2023-02-15 01:39:52 UTC
The bug has been closed via the following commit(s):

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

commit 59467b8282469d3878a8096c3d36422fc9d2d90f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-14 23:57:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-15 01:29:23 +0000

    app-arch/zstd: fix build w/ USE=-zlib
    
    Closes: https://bugs.gentoo.org/894058
    Signed-off-by: Sam James <sam@gentoo.org>

 .../zstd/files/zstd-1.5.4-fix-no-zlib-build.patch  | 61 ++++++++++++++++++++++
 app-arch/zstd/zstd-1.5.4-r2.ebuild                 | 15 +++++-
 2 files changed, 75 insertions(+), 1 deletion(-)