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

distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared #49382

Closed
dpeterson mannequin opened this issue Feb 2, 2009 · 2 comments
Assignees
Labels
build The build process and cross-build stdlib Python modules in the Lib dir

Comments

@dpeterson
Copy link
Mannequin

dpeterson mannequin commented Feb 2, 2009

BPO 5132
Nosy @tarekziade
Files
  • distutils_command_build_ext.patch: Patch to enable extensions to link on Solaris
  • 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 = 'https://github.com/tarekziade'
    closed_at = <Date 2009-02-05.22:59:27.871>
    created_at = <Date 2009-02-02.18:28:11.956>
    labels = ['build', 'library']
    title = 'distutils: libpython not found when building python extensions on Solaris when Python was built with --enable-shared'
    updated_at = <Date 2009-02-05.22:59:27.870>
    user = 'https://bugs.python.org/dpeterson'

    bugs.python.org fields:

    activity = <Date 2009-02-05.22:59:27.870>
    actor = 'tarek'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2009-02-05.22:59:27.871>
    closer = 'tarek'
    components = ['Distutils']
    creation = <Date 2009-02-02.18:28:11.956>
    creator = 'dpeterson'
    dependencies = []
    files = ['12920']
    hgrepos = []
    issue_num = 5132
    keywords = ['patch']
    message_count = 2.0
    messages = ['80977', '81235']
    nosy_count = 2.0
    nosy_names = ['tarek', 'dpeterson']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue5132'
    versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

    @dpeterson
    Copy link
    Mannequin Author

    dpeterson mannequin commented Feb 2, 2009

    I've had trouble building Python extensions on Solaris if the Python
    install I'm using was built with the '--enable-shared' option. In
    tracking this down, it appears that the code in
    'distutils/command/build_ext.py' contains a number of statements to
    detect a similar situation for other platforms and explicitly add the
    'lib' dir option for the linker, but there is no similar detection for
    Solaris.

    I've attached a patch that fixes this and solves the problem for me. I
    simply extended the checking for 'linux' and 'gnu' platforms to also
    apply for 'sunos' platforms.

    @dpeterson dpeterson mannequin added stdlib Python modules in the Lib dir build The build process and cross-build labels Feb 2, 2009
    @tarekziade tarekziade mannequin self-assigned this Feb 2, 2009
    @tarekziade
    Copy link
    Mannequin

    tarekziade mannequin commented Feb 5, 2009

    fixed in r69316

    Thanks for the patch

    @tarekziade tarekziade mannequin closed this as completed Feb 5, 2009
    @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 stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants