Page 1 of 1

undefined reference to `input_LegacyVarInit'

Posted: 02 Sep 2018 03:54
by jiapei100
Hi, all:

My working environment:
  • one: Ubuntu 18.04.1
  • two: $ gcc --version
    gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
    Copyright (C) 2017 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • three: VLC today's git (September 1, 2018) from
    https://github.com/videolan/vlc

Code: Select all

Making all in lib make[2]: Entering directory '....../vlc/lib' make all-am make[3]: Entering directory '....../vlc/lib' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '....../vlc/lib' make[2]: Leaving directory '....../vlc/lib' Making all in bin make[2]: Entering directory '....../vlc/bin' CCLD vlc CCLD vlc-cache-gen ../lib/.libs/libvlc.so: undefined reference to `input_LegacyVarInit' ../lib/.libs/libvlc.so: undefined reference to `input_LegacyEvents' ../lib/.libs/libvlc.so: undefined reference to `input_SetPosition' ../lib/.libs/libvlc.so: undefined reference to `input_SetTime' ../lib/.libs/libvlc.so: undefined reference to `vlc_tick_now' collect2: error: ld returned 1 exit status Makefile:1348: recipe for target 'vlc' failed make[2]: *** [vlc] Error 1 make[2]: *** Waiting for unfinished jobs.... ../lib/.libs/libvlc.so: undefined reference to `input_LegacyVarInit' ../lib/.libs/libvlc.so: undefined reference to `input_LegacyEvents' ../lib/.libs/libvlc.so: undefined reference to `input_SetPosition' ../lib/.libs/libvlc.so: undefined reference to `input_SetTime' ../lib/.libs/libvlc.so: undefined reference to `vlc_tick_now' collect2: error: ld returned 1 exit status Makefile:1352: recipe for target 'vlc-cache-gen' failed make[2]: *** [vlc-cache-gen] Error 1 make[2]: Leaving directory '....../vlc/bin' Makefile:1552: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '....../vlc' Makefile:1437: recipe for target 'all' failed make: *** [all] Error 2
Any suggestions?
Thank you very much
Pei

Re: undefined reference to `input_LegacyVarInit'

Posted: 03 Sep 2018 10:28
by Jean-Baptiste Kempf
You are mixing 2 versions of VLC

Re: undefined reference to `input_LegacyVarInit'

Posted: 03 Sep 2018 22:17
by jiapei100
You might be correct. I was actually building the most recent GIT version (should be 3.0.4), but with VLC from repository installed (version 3.0.3-1) .

However, I cannot remove the installed version 3.0.3-1 from repository because there are so many other packages relying on this one...