Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937330 - sys-block/nbd-3.25 - [icu-75.1] nbd-client.c: error: passing argument 2 of connect from incompatible pointer type [-Wincompatible-pointer-types]
Summary: sys-block/nbd-3.25 - [icu-75.1] nbd-client.c: error: passing argument 2 of co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard: fixed in 3.25-r1
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-08-04 19:25 UTC by Toralf Förster
Modified: 2024-11-01 16:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.68 KB, text/plain)
2024-08-04 19:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,96.08 KB, text/plain)
2024-08-04 19:25 UTC, Toralf Förster
Details
environment (environment,66.86 KB, text/plain)
2024-08-04 19:25 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.00 KB, application/x-xz)
2024-08-04 19:25 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.23 KB, application/x-xz)
2024-08-04 19:25 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.66 KB, application/x-xz)
2024-08-04 19:25 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,201.91 KB, text/plain)
2024-08-04 19:25 UTC, Toralf Förster
Details
sys-block:nbd-3.25:20240804-183358.log (sys-block:nbd-3.25:20240804-183358.log,15.95 KB, text/plain)
2024-08-04 19:25 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,16.09 KB, application/x-xz)
2024-08-04 19:25 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-08-04 19:25:34 UTC
too long lines were shrinked:

libtool: compile:  x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR=\"/etc\" -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -O2 -pipe -march=native -fno-diagnostics-color -I/usr/inclu
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"'  -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -c -o n
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"'  -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -c -o n
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"'  -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -DNOTLS -DPROG_NAME='"nbd-client"' -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -c -o nbd_client-nbd-client.o `test -f 'nbd-client.c' || e
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"'   -O2 -pipe -march=native -fno-diagnostics-color -I/usr/include/libnl3 -c -o nbdtab_parser.lo nbdtab_parser.c
nbd-client.c: In function 'openunix':
nbd-client.c:344:27: error: passing argument 2 of 'connect' from incompatible pointer type [-Wincompatible-pointer-types]
  344 |         if (connect(sock, &un_addr, sizeof(un_addr)) == -1) {
      |                           ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240803-100502

  UNMASKED:
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-musl-14 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.4
Available Rust versions:
  [1]   rust-bin-1.79.0 *
php cli (if any):
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit 78e5cfc46cbb494871cb25b12fed5ec3cc1c99b7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Aug 4 17:50:41 2024 +0000

    2024-08-04 17:50:40 UTC

emerge -qpvO sys-block/nbd
[ebuild  N    ] sys-block/nbd-3.25  USE="netlink zlib -debug -gnutls"
Comment 1 Toralf Förster gentoo-dev 2024-08-04 19:25:35 UTC
Created attachment 899024 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-04 19:25:36 UTC
Created attachment 899025 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-08-04 19:25:38 UTC
Created attachment 899026 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-08-04 19:25:39 UTC
Created attachment 899027 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-08-04 19:25:40 UTC
Created attachment 899028 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-04 19:25:41 UTC
Created attachment 899029 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-04 19:25:42 UTC
Created attachment 899030 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-08-04 19:25:43 UTC
Created attachment 899031 [details]
sys-block:nbd-3.25:20240804-183358.log
Comment 9 Toralf Förster gentoo-dev 2024-08-04 19:25:44 UTC
Created attachment 899032 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-08-04 21:01:03 UTC
The bug has been closed via the following commit(s):

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

commit db4e9704449722571dc5e185cfe8b2846f2aba0c
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-08-04 19:55:10 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-08-04 20:58:11 +0000

    sys-block/nbd: Fix passing incompatible pointer type
    
    Closes: https://bugs.gentoo.org/937330
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/37959
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../files/nbd-3.25-fix-build-on-musl-gcc14.patch   | 34 +++++++++
 sys-block/nbd/nbd-3.25-r1.ebuild                   | 86 ++++++++++++++++++++++
 2 files changed, 120 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2024-11-01 16:56:37 UTC
The bug has been referenced in the following commit(s):

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

commit 46de6853658089af0843f61fa1d7bb9cf8644206
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-11-01 16:47:32 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-11-01 16:56:19 +0000

    sys-block/nbd: drop 3.25
    
    Bug: https://bugs.gentoo.org/937330
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-block/nbd/nbd-3.25.ebuild | 82 -------------------------------------------
 1 file changed, 82 deletions(-)