[Bug 269091] multimedia/mpv: Issues with Luajit-devel with other pkgs and error compiling MPV default option

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 22 Jan 2023 02:17:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269091

            Bug ID: 269091
           Summary: multimedia/mpv: Issues with Luajit-devel with other
                    pkgs and error compiling  MPV default option
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: multimedia@FreeBSD.org
          Reporter: info@jeaholding.com
             Flags: maintainer-feedback?(multimedia@FreeBSD.org)
          Assignee: multimedia@FreeBSD.org

So it looks like the MPV package has slightly deviated from others, packages
like the obs-studio and began using libluajit-5.1.so : lang/luajit-devel
instead of the libluajit-5.1.so : lang/luajit as in the port address makefile.
This is causing conflict in packages like OBS-studio to record and mpv as
player. 

I tried compiling from source (since it uses the lang/luajit instead of the
luajit-devel) and notice there is another issue/bug when compiling with default
options.

fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.


(when putting MAKE_JOBS_UNSAFE = yes was not able to compile).

===>  Building for mpv-0.33.0_6,1
Waf: Entering directory `/usr/ports/multimedia/mpv/work/mpv-0.33.0/build'
[1/1] Compiling version.sh
20:42:54 runner ' sh ../version.sh
--cwd="/usr/ports/multimedia/mpv/work/mpv-0.33.0"
--versionh="generated/version.h" '
[ 42/493] Compiling video/out/vulkan/context_xlib.c
20:42:55 runner ['cc', '-O2', '-pipe', '-DLIBICONV_PLUG',
'-fstack-protector-strong', '-isystem', '/usr/local/include',
'-fno-strict-aliasing', '-D_ISOC99_SOURCE', '-D_GNU_SOURCE',
'-D_FILE_OFFSET_BITS=64', '-Wall', '-std=c11',
'-Werror=implicit-function-declaration', '-Wno-error=deprecated-declarations',
'-Wno-error=unused-function', '-Wempty-body', '-Wdisabled-optimization',
'-Wstrict-prototypes', '-Wno-format-zero-length', '-Werror=format-security',
'-Wno-redundant-decls', '-Wvla', '-Wimplicit-fallthrough', '-fno-math-errno',
'-Wall', '-Wundef', '-Wmissing-prototypes', '-Wshadow', '-Wno-switch',
'-Wparentheses', '-Wpointer-arith', '-Wno-pointer-sign', '-Wno-unused-result',
'-Wno-logical-op-parentheses', '-fcolor-diagnostics',
'-Wno-tautological-compare', '-Wno-tautological-constant-out-of-range-compare',
'-pthread', '-I/usr/local/include', '-pthread', '-pthread', '-pthread', '-I.',
'-I..', '-I../../../../../../local/include',
'-I../../../../../../local/include/lua52',
'-I../../../../../../local/include/libepoll-shim',
'-I../../../../../../local/include/freetype2',
'-I../../../../../../local/include/libpng16',
'-I../../../../../../local/include/harfbuzz',
'-I../../../../../../local/include/glib-2.0',
'-I../../../../../../local/lib/glib-2.0/include',
'-I../../../../../../local/include/fribidi',
'-I../../../../../../local/include/libdrm',
'-I../../../../../../local/include/uchardet', '-D_THREAD_SAFE',
'-D_THREAD_SAFE', '-D_THREAD_SAFE', '../video/out/vulkan/context_xlib.c', '-c',
'-o/usr/ports/multimedia/mpv/work/mpv-0.33.0/build/video/out/vulkan/context_xlib.c.29.o',
'-DLIBICONV_PLUG', '-isystem', '/usr/local/include']
../video/out/vulkan/context_xlib.c:61:33: error: incomplete definition of type
'struct pl_vk_inst'
    VkInstance inst = vk->vkinst->instance;
                      ~~~~~~~~~~^
../video/out/vulkan/common.h:32:18: note: forward declaration of 'struct
pl_vk_inst'
    const struct pl_vk_inst *vkinst;
                 ^
1 error generated.

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