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

Failed to compile client target due to missing libm linkage #400

Closed
runlevel5 opened this issue Apr 3, 2024 · 0 comments · Fixed by #401
Closed

Failed to compile client target due to missing libm linkage #400

runlevel5 opened this issue Apr 3, 2024 · 0 comments · Fixed by #401

Comments

@runlevel5
Copy link
Contributor

runlevel5 commented Apr 3, 2024

What?

When compiled with system openal-soft headers (v1.23.1) on Linux environment, I ran into following errors:

/usr/bin/ld: CMakeFiles/client.dir/client/entities.c.o: undefined reference to symbol 'atan2@@GLIBC_2.17'
/usr/bin/ld: /usr/lib64/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/client.dir/build.make:2961: /home/tle/Work/Q2RTX/q2rtx] Error 1
make[1]: *** [CMakeFiles/Makefile2:533: src/CMakeFiles/client.dir/all] Error 2

How to reproduce?

$  sudo dnf info openal-soft-devel
[sudo] password for tle:
Name         : openal-soft-devel
Version      : 1.23.1

$ gcc --version
gcc (GCC) 14.0.1 20240316 (Red Hat 14.0.1-0)

$ cmake --version
cmake version 3.28.2

$ cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_OPENAL=true && make -j256
runlevel5 added a commit to runlevel5/Q2RTX that referenced this issue Apr 3, 2024
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.

1 participant