Skip to content

autotools configure fails on Ubuntu because pkg-config is forced into static mode #822

Closed

Description

@lenamonj

On Ubuntu 26.04 with libssl-dev installed, ./configure from the committed autotools script aborts:

checking for library containing EVP_EncryptInit... no
configure: error: can't find compatible openssl crypto lib

configure.ac appends --static to PKG_CONFIG unconditionally, so PKG_CHECK_MODULES and the AC_SEARCH_LIBS probes link every entry of libcrypto's Libs.private. Ubuntu's libcrypto.pc names -l:libjitterentropy.a, and no package installs that archive, so the probe that links a trivial program against a dynamic libcrypto fails on the static line. pkg-config --static --libs libcrypto shows the entry; pkg-config --libs libcrypto is just -lcrypto, and dropping the --static makes ./configure and make succeed on the same host. The CMake and Meson builds are unaffected.

Removing the line narrows the generated libsrtp3.pc's Libs.private, and the NSS backend uses the same path, so this is a maintainer call: drop --static, or apply it only for a static build (--disable-shared / --enable-static). Happy to send either as a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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