Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

readline module fails to build against recent libedit #117845

Closed
Labels
3.13bugs and security fixesbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error
@jmroot

Description

@jmroot

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 takingvoid 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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp