From nobody Sat Jan 15 09:45:43 2022 X-Original-To: multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1B73F195652C for ; Sat, 15 Jan 2022 09:45:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JbYFM5z0Mz581j for ; Sat, 15 Jan 2022 09:45:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A957E24D88 for ; Sat, 15 Jan 2022 09:45:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20F9jhdT059328 for ; Sat, 15 Jan 2022 09:45:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20F9jhrC059327 for multimedia@FreeBSD.org; Sat, 15 Jan 2022 09:45:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [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" Date: Sat, 15 Jan 2022 09:45:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lab+bsd@thinkum.space X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642239943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BQ7nGbg43FbtDKuv+NCs9+pmUOqHVjbJ8GcbtT4tuco=; b=SAyLXZZvFOp1EtaYpfJIup3J3Wq9ZyUa4dmTlunfyQjxXYJwpo3zSMj3yx9SjJ0tQmhV5W /cDApbjf+1JamfvbIx5ltaOS0COKxUuknWU1ym90NmHU7iyfZnITe9jW8hbqDASE4j7m1D PPwKapjdDcjn3nO0yJSc3eEXpbM+3LDKICa92Qb7ztW02kiyp6L8FgFGxra/ZQvx3mLkTw hCMFdO5KknCkrnvRYY5xim4D7h6FoRWOx8Zl2s+cVR9CSCu7wXNJ26dE+EHuRvsNmDY4cP +K/2E+8ODj/tifQ2Lu1weVRltnCQGDaIc70rtUWqPLSVDUhf0UWVobXnLdeDjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642239943; a=rsa-sha256; cv=none; b=v2Fb35SCfcPEO7l4o8/aKRMF2cJ0zZRwTr1plcJlaQ4FmE5pzZHAcTsYqqO5EQFcnroCJd 4f4+TColb5Q+XgB7ssEXTLjjcYara2uKxuU0wo3AmYM6teHqIu1ruRHtvyVBOYWqQZF5ph JEhXuUVk7OPFRCjbmhWWTR1ww5OxzcjVL6Nnx5aPQCXY0dphTHUWLg7YcPJknnj0SOZfMM STgU5diWAcW/C/saCP87R7w6w6MvoNgT8Zeq9YU0Jyr/BvuBQtc+Y/ozipgy854exGcbMW vz/b0eZbpLd0pYYj/nYkfd2NTkxYAmJLWBDN8VUSlIWpVPHSaRqbdEKuBHaeBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257696 Sean Champ changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lab+bsd@thinkum.space --- Comment #8 from Sean Champ --- I've seen this error also, compiling multimedia/ffmpeg with jack enabled, w= ith clang 13 in FreeBSD 12.3-STABLE. An excerpt of the build log for multimedia/ffmpeg=20 ~~~~ /usr/local/libexec/ccache/clang -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed -lm -Wl,-rpath,/> /usr/local/libexec/ccache/clang -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed -lm -Wl,-rpath,/> ld: error: /usr/local/lib/libopenal.so: undefined reference to jack_error_callback [--no-allow-shlib-undefined] clang: error: linker command failed with exit code 1 (use -v to see invocat= ion) gmake[2]: *** [Makefile:124: ffplay_g] Error 1 gmake[2]: *** Waiting for unfinished jobs.... ld: error: /usr/local/lib/libopenal.so: undefined reference to jack_error_callback [--no-allow-shlib-undefined] clang: error: linker command failed with exit code 1 (use -v to see invocat= ion) gmake[2]: *** [Makefile:124: ffmpeg_g] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/multimedia/ffmpeg/work/ffmpeg-4.4.1' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/multimedia/ffmpeg ~~~~ -ljack does show up in the compiler call, so there went my first guess ... After the tip about possible side effects with weak pointers here, then loo= king at the work src file for jack work/jack2-eaedec353489f26617221d66f80fd2503953c663/common/jack/weakmacros.h ~~~~ #ifndef JACK_WEAK_EXPORT #ifdef __GNUC__ /* JACK_WEAK_EXPORT needs to be a macro which expands into a compiler directive. If non-null, the directive must tell the compiler to arrange for weak linkage of the symbol it used with. For this to work full may require linker arguments in the client as well. */ #ifdef _WIN32 /* Not working with __declspec(dllexport) so normal linking Linking with JackWeakAPI.cpp will be the preferred way. */ #define JACK_WEAK_EXPORT #else #define JACK_WEAK_EXPORT __attribute__((WEAK_ATTRIBUTE)) #endif ~~~~ Maybe JACK_WEAK_EXPORT is not being defined when the build is produced with clang? As a workaround, I'll try building Jack with GCC, the openal-soft and ffmpeg after. Hopefully it may clear up then --=20 You are receiving this mail because: You are the assignee for the bug.=