Skip to content

.libs/unitmain.o:unitmain.c:function main: error: undefined reference to 'ENGINE_cleanup' #175

@noloader

Description

@noloader

Hi Everyone,

I'm testing Unbound on Android. Android testing is limited to compile and link. Also see PR #174.

OpenSSL and Expat are built for the tests. OpenSSL is built with no-asm no-hw no-engine.

The Android tests are failing with an error message from the linker:

.libs/unitmain.o:unitmain.c:function main: error: undefined reference to 'ENGINE_cleanup'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:360: recipe for target 'unittest' failed

In testcode/unitmain.c, it looks like the header is guarded as expected:

#ifdef HAVE_OPENSSL_ENGINE_H
#include <openssl/engine.h>
#endif

However, the call to ENGINE_cleanup() is not guarded:

#  ifdef HAVE_OPENSSL_CONFIG
#  ifdef HAVE_EVP_CLEANUP
	EVP_cleanup();
#  endif
	ENGINE_cleanup();
	CONF_modules_free();
#  endif

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