Closed
Description
Bug report
Bug description:
Building Python 3.13.0a6 configured with --with-readline=editline
fails like this for me:
./Modules/readline.c:1305:21: error: incompatible function pointer types assigning to 'rl_hook_func_t *' (aka 'int (*)(void)') from 'int (const char *, int)' [-Wincompatible-function-pointer-types]
rl_startup_hook = on_startup_hook;
^ ~~~~~~~~~~~~~~~
./Modules/readline.c:1307:23: error: incompatible function pointer types assigning to 'rl_hook_func_t *' (aka 'int (*)(void)') from 'int (const char *, int)' [-Wincompatible-function-pointer-types]
rl_pre_input_hook = on_pre_input_hook;
^ ~~~~~~~~~~~~~~~~~
2 errors generated.
It looks like e7e1116 is the cause. No editline header defines _RL_FUNCTION_TYPEDEF
, but recent versions (in this case 20230828) declare these functions as taking void
whereas Apple's version declares them the other way. I suspect that older clang versions and gcc may let you off with a warning rather than erroring on this type mismatch.
CPython versions tested on:
3.13
Operating systems tested on:
macOS