Skip to content

VLC failed to build on Ubuntu 22.04 relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5

I'm unable to compile a fresh vlc checkout on Ubuntu 22.04. I see no errors in bootstrap or configure. I previously built vlc successfully when this machine was Ubuntu 20.04, so I think I have the dependencies installed correctly.

jlquinn@cerberus:~/sw/src/vlc/vlc$ git log | head -1 commit bc0ae475

Tail of the output from make:

  CC       posix/libvlccore_la-picture.lo
  CC       posix/libvlccore_la-spawn.lo
  CC       posix/libvlccore_la-specific.lo
  CC       posix/libvlccore_la-getaddrinfo.lo
  CC       stream_output/libvlccore_la-sap.lo
  CC       stream_output/libvlccore_la-stream_output.lo
stream_output/stream_output.c: In function ‘sout_MuxGetStream’:
stream_output/stream_output.c:520:9: warning: ‘vlc_fifo_Count’ is deprecated [-Wdeprecated-declarations]
  520 |         if( block_FifoCount( p_input->p_fifo ) < i_blocks )
      |         ^~
In file included from ../include/vlc_block.h:26,
                 from stream_output/stream_output.c:48:
../include/vlc_frame.h:845:22: note: declared here
  845 | static inline size_t vlc_fifo_Count (vlc_fifo_t *fifo)
      |                      ^~~~~~~~~~~~~~
  CC       input/libvlccore_la-vlm.lo
  CC       input/libvlccore_la-vlm_event.lo
  CC       input/libvlccore_la-vlmshell.lo
  CCLD     libvlccore.la
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-sysdeps.o): warning: relocation against `stderr@@GLIBC_2.2.5' in read-only section `.text'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-sysdeps.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:3126: libvlccore.la] Error 1
make[3]: Leaving directory '/home/jlquinn/sw/src/vlc/vlc/src'
make[2]: *** [Makefile:2470: all] Error 2
make[2]: Leaving directory '/home/jlquinn/sw/src/vlc/vlc/src'
make[1]: *** [Makefile:1640: all-recursive] Error 1
make[1]: Leaving directory '/home/jlquinn/sw/src/vlc/vlc'
make: *** [Makefile:1527: all] Error 2

Please let me know what other information you need to investigate further.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information