Opened 5 years ago
Closed 5 years 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 by , 5 years ago
follow-up: 4 comment:2 by , 5 years ago
Please confirm that this issue is reproducible with current FFmpeg git head.
comment:3 by , 5 years ago
Keywords: | vaapi regression added |
---|---|
Priority: | normal → important |
comment:4 by , 5 years ago
Replying to cehoyos:
Please confirm that this issue is reproducible with current FFmpeg git head.
It is.
comment:5 by , 5 years ago
Version: | unspecified → git-master |
---|
comment:6 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
BTW, I have libva-2.2.0 installed