- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Labels
Description
Description
After removal of patchesalpinelinux/aports@cab9b78 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
Discussionhttps://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/48728#note_321723
Build fixed by removing check
Lines 105 to 122 in62a9408
# ifdefCOOKIE_SEEKER_USES_OFF64_T | |
staticintstream_cookie_seeker(void*cookie,off64_t*position,intwhence) | |
{ | |
*position=php_stream_seek((php_stream*)cookie, (zend_off_t)*position,whence); | |
if (*position==-1) { | |
return-1; | |
} | |
return0; | |
} | |
# else | |
staticintstream_cookie_seeker(void*cookie,zend_off_tposition,intwhence) | |
{ | |
returnphp_stream_seek((php_stream*)cookie,position,whence); | |
} | |
# endif |
PHP Version
PHP 8.1.21
Operating System
Alpinelinux