Opened 7 days ago

Closed 15 minutes ago

#7538 closed defect (fixed)

Build failure for ffmpeg-4.1

Reported by: PPed72 Owned by:
Priority: important Component: build system
Version: git-master Keywords: vaapi regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Trying to build ffmpeg-4.1 on Gentoo with vaapi enabled and vdpau disabled fails because libX11 is not linked in.

How to reproduce:
# USE="vaapi -vdpau" emerge -1 ffmpeg
[...]
x86_64-pc-linux-gnu-gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=8 -march=sandybridge -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fno-math-errno -fno-signed-zeros -flto -march=sandybridge -fno-tree-vectorize -o tools/aviocat tools/aviocat.o -lavformat -lavcodec -lswresample -lavutil -lm -lbz2 -lgmp -lz -lssl -lcrypto -lssh -lsmbclient -lvpx -lm -lvpx -lm -lvpx -lm -lvpx -lm -lwebpmux -lwebp -pthread -lm -llzma -lopencore-amrwb -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lz -lfdk-aac -lmp3lame -lm -lopencore-amrnb -lopenjp2 -lopus -lspeex -ltheoraenc -ltheoradec -logg -lvorbis -lvorbisenc -lwebp -lx264 -lx265 -lxvidcore -lkvazaar -lva -lm -lsoxr -pthread -lva-drm -lva -lva-x11 -lva -lm -lva
libavutil/libavutil.so: error: undefined reference to 'XCloseDisplay'
libavutil/libavutil.so: error: undefined reference to 'XDisplayName'
libavutil/libavutil.so: error: undefined reference to 'XOpenDisplay'
collect2: error: ld returned 1 exit status

Reverting commit https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/a00763be8861bcf499675b2af89d29e4e113cdc9

fixes the issue for me.

Gentoo bug is: https://bugs.gentoo.org/670590

Change History (6)

comment:1 Changed 7 days ago by PPed72

BTW, I have libva-2.2.0 installed

comment:2 follow-up: Changed 7 days ago by cehoyos

Please confirm that this issue is reproducible with current FFmpeg git head.

comment:3 Changed 7 days ago by cehoyos

  • Keywords vaapi regression added
  • Priority changed from normal to important

comment:4 in reply to: ↑ 2 Changed 7 days ago by PPed72

Replying to cehoyos:

Please confirm that this issue is reproducible with current FFmpeg git head.

It is.

comment:5 Changed 7 days ago by cehoyos

  • Version changed from unspecified to git-master

comment:6 Changed 15 minutes ago by jkqxz

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.