Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libmavsdk-dev_2.12.1_debian12_arm64 - fails to link (cmake) #2334

Closed
PavelGuzenfeld opened this issue Jun 4, 2024 · 2 comments · Fixed by #2335
Closed

libmavsdk-dev_2.12.1_debian12_arm64 - fails to link (cmake) #2334

PavelGuzenfeld opened this issue Jun 4, 2024 · 2 comments · Fixed by #2335

Comments

@PavelGuzenfeld
Copy link

PavelGuzenfeld commented Jun 4, 2024

Following #2328 fix, cmake fails to link.

Last tested mavsdk working version - libmavsdk-dev_2.0.1_debian11_arm64.deb

Error trace:

/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'pthread_create', version 'GLIBC_2.34'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'pthread_join', version 'GLIBC_2.34'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'pthread_detach', version 'GLIBC_2.34'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'pthread_once', version 'GLIBC_2.34'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to '__libc_single_threaded', version 'GLIBC_2.32'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'pthread_cond_clockwait', version 'GLIBC_2.34'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'fstat64', version 'GLIBC_2.33'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'pthread_mutex_trylock', version 'GLIBC_2.34'
/usr/lib/libmavsdk.so.2.12.1: error: undefined reference to 'stat64', version 'GLIBC_2.33'

Investigation trace:

$ uname -a
Linux dcs 5.10.104-tegra #1 SMP PREEMPT Thu Jul 20 07:48:15 CEST 2023 aarch64 aarch64 aarch64 GNU/Linux

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"

$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.14) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

The issue seems to be glibc version=2.31 and debian11.

Kindly add back support for debian11.

@julianoes
Copy link
Collaborator

I don't think CI worked:

image

There is no artifact that I can see. I think the renaming didn't work and they are overwritten. I'll have to give it another go.

@julianoes
Copy link
Collaborator

Let's see if this is fixed with https://github.com/mavlink/MAVSDK/releases/tag/v2.12.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants