Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915607

Summary: media-libs/openal-1.23.1-r1 fails to find openal libs
Product: Gentoo Linux Reporter: asdfg <andrschwarz>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Complete build log
Patch taken from https://github.com/kcat/openal-soft/commit/7910f1afbdfb1ab886b3a9c7ac3165c7fd2065c0.patch

Description asdfg 2023-10-11 20:46:58 UTC
FAILED: openal-info 
: && /usr/lib/llvm/17/bin/clang -march=native -O3 -pipe  -Wl,-znow,-zrelro -pie -Wl,-O1 -Wl,--as-needed  -Wl,-znow,-zrelro -pie -Wl,-O2 -Wl,--as-needed -Wl,--allow-shlib-undefined    -rdynamic CMakeFiles/openal-info.dir/utils/openal-info.c.o -o openal-info  -Wl,-rpath,/tmp/portage/media-libs/openal-1.23.1-r1/work/openal-soft-1.23.1_build-abi_x86_64.amd64:  -pthread  libopenal.so.1.23.1 && :
x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcIsExtensionPresent
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 4 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcGetString
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 13 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcOpenDevice
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcGetProcAddress
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcGetIntegerv
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 5 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcGetError
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 7 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcCreateContext
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcMakeContextCurrent
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcDestroyContext
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alcCloseDevice
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alGetString
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 6 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alGetError
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 20 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alIsExtensionPresent
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alGetProcAddress
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced 4 more times

x86_64-gentoo-linux-musl-ld.lld: error: undefined symbol: alGetInteger
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
>>> referenced by openal-info.c
>>>               CMakeFiles/openal-info.dir/utils/openal-info.c.o:(main)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
 * ERROR: media-libs/openal-1.23.1-r1::gentoo failed (compile phase):
 *   ninja -v -j12 -l0 failed


version 1.22.2-r1 builds just fine.

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 openal
2. see the errors above
3. rejoice
Comment 1 asdfg 2023-10-11 20:47:28 UTC
Created attachment 872591 [details]
emerge --info
Comment 2 asdfg 2023-10-11 20:48:29 UTC
Created attachment 872592 [details]
Complete build log
Comment 3 asdfg 2023-10-11 23:44:24 UTC
Created attachment 872594 [details, diff]
Patch taken from https://github.com/kcat/openal-soft/commit/7910f1afbdfb1ab886b3a9c7ac3165c7fd2065c0.patch

It builds fine with this patch applied.

Thank you for your attention.