[Bug 3707] New: Build failure on musl in ssh_systemd_notify (port-linux.c:369:25: error: passing argument 2 of 'connect' from incompatible pointer type)
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sun Jul 7 16:02:02 AEST 2024
https://bugzilla.mindrot.org/show_bug.cgi?id=3707
Bug ID: 3707
Summary: Build failure on musl in ssh_systemd_notify
(port-linux.c:369:25: error: passing argument 2 of
'connect' from incompatible pointer type)
Product: Portable OpenSSH
Version: 9.8p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: sam at gentoo.org
Originally reported downstream in Gentoo at
https://bugs.gentoo.org/935353.
```
port-linux.c: In function 'ssh_systemd_notify':
port-linux.c:369:25: error: passing argument 2 of 'connect' from
incompatible pointer type
[-Wincompatible-pointer-types[https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types]]
369 | if (connect(fd, &addr, sizeof(addr)) != 0) {
| ^~~~~
| |
| struct sockaddr_un *
In file included from ../includes.h:26,
from port-linux.c:22:
/usr/include/sys/socket.h:386:19: note: expected 'const struct sockaddr
*' but argument is of type 'struct sockaddr_un *'
386 | int connect (int,
const struct sockaddr *, socklen_t);
| ^~~~~~~~~~~~~~~~~~~~~~~
```
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list