[php-src] Issue #11678: Build fails on musl after removal of lfs64 patches
| From: | andypost | Date: | Tue, 11 Jul 2023 17:16:45 +0000 |
| Subject: | [php-src] Issue #11678: Build fails on musl after removal of lfs64 patches | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244951@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11678
Author: andypost
### Description
After removal of patches https://github.com/alpinelinux/aports/commit/cab9b787b39387f0b3d30d218b0739c3e21aefb8
Alpinelinux now fails to compile with following output:
```
/builds/alpine/aports/testing/php83/src/php-8.3.0alpha3/main/streams/cast.c:139:2: error:
incompatible function pointer types initializing 'cookie_seek_function_t *' (aka 'int
(*)(void *, long *, int)') with an expression of type 'int (void *, zend_off_t, int)'
(aka 'int (void *, long, int)') [-Wincompatible-function-pointer-types]
stream_cookie_seeker, stream_cookie_closer
^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:2600: main/streams/cast.lo] Error 1
```
Discussion https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/48728#note_321723
Build fixed by removing check https://github.com/php/php-src/blob/62a940880ecab11ab8e06eada093934f3614df2d/main/streams/cast.c#L105-L122
### PHP Version
PHP 8.1.21
### Operating System
Alpinelinux