Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921150 - net-misc/zsync-0.6.2-r3 - zsync.c: error: returning char from a function with incompatible return type const char const [-Wincompatible-pointer-types]
Summary: net-misc/zsync-0.6.2-r3 - zsync.c: error: returning char from a function with...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-01 12:52 UTC by Toralf Förster
Modified: 2024-06-02 14:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.73 KB, text/plain)
2024-01-01 12:52 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,63.94 KB, application/x-xz)
2024-01-01 12:52 UTC, Toralf Förster
Details
environment (environment,79.13 KB, text/plain)
2024-01-01 12:52 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.12 KB, application/x-xz)
2024-01-01 12:52 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.84 KB, application/x-xz)
2024-01-01 12:52 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.94 KB, application/x-xz)
2024-01-01 12:52 UTC, Toralf Förster
Details
net-misc:zsync-0.6.2-r3:20240101-121108.log (net-misc:zsync-0.6.2-r3:20240101-121108.log,23.73 KB, text/plain)
2024-01-01 12:52 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,71.75 KB, application/x-xz)
2024-01-01 12:52 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.12 KB, application/x-xz)
2024-01-01 12:52 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-01-01 12:52:09 UTC
      |                                   ^
zsync.c:243:68: warning: comparison of integer expressions of different signedness: size_t {aka long unsigned int} and int [-Wsign-compare]
  243 |              if (fread(zblock, sizeof *zblock, nzblocks, f) < nzblocks) {
      |                                                             ^

zsync.c: In function zsync_get_urls:
zsync.c:443:18: error: returning char ** from a function with incompatible return type const char * const* [-Wincompatible-pointer-types]
  443 |         return zs->zurl;
      |                ~~^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20231227-054504

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

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:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   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 3d1de9cf833d84ab231cf5bac4061408bcd28d3d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jan 1 11:32:08 2024 +0000

    2024-01-01 11:32:07 UTC

emerge -qpvO net-misc/zsync
[ebuild  N    ] net-misc/zsync-0.6.2-r3
Comment 1 Toralf Förster gentoo-dev 2024-01-01 12:52:10 UTC
Created attachment 881190 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-01 12:52:11 UTC
Created attachment 881191 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-01-01 12:52:12 UTC
Created attachment 881192 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-01-01 12:52:13 UTC
Created attachment 881193 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-01-01 12:52:14 UTC
Created attachment 881194 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-01 12:52:15 UTC
Created attachment 881195 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-01 12:52:16 UTC
Created attachment 881196 [details]
net-misc:zsync-0.6.2-r3:20240101-121108.log
Comment 8 Toralf Förster gentoo-dev 2024-01-01 12:52:17 UTC
Created attachment 881197 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-01-01 12:52:18 UTC
Created attachment 881198 [details]
temp.tar.xz
Comment 10 grixfosforito 2024-06-02 14:56:17 UTC
I am having the same problem. A temporal workaround for me is to emerge the package with:

CFLAGS="-Wno-incompatible-pointer-types" emerge net-misc/zsync

until the ebuild is fixed.