Bug #5504
building error
100%
Description
/usr/bin/ld: /root/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:709: recipe for target '/root/tvheadend/build.linux/tvheadend' failed
make2: * [/root/tvheadend/build.linux/tvheadend] Error 1
make2: Leaving directory '/root/tvheadend'
debian/rules:15: recipe for target 'override_dh_auto_build' failed
make1: [override_dh_auto_build] Error 2
make1: Leaving directory '/root/tvheadend'
debian/rules:6: recipe for target 'build' failed
make: ** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
History
Updated by saen acro almost 6 years ago
Ricardo Rocha wrote:
/usr/bin/ld: /root/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:709: recipe for target '/root/tvheadend/build.linux/tvheadend' failed make[2]: *** [/root/tvheadend/build.linux/tvheadend] Error 1 make[2]: Leaving directory '/root/tvheadend' debian/rules:15: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory '/root/tvheadend' debian/rules:6: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
What os/version?
Updated by Ricardo Rocha almost 6 years ago
AUTOBUILD_CONFIGURE_EXTRA="--enable-ccache --enable-ffmpeg_static --enable-hdhomerun_static" ./Autobuild.sh -t bionic-amd64
Updated by saen acro almost 6 years ago
Ricardo Rocha wrote:
> -t bionic-amd64
this can be removed it's autodetected, when local build used
cat buildtvh.sh #!/bin/bash BASE=$(dirname "$0") ( if [ -d "$BASE/tvheadend" ]; then cd "$BASE/tvheadend" git pull else cd "$BASE" git clone https://github.com/tvheadend/tvheadend.git tvheadend cd "$BASE/tvheadend" fi time AUTOBUILD_CONFIGURE_EXTRA="–-disable-bintray_cache --disable-hdhomerun_client --disable-hdhomerun_static " ./Autobuild.sh -j$(nproc) ) | tee "$BASE/build.log"
in my script, build without any problem on 18.04
Updated by Ricardo Rocha almost 6 years ago
saen acro wrote:
Is make distclean was been used?
yes....
even deleted all build directory manually and make a new git clone!
Updated by Ricardo Rocha almost 6 years ago
@Jaroslav it seens like -lX11 flag is missing somewhere could you point the right direction?
Updated by Bastian Kleinschmidt almost 6 years ago
hi, i can confirm
CC tvheadend
/usr/bin/ld: /apps/tvheadend/tvheadend-master/build.linux/ffmpeg/build/ffmpeg/lib/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO aus der Kommandozeile fehlt
collect2: error: ld returned 1 exit status
Makefile:709: recipe for target '/apps/tvheadend/tvheadend-master/build.linux/tvheadend' failed
make[1]: *** [/apps/tvheadend/tvheadend-master/build.linux/tvheadend] Error 1
make[1]: Verzeichnis „/apps/tvheadend/tvheadend-master“ wird verlassen
Makefile:107: recipe for target 'ffmpeg_all' failed
make: *** [ffmpeg_all] Error 2
build in ubuntu 18.04 with
./configure --enable-bundle --enable-ffmpeg_static --enable-libffmpeg_static --enable-libx264 --enable-libx265 --enable-vaapi --extra-libs=-lpthread
Updated by saen acro almost 6 years ago
confirming error inside Windows Subsystem for Linux
no video devices inside container
/usr/bin/ld: /opt/tvheadend/build.linux/ffmpeg/build/ffmpeg/lib/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:709: recipe for target '/opt/tvheadend/build.linux/tvheadend' failed make[2]: *** [/opt/tvheadend/build.linux/tvheadend] Error 1 make[2]: Leaving directory '/opt/tvheadend' debian/rules:15: recipe for target 'override_dh_auto_build' failed make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory '/opt/tvheadend' debian/rules:6: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2
Updated by Bastian Kleinschmidt almost 6 years ago
Reverting back to ffmpeg 4.0 (makefile.ffmpeg) fix the problem for me.
Updated by saen acro almost 6 years ago
Any one have idea how to solve problem with Ubuntu 18.04?
Updated by Anonymous almost 6 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|d250c1844798791a1354254a60545d4be5ada197.