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

ctypes.util.find_library fails with gcc 9 #86142

Closed
pablogsal opened this issue Oct 8, 2020 · 5 comments
Closed

ctypes.util.find_library fails with gcc 9 #86142

pablogsal opened this issue Oct 8, 2020 · 5 comments
Assignees
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes topic-ctypes

Comments

@pablogsal
Copy link
Member

BPO 41976
Nosy @pablogsal, @miss-islington
PRs
  • bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 #22598
  • [3.9] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) #22599
  • [3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) #22600
  • [3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598) #22601
  • 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/pablogsal'
    closed_at = <Date 2020-10-08.19:04:10.144>
    created_at = <Date 2020-10-08.17:17:51.322>
    labels = ['ctypes', '3.7', '3.8', '3.9', '3.10']
    title = 'ctypes.util.find_library fails with gcc 9'
    updated_at = <Date 2020-10-08.19:04:10.144>
    user = 'https://github.com/pablogsal'

    bugs.python.org fields:

    activity = <Date 2020-10-08.19:04:10.144>
    actor = 'pablogsal'
    assignee = 'pablogsal'
    closed = True
    closed_date = <Date 2020-10-08.19:04:10.144>
    closer = 'pablogsal'
    components = ['ctypes']
    creation = <Date 2020-10-08.17:17:51.322>
    creator = 'pablogsal'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41976
    keywords = ['patch']
    message_count = 5.0
    messages = ['378258', '378264', '378270', '378271', '378274']
    nosy_count = 2.0
    nosy_names = ['pablogsal', 'miss-islington']
    pr_nums = ['22598', '22599', '22600', '22601']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41976'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    @pablogsal
    Copy link
    Member Author

    Running ctypes.util.find_library with gcc-9, if ldconfig is not available, it falls back to check the output of gcc -Wl,-t -lc to locate the library and then runs objdump on the file it's found to parse out the SONAME. With the gcc-9 the output of that gcc command is slightly perturbed so that /lib64/libc.so is listed before /libc64/libc.so.6. The former is a linker script not and ELF file so objdump fails.

    @pablogsal pablogsal added 3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes labels Oct 8, 2020
    @pablogsal pablogsal self-assigned this Oct 8, 2020
    @pablogsal
    Copy link
    Member Author

    New changeset 27ac19c by Pablo Galindo in branch 'master':
    bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598)
    27ac19c

    @pablogsal
    Copy link
    Member Author

    New changeset 6ceb523 by Pablo Galindo in branch '3.8':
    [3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22600)
    6ceb523

    @pablogsal
    Copy link
    Member Author

    New changeset 9b5a023 by Pablo Galindo in branch '3.7':
    [3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598). (GH-22601)
    9b5a023

    @miss-islington
    Copy link
    Contributor

    New changeset a4ac5fa by Miss Skeleton (bot) in branch '3.9':
    bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 (GH-22598)
    a4ac5fa

    @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
    3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes topic-ctypes
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants