Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issues of the curses module on Solaris and OpenIndiana #57761

Closed
vstinner opened this issue Dec 8, 2011 · 6 comments
Closed

Compilation issues of the curses module on Solaris and OpenIndiana #57761

vstinner opened this issue Dec 8, 2011 · 6 comments
Labels
build The build process and cross-build

Comments

@vstinner
Copy link
Member

vstinner commented Dec 8, 2011

BPO 13552
Nosy @jcea, @vstinner, @tpn
Files
  • curses_hacks.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-06-28.01:42:40.076>
    created_at = <Date 2011-12-08.00:53:17.521>
    labels = ['build']
    title = 'Compilation issues of the curses module on Solaris and OpenIndiana'
    updated_at = <Date 2017-06-28.01:42:40.074>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2017-06-28.01:42:40.074>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-06-28.01:42:40.076>
    closer = 'vstinner'
    components = ['Build']
    creation = <Date 2011-12-08.00:53:17.521>
    creator = 'vstinner'
    dependencies = []
    files = ['23873']
    hgrepos = []
    issue_num = 13552
    keywords = ['patch']
    message_count = 6.0
    messages = ['149007', '149010', '155145', '164784', '178874', '297131']
    nosy_count = 7.0
    nosy_names = ['jcea', 'vstinner', 'enchanter', 'trent', 'mschmarck', 'iandekit', 'Justin.Venus']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue13552'
    versions = ['Python 3.3']

    @vstinner
    Copy link
    Member Author

    vstinner commented Dec 8, 2011

    The _curses module has two issues on OpenSolaris:

    • using the default curses library, mvwchgat() cannot be found and _curses module compilation fails
    • there is a "XPG4 curses" library. I tried to use it using various hacks in _cursesmodule.c and setup.py, but test_curses failed with a crash.
    • if the readline library (not the Python module) is linked to libncursesw, the compilation of the _curses module fails because cchar_t is not defined. I suppose that curses.h is the bytes library, not the ncursesw Unicode library.

    See issue bpo-12567 for the ncursesw issue and issue bpo-3786 for the mvwchgat() problem. The issue bpo-3786 contains information about XPG4 curses and has a (non working) patch for the mvwchgat() issue.

    --

    I opened a new issue because bpo-12567 is more specific to Unicode, and bpo-3786 talks about various issues (it is not specific to curses).

    @vstinner vstinner added the build The build process and cross-build label Dec 8, 2011
    @vstinner
    Copy link
    Member Author

    vstinner commented Dec 8, 2011

    curses_hacks.patch: various hacks to use the XPG4 curses on OpenIndiana.

    @vstinner
    Copy link
    Member Author

    vstinner commented Mar 8, 2012

    Jesús Cea Avión also noticed in msg143798 from the issue bpo-6755:

    I have compiled ncurses myself, supporting wide characters. I get this warnings in the buildbots:

    """
    /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Modules/_cursesmodule.c:920: warning: implicit declaration of function 'wget_wch'
    /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Modules/_cursesmodule.c:927: warning: implicit declaration of function 'mvwget_wch'
    /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Modules/_cursesmodule.c:2760: warning: implicit declaration of function 'unget_wch'
    """

    Studying the "ncurses.h", I see the definition of "wget_wch" and others. But these definitions are created only if "_XOPEN_SOURCE_EXTENDED" is defined.

    Something to be explored?.

    @JustinVenus
    Copy link
    Mannequin

    JustinVenus mannequin commented Jul 7, 2012

    Does OpenIndiana ship with the gnu version of ncurses like Solaris 11?

    Headers:
    /usr/include/ncurses

    Libraries:
    /usr/gnu/lib

    If it matches Solaris, then you can use my patch[1] in bpo-3786 to see if that works around the issue, like it does for Solaris.

    1. http://bugs.python.org/file26171/bug3786.patch

    @vstinner
    Copy link
    Member Author

    vstinner commented Jan 3, 2013

    What is the status of this issue? Is curses still broken on Python 3.4?

    @vstinner vstinner changed the title Compilation issues of the curses module on OpenIndiana Compilation issues of the curses module on Solaris and OpenIndiana Nov 26, 2013
    @vstinner
    Copy link
    Member Author

    The OpenIndiana buildbot is offline. The Solaris buildbot was removed. We cannot develop on these operating systems, so I just close the issue. Sorry.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant