[php-src] Issue #7978: sockets extension compilation errors
| From: | devnexen | Date: | Fri, 21 Jan 2022 13:27:59 +0000 |
| Subject: | [php-src] Issue #7978: sockets extension compilation errors | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239174@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7978
Comment Author: devnexen
thanks
`conftest.c:34:8: error: variable 'u' has initializer but incomplete type
34 | struct ucred u = {.gid = 0};
| ^~~~~
conftest.c:34:20: error: 'struct ucred' has no member named 'gid'
34 | struct ucred u = {.gid = 0};
| ^~~
conftest.c:34:26: warning: excess elements in struct initializer
34 | struct ucred u = {.gid = 0};
| ^
conftest.c:34:26: note: (near initialization for 'u')
conftest.c:34:14: error: storage size of 'u' isn't known
34 | struct ucred u = {.gid = 0};`
seems to be what I expected.