Skip to content

Build failure in ext/sockets #9493

Closed
Closed
@rs-bc

Description

@rs-bc

Description

/tmp/build-php-8.2.0RC1/php-8.2.0RC1/ext/sockets/conversions.c:1313:29: error:
no member named 'sc_pid' in 'sockcred'
...{"pid", sizeof("pid"), 1, offsetof(struct sockcred, sc_pid), from_zval_w...
^ ~~~~~~
/usr/include/stddef.h:73:31: note: expanded from macro 'offsetof'
#define offsetof(type, field) __offsetof(type, field)
^ ~~~~~
/usr/include/sys/cdefs.h:487:34: note: expanded from macro '__offsetof'
#define __offsetof(type, field) __builtin_offsetof(type, field)
^ ~~~~~
1 error generated.

Note: there is a struct sockcred2 since FreeBSD 13.0 which contains a member called sc_pid. FreeBSD-12.3 which is officially supported does NOT declare that struct either.

PHP Version

PHP 8.2.0RC1

Operating System

FreeBSD 11.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions