[Bug 257696] audio/openal-soft: Fails to link with JACK enabled: ERROR: ld-elf.so.1: /usr/local/lib/libopenal.so.1: Undefined symbol "jack_error_callback"

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 15 Jan 2022 21:26:20 UTC

--- Comment #14 from Sean Champ <lab+bsd@thinkum.space> ---
re: the build failure with GCC 11, I've tried a GCC 11 build with
--enable-libstdcxx-time added to CONFIGURE_ARGS then building openal-soft with
that GCC

* What is _GLIBCXX_USE_NANOSLEEP all about? (Stack Overflow)
* std::this_thread::sleep_for() and GCC (Stack Overflow)

vis a vis, at the second reference:
> error: ‘sleep_for’ is not a member of ‘std::this_thread’
> I looked in header 'thread'.
> sleep_for() is protected with _GLIBCXX_USE_NANOSLEEP

The build still fails under this compiler configuration. The build failure is
essentially the same as in that attached build log. Excerpt:

[ 13% 15/107] /usr/local/libexec/ccache/g++11 -DRESTRICT=__restrict
-I/wrkdirs/usr/ports/audio/openal-soft/work/openal-soft-1.21.1/utils -I>
FAILED: CMakeFiles/makemhr.dir/utils/makemhr/loadsofa.cpp.o 
/usr/local/libexec/ccache/g++11 -DRESTRICT=__restrict
../openal-soft-1.21.1/utils/makemhr/loadsofa.cpp: In function 'bool
LoadSofaFile(const char*, uint, uint, uint, ChannelModeT, HrirDataT*)':
../openal-soft-1.21.1/utils/makemhr/loadsofa.cpp:554:27: error: 'sleep_for' is
not a member of 'std::this_thread'
  554 |         std::this_thread::sleep_for(std::chrono::milliseconds{50});
      |                           ^~~~~~~~~

Though the gcc build has that added configure arg now, and may have some
additional features under related defines in the source tree, I'm not entirely
sure if the openal-soft build is using GNU libstdc++ in the build

Of course, this is probably unrelated to jackd.

You are receiving this mail because:
You are the assignee for the bug.