too long lines were shrinked: x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBZ=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 mergelog.c: In function main: mergelog.c:380:9: warning: ignoring return value of write declared with attribute warn_unused_result [-Wunused-result] 380 | write(1,log_buffer[i],(size_t)((char *)memchr(log_buffer[i],0,BUFFER_SIZE)-log_buffer[i])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mergelog.c: In function fast_gzgets: mergelog.c:76:23: error: passing argument 1 of gzread from incompatible pointer type [-Wincompatible-pointer-types] 76 | f_end[i]=gzread(fp, f_buf[i], GZBUFFER_SIZE)+f_buf[i]-1; | ^~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-20231215-225005 ------------------------------------------------------------------- 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.7 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.74.1 * 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.21.5 linux/amd64 HEAD of ::gentoo commit 94d5cb407afbc873e947fe9c54f92c1069ed9719 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Dec 27 08:16:49 2023 +0000 2023-12-27 08:16:49 UTC emerge -qpvO www-misc/mergelog [ebuild N ] www-misc/mergelog-4.5-r2
Created attachment 880709 [details] emerge-info.txt
Created attachment 880710 [details] emerge-history.txt.xz
Created attachment 880711 [details] environment
Created attachment 880712 [details] etc.clang.tar.xz
Created attachment 880713 [details] etc.portage.tar.xz
Created attachment 880714 [details] logs.tar.xz
Created attachment 880715 [details] qlist-info.txt.xz
Created attachment 880716 [details] temp.tar.xz
Created attachment 880717 [details] www-misc:mergelog-4.5-r2:20231227-094844.log
Can't be trivially fixed - error is a symptom of deep internal type confusion between handle (gzFile), pointer to handle and a pointer to a pointer to handle. This depth of indirection does not appear required. Trivially changing all error sites to take address of passed parameter and get double-pointer that way most likely will break this program, as it checks if returned handles are non-null. I am unwilling to put an effort to fix this program all the way, it would require rewriting a lot of it.