Skip to content

CMake build for plugins/message-timestamp cannot find opensslconf.h with cross-compiler #2160

Closed
@Ozaq

Description

@Ozaq

In a cross-build environment I noticed that that the CMake build for plugins/message-timestamp with TLS enabled is currently broken because opensslconf.h cannot be found. Note the header is only missing for this specific target.

I had a cursory look at the CMake file and it seems that plugins/message-timestamp/CMakeLists.txt is not adding ${OPENSSL_INCLUDE_DIRECTORIES} to to the include directories. opensslconf.h is transitively included by config.h

This does not seem to be an issue in a non-cross build because because /usr/include and /usr/local/include are part of the default include paths. This is not the case when using a cross compiler.

Additionally this seems to be a regression between 1.6.x and 2.0.x as I discovered this during an upgrade from 1.6 to 2.0 in the same build environment.

Edit:spelling

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