Skip to content

Install fails building wheel on alpine 3.15 #445

@cessor

Description

@cessor

Issue description:

python-ldap does not build on Alpine 3.15.

Wheel Build crashes with error (build log attached)

/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lldap_r

Steps to reproduce:

FROM python:alpine3.15
RUN apk add --update build-base openldap-dev python2-dev python3-dev && rm -rf /var/cache/apk/*
RUN pip install --no-cache-dir python-ldap

Operating system:

  • Alpine 3.15

Python version:

  • 3.10.0

python-ldap version:

  • 3.4.0

Notes:

  • This issue does not exist with Alpine 3.14 (to verify, please change Dockerfile to FROM python:alpine3.14)

broken-on-python-alpine3.15.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions