Bug 267833 - multimedia/obs-studio: 27.2.4 build fails at v4l plugin.
Summary: multimedia/obs-studio: 27.2.4 build fails at v4l plugin.
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-17 20:09 UTC by Tomasz "CeDeROM" CEDRO
Modified: 2024-11-19 05:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
fixes plugins/v4l build problem. (378 bytes, patch)
2022-11-17 20:22 UTC, Tomasz "CeDeROM" CEDRO
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz "CeDeROM" CEDRO 2022-11-17 20:09:34 UTC
Hello world :-)

I wanted to fix exclusive dependencies between luajit and luajit-devel.. but obs-studio build now fails at v4l plugin. Details below.

I am using most recent git pull origin/master.

root@octagon:/usr/ports/multimedia/obs-studio # uname -a
FreeBSD octagon 13.1-STABLE FreeBSD 13.1-STABLE #0 stable/13-n253075-2b20cade1eca: Sun Nov 13 20:06:09 CET 2022     root@octagon:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64


root@octagon:/usr/ports/multimedia/obs-studio # make
===>  License GPLv2+ accepted by the user
===>   obs-studio-27.2.4_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by obs-studio-27.2.4_1 for building
===>  Extracting for obs-studio-27.2.4_1
=> SHA256 Checksum OK for obsproject-obs-studio-27.2.4_GH0.tar.gz.
=> SHA256 Checksum OK for obsproject-obs-browser-f1a61c5_GH0.tar.gz.
=> SHA256 Checksum OK for obsproject-obs-vst-aaa7b7f_GH0.tar.gz.
=> SHA256 Checksum OK for ecd7a59aed665eca0a50b99939ef28e04e144876.patch.
=> SHA256 Checksum OK for 445f39764b8f11f951d41d14ee57ae13f57b13d4.patch.
=> SHA256 Checksum OK for 46b3935959c0afd4d2128279912ee86f69e81048.patch.
=> SHA256 Checksum OK for 864cafd6e85be74e22637935d45fad33a4e7ce2a.patch.
===>  Patching for obs-studio-27.2.4_1
===>  Applying distribution patches for obs-studio-27.2.4_1
===>  Applying FreeBSD patches for obs-studio-27.2.4_1 from /usr/ports/multimedia/obs-studio/files
===>   obs-studio-27.2.4_1 depends on package: v4l_compat>=0 - found
===>   obs-studio-27.2.4_1 depends on executable: swig - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/bin/cmake - found
===>   obs-studio-27.2.4_1 depends on executable: ninja - found
===>   obs-studio-27.2.4_1 depends on package: pkgconf>=1.3.0_1 - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/bin/python3.9 - found
===>   obs-studio-27.2.4_1 depends on package: xorgproto>=0 - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/ice.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/sm.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/xcb.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/xcomposite.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/xfixes.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/xinerama.pc - found
===>   obs-studio-27.2.4_1 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - found
===>   obs-studio-27.2.4_1 depends on package: qt5-buildtools>=5.15 - found
===>   obs-studio-27.2.4_1 depends on package: qt5-qmake>=5.15 - found
===>   obs-studio-27.2.4_1 depends on shared library: libavcodec.so - found (/usr/local/lib/libavcodec.so)
===>   obs-studio-27.2.4_1 depends on shared library: libcurl.so - found (/usr/local/lib/libcurl.so)
===>   obs-studio-27.2.4_1 depends on shared library: libdbus-1.so - found (/usr/local/lib/libdbus-1.so)
===>   obs-studio-27.2.4_1 depends on shared library: libfdk-aac.so - found (/usr/local/lib/libfdk-aac.so)
===>   obs-studio-27.2.4_1 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)
===>   obs-studio-27.2.4_1 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
===>   obs-studio-27.2.4_1 depends on shared library: libjansson.so - found (/usr/local/lib/libjansson.so)
===>   obs-studio-27.2.4_1 depends on shared library: libmbedtls.so - found (/usr/local/lib/libmbedtls.so)
===>   obs-studio-27.2.4_1 depends on shared library: libpci.so - found (/usr/local/lib/libpci.so)
===>   obs-studio-27.2.4_1 depends on shared library: libspeexdsp.so - found (/usr/local/lib/libspeexdsp.so)
===>   obs-studio-27.2.4_1 depends on shared library: libsysinfo.so - found (/usr/local/lib/libsysinfo.so)
===>   obs-studio-27.2.4_1 depends on shared library: libudev.so - found (/usr/local/lib/libudev.so)
===>   obs-studio-27.2.4_1 depends on shared library: libv4l2.so - found (/usr/local/lib/libv4l2.so)
===>   obs-studio-27.2.4_1 depends on shared library: libvlc.so - found (/usr/local/lib/libvlc.so)
===>   obs-studio-27.2.4_1 depends on shared library: libwayland-client.so - found (/usr/local/lib/libwayland-client.so)
===>   obs-studio-27.2.4_1 depends on shared library: libx264.so - found (/usr/local/lib/libx264.so)
===>   obs-studio-27.2.4_1 depends on shared library: libxcb-ewmh.so - found (/usr/local/lib/libxcb-ewmh.so)
===>   obs-studio-27.2.4_1 depends on shared library: libxcb-image.so - found (/usr/local/lib/libxcb-image.so)
===>   obs-studio-27.2.4_1 depends on shared library: libxcb-keysyms.so - found (/usr/local/lib/libxcb-keysyms.so)
===>   obs-studio-27.2.4_1 depends on shared library: libxcb-render-util.so - found (/usr/local/lib/libxcb-render-util.so)
===>   obs-studio-27.2.4_1 depends on shared library: libxcb-util.so - found (/usr/local/lib/libxcb-util.so)
===>   obs-studio-27.2.4_1 depends on shared library: libxkbcommon.so - found (/usr/local/lib/libxkbcommon.so)
===>   obs-studio-27.2.4_1 depends on shared library: libluajit-5.1.so - found (/usr/local/lib/libluajit-5.1.so)
===>   obs-studio-27.2.4_1 depends on shared library: libjack.so - found (/usr/local/lib/libjack.so)
===>   obs-studio-27.2.4_1 depends on shared library: libpulse.so - found (/usr/local/lib/libpulse.so)
===>   obs-studio-27.2.4_1 depends on shared library: libsndio.so - found (/usr/local/lib/libsndio.so)
===>   obs-studio-27.2.4_1 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so)
===>   obs-studio-27.2.4_1 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so)
===>   obs-studio-27.2.4_1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>   obs-studio-27.2.4_1 depends on shared library: liblua-5.2.so - found (/usr/local/lib/liblua-5.2.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5Core.so - found (/usr/local/lib/qt5/libQt5Core.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5Gui.so - found (/usr/local/lib/qt5/libQt5Gui.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5Network.so - found (/usr/local/lib/qt5/libQt5Network.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5Svg.so - found (/usr/local/lib/qt5/libQt5Svg.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5Widgets.so - found (/usr/local/lib/qt5/libQt5Widgets.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5X11Extras.so - found (/usr/local/lib/qt5/libQt5X11Extras.so)
===>   obs-studio-27.2.4_1 depends on shared library: libQt5Xml.so - found (/usr/local/lib/qt5/libQt5Xml.so)
===>  Configuring for obs-studio-27.2.4_1
===>  Performing out-of-source build
/bin/mkdir -p /tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build
-- The C compiler identification is Clang 14.0.5
-- The CXX compiler identification is Clang 14.0.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OBS_VERSION: 27.2.4
-- Found OpenGL: /usr/local/lib/libOpenGL.so
-- Found X11: /usr/local/include
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found PkgConfig: /usr/local/bin/pkgconf (found version "1.8.0")
-- Checking for module 'egl'
--   Found egl, version 1.5
-- Found EGL: /usr/local/include
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.so (found version "58.134.100") found components: avcodec avdevice avutil avformat
-- Found Libcurl: /usr/local/sbin/../lib/libcurl.so
-- Scripting: Luajit supported
-- Scripting: Python 3 supported
CMake Deprecation Warning at deps/obs-scripting/obspython/CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0078 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at deps/obs-scripting/obspython/CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0086 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Found SWIG: /usr/local/bin/swig (found suitable version "4.0.2", minimum required is "2")
CMake Deprecation Warning at deps/obs-scripting/obslua/CMakeLists.txt:6 (cmake_policy):
  The OLD behavior for policy CMP0078 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at deps/obs-scripting/obslua/CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0086 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Using system Jansson library
-- XCB[XCB]: Found component XCB
-- Found XCB: /usr/local/lib/libxcb.so  found components: XCB
-- Found X11_XCB: /usr/local/lib/libX11-xcb.so
-- Found Wayland: /usr/local/lib/libwayland-client.so;/usr/local/lib/libwayland-server.so;/usr/local/lib/libwayland-egl.so;/usr/local/lib/libwayland-cursor.so 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found FFmpeg: /usr/local/lib/../lib/libavformat.so (found version "58.76.100") found components: avformat avutil swscale swresample avcodec
-- XCB[XINPUT]: Found component XINPUT
-- Found XCB: /usr/local/lib/libxcb-xinput.so  found components: XINPUT
-- XCB[XCB]: Found component XCB
-- XCB[COMPOSITE]: Found component COMPOSITE
-- XCB[DAMAGE]: Found component DAMAGE
-- XCB[DRI2]: Found component DRI2
-- XCB[EWMH]: Found component EWMH
-- XCB[GLX]: Found component GLX
-- XCB[ICCCM]: Found component ICCCM
-- XCB[IMAGE]: Found component IMAGE
-- XCB[KEYSYMS]: Found component KEYSYMS
-- XCB[RANDR]: Found component RANDR
-- XCB[RENDER]: Found component RENDER
-- XCB[RENDERUTIL]: Found component RENDERUTIL
-- XCB[SHAPE]: Found component SHAPE
-- XCB[SHM]: Found component SHM
-- XCB[SYNC]: Found component SYNC
-- XCB[UTIL]: Found component UTIL
-- XCB[XFIXES]: Found component XFIXES
-- XCB[XTEST]: Found component XTEST
-- XCB[XV]: Found component XV
-- XCB[XINPUT]: Found component XINPUT
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/local/lib/libxcb-xinput.so;/usr/local/lib/libxcb.so;/usr/local/lib/libxcb-composite.so;/usr/local/lib/libxcb-damage.so;/usr/local/lib/libxcb-dri2.so;/usr/local/lib/libxcb-ewmh.so;/usr/local/lib/libxcb-glx.so;/usr/local/lib/libxcb-icccm.so;/usr/local/lib/libxcb-image.so;/usr/local/lib/libxcb-keysyms.so;/usr/local/lib/libxcb-randr.so;/usr/local/lib/libxcb-render.so;/usr/local/lib/libxcb-render-util.so;/usr/local/lib/libxcb-shape.so;/usr/local/lib/libxcb-shm.so;/usr/local/lib/libxcb-sync.so;/usr/local/lib/libxcb-util.so;/usr/local/lib/libxcb-xfixes.so;/usr/local/lib/libxcb-xtest.so;/usr/local/lib/libxcb-xv.so;/usr/local/lib/libxcb-xinput.so;/usr/local/lib/libxcb-xinerama.so
-- Found PulseAudio - Audio Monitor enabled
-- Checking for modules 'gio-2.0;gio-unix-2.0'
--   Found gio-2.0, version 2.74.1
--   Found gio-unix-2.0, version 2.74.1
-- Using libavcodec for image loading in libobs
-- Found ZLIB: /usr/lib/../lib/libz.so
-- Found Wayland: /usr/local/lib/libwayland-client.so;/usr/local/lib/libwayland-server.so;/usr/local/lib/libwayland-egl.so;/usr/local/lib/libwayland-cursor.so  found components: Client
-- Found Xkbcommon: /usr/local/lib/libxkbcommon.so
CMake Warning (dev) at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (sysinfo)
  does not match the name of the calling package (Libsysinfo).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindLibsysinfo.cmake:18 (find_package_handle_standard_args)
  libobs/CMakeLists.txt:278 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found sysinfo: /usr/local/lib/libsysinfo.so
-- XCB[XCB]: Found component XCB
-- XCB[RANDR]: Found component RANDR
-- XCB[SHM]: Found component SHM
-- XCB[XFIXES]: Found component XFIXES
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/local/lib/libxcb.so;/usr/local/lib/libxcb-randr.so;/usr/local/lib/libxcb-shm.so;/usr/local/lib/libxcb-xfixes.so;/usr/local/lib/libxcb-xinerama.so  found components: XCB RANDR SHM XFIXES XINERAMA
-- Found Libv4l2: /usr/local/lib/libv4l2.so
-- Found UDev: /usr/local/lib/libudev.so
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.so (found version "58.134.100") found components: avcodec avutil avformat
-- Checking for module 'jack'
--   Found jack, version 1.9.21
-- Found jack: /usr/local/lib/libjack.so
-- Found LibVLC: /usr/local/include/vlc
-- Found OSS header: /usr/include/sys/soundcard.h
-- Found Sndio: /usr/local/lib/libsndio.so
-- Using the bundled VST header.
-- Found Libx264: /usr/local/lib/../lib/libx264.so
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.so (found version "58.134.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample
-- Checking for module 'libpci'
--   Found libpci, version 3.8.0
-- Found Libpci: /usr/local/lib/libpci.so
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.so (found version "58.134.100") found components: avcodec avutil avformat
-- Found MbedTLS: /usr/local/sbin/../lib/libmbedtls.so;/usr/local/sbin/../lib/libmbedcrypto.so;/usr/local/sbin/../lib/libmbedx509.so
-- Checking for module 'libftl'
--   Package 'libftl', required by 'virtual:world', not found
-- Found Libspeexdsp: /usr/local/sbin/../lib/libspeexdsp.so
-- Could NOT find LibAJANTV2 (missing: AJA_LIBRARIES_INCLUDE_DIR AJA_NTV2_LIB)
-- aja plugin disabled (deps not found)
-- Could NOT find LibAJANTV2 (missing: AJA_LIBRARIES_INCLUDE_DIR AJA_NTV2_LIB)
-- aja-output-ui plugin disabled (deps not found)
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BOOST_PYTHON_SUFFIX
    CMAKE_VERBOSE_MAKEFILE
    FETCHCONTENT_FULLY_DISCONNECTED


-- Build files have been written to: /tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build
===>  Building for obs-studio-27.2.4_1
[  0% 6/422] /usr/bin/cc -DGLAD_GLAPI_EXPORT_BUILD -DUSE_XDG -Dglad_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/glad/include -I/usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -DPIC -fvisibility=hidden -MD -MT deps/glad/CMakeFiles/glad.dir/src/glad_egl.c.o -MF deps/glad/CMakeFiles/glad.dir/src/glad_egl.c.o.d -o deps/glad/CMakeFiles/glad.dir/src/glad_egl.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/glad/src/glad_egl.c
[  0% 7/422] /usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/opts-parser -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT deps/opts-parser/CMakeFiles/opts-parser.dir/opts-parser.c.o -MF deps/opts-parser/CMakeFiles/opts-parser.dir/opts-parser.c.o.d -o deps/opts-parser/CMakeFiles/opts-parser.dir/opts-parser.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/opts-parser/opts-parser.c
[  0% 8/422] /usr/bin/cc -DUSE_XDG -D__STDC_CONSTANT_MACROS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/libcaption/caption -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -fPIC -MD -MT deps/libcaption/CMakeFiles/caption.dir/src/utf8.c.o -MF deps/libcaption/CMakeFiles/caption.dir/src/utf8.c.o.d -o deps/libcaption/CMakeFiles/caption.dir/src/utf8.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/libcaption/src/utf8.c
[  0% 9/422] /usr/bin/cc -DUSE_XDG -D__STDC_CONSTANT_MACROS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/libcaption/caption -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -fPIC -MD -MT deps/libcaption/CMakeFiles/caption.dir/src/srt.c.o -MF deps/libcaption/CMakeFiles/caption.dir/src/srt.c.o.d -o deps/libcaption/CMakeFiles/caption.dir/src/srt.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/libcaption/src/srt.c

(..)

[ 32% 144/422] /usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_v4l2_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-input.c.o -MF plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-input.c.o.d -o plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-input.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-input.c
[ 33% 145/422] /usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_v4l2_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o -MF plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o.d -o plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-output.c
FAILED: plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o
/usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_v4l2_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o -MF plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o.d -o plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-output.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-output.c
/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-output.c:297:12: error: static declaration of 'versionsort' follows non-static declaration
static int versionsort(const struct dirent **a, const struct dirent **b)
           ^
/usr/include/dirent.h:111:6: note: previous declaration is here
int      versionsort(const struct dirent **, const struct dirent **);
         ^
1 error generated.
[ 33% 145/422] /usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_v4l2_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-helpers.c.o -MF plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-helpers.c.o.d -o plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-helpers.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-helpers.c
[ 33% 145/422] /usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_v4l2_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-mjpeg.c.o -MF plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-mjpeg.c.o.d -o plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-mjpeg.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-mjpeg.c
[ 33% 145/422] /usr/bin/cc -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_v4l2_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing -std=gnu99 -fno-strict-aliasing -O2 -pipe -march=bdver2  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-udev.c.o -MF plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-udev.c.o.d -o plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/v4l2-udev.c.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-v4l2/v4l2-udev.c
[ 34% 145/422] /usr/bin/c++ -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_capture_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/glad/include -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Wno-missing-field-initializers -O2 -pipe -march=bdver2 -fstack-protector-strong -fno-strict-aliasing -fno-strict-aliasing -O2 -pipe -march=bdver2 -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -fPIC -mmmx -msse -msse2 -std=c++17 -MD -MT plugins/linux-capture/CMakeFiles/linux-capture.dir/xcompcap-helper.cpp.o -MF plugins/linux-capture/CMakeFiles/linux-capture.dir/xcompcap-helper.cpp.o.d -o plugins/linux-capture/CMakeFiles/linux-capture.dir/xcompcap-helper.cpp.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-capture/xcompcap-helper.cpp
[ 34% 145/422] /usr/bin/c++ -DHAVE_OBSCONFIG_H -DUSE_XDG -Dlinux_capture_EXPORTS -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/.build/config -I/tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/deps/glad/include -isystem /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/libobs -isystem /usr/local/include -Wall -Wextra -Wvla -Wno-unused-function -Wno-missing-field-initializers -O2 -pipe -march=bdver2 -fstack-protector-strong -fno-strict-aliasing -fno-strict-aliasing -O2 -pipe -march=bdver2 -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -fPIC -mmmx -msse -msse2 -std=c++17 -MD -MT plugins/linux-capture/CMakeFiles/linux-capture.dir/xcompcap-main.cpp.o -MF plugins/linux-capture/CMakeFiles/linux-capture.dir/xcompcap-main.cpp.o.d -o plugins/linux-capture/CMakeFiles/linux-capture.dir/xcompcap-main.cpp.o -c /tmp/ports-build/usr/ports/multimedia/obs-studio/work/obs-studio-27.2.4/plugins/linux-capture/xcompcap-main.cpp
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/multimedia/obs-studio
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/obs-studio
Comment 1 Tomasz "CeDeROM" CEDRO 2022-11-17 20:22:27 UTC
Created attachment 238146 [details]
fixes plugins/v4l build problem.

Putting this patch in files/ fixes the issue for me. Please verify :-)
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2024-11-19 05:25:03 UTC
This port is now at the version 30.2.3 and it successfully builds on all platforms w/out any fallout.

Please reopen if you would be able to reproduce the problem with the current port version.