Skip to content

make check fails with --disable-static #1056

@xry111

Description

@xry111

Describe the bug

make check fails with --disable-static.

To Reproduce

./configure --prefix=/usr --disable-static && make && make check

It produces:

/usr/bin/ld: test_auth_keyboard_info_request.o: in function `main':
test_auth_keyboard_info_request.c:(.text.startup+0xec): undefined reference to `userauth_keyboard_interactive_decode_info_request'
/usr/bin/ld: test_auth_keyboard_info_request.c:(.text.startup+0x201): undefined reference to `userauth_keyboard_interactive_decode_info_request'
collect2: error: ld returned 1 exit status

Expected behavior

Test succeeds.

Version:

  • OS and version: Linux (Linux From Scratch)
  • libssh2 version: 1.11.0
  • crypto backend and version: OpenSSL

Additional context

It looks like the reason is userauth_keyboard_interactive_decode_info_request not exported in the shared library because we are linking libssh2.so with -export-symbols-regex '^libssh2_.*'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions