Date: Tue, 25 Aug 2020 09:16:22 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 248902] multimedia/obs-studio: fix new linker duplicate symbol error Message-ID: <bug-248902-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248902 Bug ID: 248902 Summary: multimedia/obs-studio: fix new linker duplicate symbol error Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: dch@freebsd.org Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Created attachment 217515 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217515&action= =3Dedit patch linker duplicate symbol error fix linker duplicate symbol gladGetProcAddressPtr The following error comes during build (poudriere 13.0-CURRENT amd64)" ld: error: duplicate symbol: gladGetProcAddressPtr >>> defined at glad.c >>>=20=20=20=20=20=20=20=20=20=20=20 deps/glad/CMakeFiles/glad.dir/src/glad.c.o:(gladGetProcAddressPtr) >>> defined at glad_glx.c >>> deps/glad/CMakeFiles/glad.dir/src/glad_glx.c.o:(.bss+0x8) cc: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Plucked from upstream commit c7f84f8fc4e90ef779a204ac268f5ee1a962e324 from = Jimi Huotari <chiitoo@gentoo.org>: deps/glad: Fix build with GCC-10 GCC-10 defaults to '-fno-common' [1], which triggers issues with defining global variables multiple times. To fix the build, use 'extern' to turn the first definition of 'gladGetProcAddressPtr' into a declaration. 1. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85678 Closes https://github.com/obsproject/obs-studio/issues/2828 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248902-7788>