Skip to content

LIBUDNS in src/CMakeLists.txt pointing to libcares.a may not work for newer Debian releases #3024

@yku12cn

Description

@yku12cn

LIBUDNS in src/CMakeLists.txt is pointing to libcares.a.

However, for some newer Debian release with libc-ares-dev 1.27.0-1.0ubuntu1, the correct file to link should be libcares_static.a.

I tested building the latest release on a Ubuntu 24.04.3 LTS machine and got LIBUDNS missing error. After changing it to libcares_static.a, the build is successful.

I also tested building on Ubuntu 22.04.5 LTS with libc-ares-dev 1.18.1-1ubuntu0 and it turns out to be ok with the original libcares.a

I'm not sure how to generalize this to make it compatible with both older and newer system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions