It's failing with "invalid conversion" errors again.
Upstream package has removed the previous fix after rebuilding against a newer libupnp. Doing the same change to this PKGBUILD makes it build again.
| Git Clone URL: | https://aur.archlinux.org/vlc-luajit.git (read-only, click to copy) |
|---|---|
| Package Base: | vlc-luajit |
| Description: | Multi-platform MPEG, VCD/DVD, and DivX player built with luajit for OBS Studio compatibility |
| Upstream URL: | https://www.videolan.org/vlc/ |
| Keywords: | luajit media obs obs-studio vlc |
| Licenses: | GPL-2.0-or-later, LGPL-2.1-or-later |
| Submitter: | tytan652 |
| Maintainer: | tytan652 |
| Last Packager: | tytan652 |
| Votes: | 22 |
| Popularity: | 0.64 |
| First Submitted: | 2021-05-11 19:45 (UTC) |
| Last Updated: | 2026-04-04 08:30 (UTC) |
It's failing with "invalid conversion" errors again.
Upstream package has removed the previous fix after rebuilding against a newer libupnp. Doing the same change to this PKGBUILD makes it build again.
Trying to build this but running into a couple of invalid conversion errors like this one:
services_discovery/upnp.cpp: In static member function ‘static int Access::Upnp_i11e_cb::run(Upnp_EventType, UpnpEventPtr, void*)’:
services_discovery/upnp.cpp:974:34: error: invalid conversion from ‘UpnpEventPtr’ {aka ‘const void*’} to ‘void*’ [-fpermissive]
Presumably this is because the compiler has become a bit more strict.
I added -fpermissive to CPPFLAGS to get it to compile for now.
(Though the proper solution would be for the code to be fixed.)
edit: Official package fixed it here.
vlc-3.0.21-fix-opus-crash.patch ... FAILED
did not pass validity check when used:
git clone https://aur.archlinux.org/vlc-luajit.git
makepkg --sign -s
Edited PKGBUILD sha512sum 7359e40e537dfd9e1894d392e7759896d29a5179a0e6db051cafd26d7ea873837012c564f8adf3bbba43616deaf915fbc3254a0dcb08c3b47437dabfbfa5b9db
didn't compile without manual intervention. remove:
#include <gst/gstbufferpool.h>
#include <gst/video/gstvideopool.h>
from: modules/codec/gstreamer/gstvlcvideopool.h
then compile using makepkg --noextract -si as for extraction not to override changes
source for changes: https://code.videolan.org/videolan/vlc/-/merge_requests/8479.patch
failing to compile. i updated the sha512 for vlc-3.0.21-fix-opus-crash.patch. now receiving an error which may or may not have something to do with gstreamer...
In file included from /usr/include/glib-2.0/glib/gmacros.h:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/include/stddef.h:468:9: note: this is the location of the previous definition
468 | #define unreachable() (__builtin_unreachable ())
| ^~~~~~~~~~~
make[4]: *** [Makefile:22705: codec/gstreamer/libgstdecode_plugin_la-gstvlcvideopool.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:22712: codec/gstreamer/libgstdecode_plugin_la-gstvlcvideosink.lo] Error 1
make[4]: Leaving directory '/home/user/.cache/paru/clone/vlc-luajit/src/vlc-3.0.21/modules'
make[3]: *** [Makefile:28318: all-recursive] Error 1
make[3]: Leaving directory '/home/user/.cache/paru/clone/vlc-luajit/src/vlc-3.0.21/modules'
make[2]: *** [Makefile:12950: all] Error 2
make[2]: Leaving directory '/home/user/.cache/paru/clone/vlc-luajit/src/vlc-3.0.21/modules'
make[1]: *** [Makefile:1577: all-recursive] Error 1
make[1]: Leaving directory '/home/user/.cache/paru/clone/vlc-luajit/src/vlc-3.0.21'
make: *** [Makefile:1464: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
This kind of message is just a compile warning, let it run:
make[3]: Entering directory '/home/user/bkbuild_vlc-luajit/vlc-luajit/src/vlc-3.0.21/compat'
CC dummy.lo
CC strnstr.lo
In file included from strnstr.c:22:
../config.h:927:9: warning: ‘_FORTIFY_SOURCE’ redefined
927 | #define _FORTIFY_SOURCE 2
| ^~~~~~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
sha512 for vlc-3.0.21-fix-opus-crash.patch has changed. 7359e40e537dfd9e1894d392e7759896d29a5179a0e6db051cafd26d7ea873837012c564f8adf3bbba43616deaf915fbc3254a0dcb08c3b47437dabfbfa5b9db
468 | #define unreachable() (__builtin_unreachable ())
| ^~~~~~~~~~~
CC access/http/libvlc_http_la-tunnel.lo
In file included from access/http/tunnel.c:22:
../config.h:927:9: warning: ‘_FORTIFY_SOURCE’ redefined
927 | #define _FORTIFY_SOURCE 2
| ^~~~~~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
In file included from access/http/tunnel.c:31:
../include/vlc_common.h:115:10: warning: ‘unreachable’ redefined
115 | # define unreachable() __builtin_unreachable()
| ^~~~~~~~~~~
In file included from ../include/vlc_fixups.h:97,
from ../config.h:1004:
/usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/include/stddef.h:468:9: note: this is the location of the previous definition
468 | #define unreachable() (__builtin_unreachable ())
| ^~~~~~~~~~~
CC access/http/libvlc_http_la-connmgr.lo
In file included from access/http/connmgr.c:22:
../config.h:927:9: warning: ‘_FORTIFY_SOURCE’ redefined
927 | #define _FORTIFY_SOURCE 2
| ^~~~~~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
In file included from access/http/connmgr.c:26:
../include/vlc_common.h:115:10: warning: ‘unreachable’ redefined
115 | # define unreachable() __builtin_unreachable()
| ^~~~~~~~~~~
In file included from ../include/vlc_fixups.h:97,
from ../config.h:1004:
/usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/include/stddef.h:468:9: note: this is the location of the previous definition
468 | #define unreachable() (__builtin_unreachable ())
| ^~~~~~~~~~~
this repeats infinitely trying to do
yay -S vlc-plugin-luajit
:(
Following the comment of @brunofontes, I'm trying that path I've installed osb-studio, vlc and libvlc, but step 2 isn't working:
>yay -Syu vlc-plugin-luajit
[trim noise]
resolving dependencies...
looking for conflicting packages...
:: vlc-plugin-luajit-3.0.21-1 and vlc-plugin-lua-3.0.21-26 are in conflict. Remove vlc-plugin-lua? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing vlc-plugin-lua breaks dependency 'vlc-plugin-lua=3.0.21' required by vlc-gui-qt
-> error installing repo packages
If I go down the path of trying to remove vlc-gui-qt then it starts getting into kde base dependencies. Am I missing something?
Pinned Comments
tytan652 commented on 2025-07-09 10:49 (UTC) (edited on 2025-07-09 18:55 (UTC) by tytan652)
Arch Linux split the
vlcpackage between it's plugins.This package has been refactored to only replace
vlc-plugin-lua, updating will require manual intervention:vlc(andlibvlc)vlc-plugin-luajitvlc-luajit