Vlc-git-4.0.0.r11553 (AUR) install problem

Hey there,
I cannot install VLC 4-git-4.0 compiling from AUR, and stops & shows error message saying:

volume.c:(.text+0x25e): undefined reference to luaL_openlib' /usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function vlclua_xml_create’:
xml.c:(.text+0x8): undefined reference to lua_newuserdata' /usr/bin/ld: xml.c:(.text+0x55): undefined reference to luaL_openlib’
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function vlclua_xml_create_reader': xml.c:(.text+0xb7): undefined reference to lua_newuserdata’
/usr/bin/ld: xml.c:(.text+0x10d): undefined reference to luaL_openlib' /usr/bin/ld: lua/libs/.libs/liblua_plugin_la-io.o: in function vlclua_io_open’:
io.c:(.text+0x10b): undefined reference to lua_newuserdata' /usr/bin/ld: io.c:(.text+0x17d): undefined reference to luaL_openlib’
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-io.o: in function luaopen_vlcio': io.c:(.text+0xaee): undefined reference to luaL_openlib’
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-rand.o: in function luaopen_rand': rand.c:(.text+0xde): undefined reference to luaL_openlib’
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-renderers.o: in function vlclua_rd_create': renderers.c:(.text+0x17): undefined reference to lua_newuserdata’
/usr/bin/ld: renderers.c:(.text+0xfd): undefined reference to luaL_openlib' /usr/bin/ld: lua/libs/.libs/liblua_plugin_la-renderers.o: in function luaopen_rd’:
renderers.c:(.text+0x76e): undefined reference to `luaL_openlib’
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:17184: liblua_plugin.la] Error 1
make[4]: se sale del directorio ‘/home/endeavos/.cache/yay/vlc-git/src/vlc/modules’
make[3]: *** [Makefile:32074: all-recursive] Error 1
make[3]: se sale del directorio ‘/home/endeavos/.cache/yay/vlc-git/src/vlc/modules’
make[2]: *** [Makefile:13479: all] Error 2
make[2]: se sale del directorio ‘/home/endeavos/.cache/yay/vlc-git/src/vlc/modules’
make[1]: *** [Makefile:1578: all-recursive] Error 1
make[1]: se sale del directorio ‘/home/endeavos/.cache/yay/vlc-git/src/vlc’
make: *** [Makefile:1463: all] Error 2
==> ERROR: Se produjo un fallo en build().
error compilando: vlc-git
Press any key to continue…
[endeavos@endeavos-inspiron5459 ~]$

What is wrong with the normal vlc package?

yay -S vlc

Edit: Sorry, I just noticed you are trying to install version 4

Might be worth trying it with makepkg and if that doesn’t help, in a clean chroot (e.g. makechrootpkg).

Edit: Just tested, and it builds OK for me in a clean chroot.

==> Leaving fakeroot environment.
==> Finished making: vlc-git 4.0.0.r12972.g384526b412-1 (Thu 03 Sep 2020 02:00:39 AM BST)

Possibly you have a held-back lua package?

Yeah, on the AUR package page:

Clean chroot FTW.


Thank you so much @jonathon , both methods worked fine … you rock , mate. :+1:t2: