Created attachment 514192 [details] build log using 17.1 profile (no symlink) [100%] Linking CXX executable avidemux3_qt5 /usr/bin/cmake -E cmake_link_script CMakeFiles/avidemux3_qt5.dir/link.txt --verbose=1 /usr/bin/x86_64-gentoo-linux-gnu-g++ -O2 -pipe -fomit-frame-pointer -march=native -mtune=native -std=c++14 -fmessage-length=0 -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed -rdynamic CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_preview.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_previewNavigate.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_main.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_autodrive.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/GUI_jobs.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_navigate.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_play.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_save.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_savenew.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/main.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_action.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/gui_blackframes.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_gettext.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0/avidemux/common/ADM_slave.cpp.o -o avidemux3_qt5 -Wl,-rpath,/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildQt4/ADM_UIsQt4/src:/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildQt4/commonQt4/ADM_render:/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildQt4/ADM_openGL/src: commonQt4/ADM_muxerGate/src/libADM_muxerGate6.a commonQt4/ADM_audioFilter/src/libADM_audioFilter6.a commonQt4/ADM_editor/src/libADM_editor6.a commonQt4/ADM_audioCodec/src/libADM_audiocodec6.a commonQt4/ADM_videoCodec/src/libADM_videocodec6.a -lADM_coreVideoCodec6 commonQt4/ADM_commonUI/libADM_commonUI6.a -lADM_coreVDPAU6 -lADM_coreLibVA6 /usr/lib64/libADM6avcodec.so.57 /usr/lib64/libADM6avutil.so.55 -lADM_coreJobs commonQt4/ADM_osSupport/libADM_osSupport6.a commonQt4/ADM_script2/src/libADM_script6.a commonQt4/ADM_videoEncoder/src/libADM_videoEncoder6.a commonQt4/ADM_videoFilter2/src/libADM_internalVideoFilter6.a commonQt4/ADM_toolkit/libADM_toolkit6.a -lADM_core6 -lADM_audioParser6 -lADM_coreAudio6 -lADM_coreAudioFilterAPI6 -lADM_coreAudioDevice6 -lADM_coreAudioEncoder6 -lADM_coreDemuxer6 -lADM_coreImage6 -lADM_coreMuxer6 -lADM_coreUI6 -lADM_coreUtils6 -lADM_coreSocket6 -lADM_coreVideoEncoder6 -lADM_coreVideoFilter6 ADM_userInterfacesQT5/ADM_gui/libADM_guiQT5.a ADM_userInterfacesQT5/ADM_filters/libADM_filtersQT5.a ADM_userInterfacesQT5/ADM_dialog/libADM_dialogQt4.a ADM_update/src/libADM_updateQT56.a commonQt4/ADM_videoFilter2/src/libADM_internalVideoFilter6.a ADM_UIsQt4/src/libADM_UIQT56.so ADM_userInterfacesQT5/ADM_gui/libADM_guiQT5.a ADM_userInterfacesQT5/libADM_UI_QT56.a ADM_userInterfacesQT5/ADM_shell/libADM_shellQT5.a commonQt4/ADM_toolkit/libADM_toolkit6.a -lADM_coreAudio6 -lADM_coreAudioDevice6 commonQt4/ADM_osSupport/libADM_osSupport6.a /usr/lib64/libQt5Network.so.5.9.3 -lpthread -lm -lstdc++ -lX11 -lpthread -lADM_coreAudioFilterAPI6 -lADM_coreAudioEncoder6 -lADM_coreDemuxer6 -lADM_coreMuxer6 -lADM_coreSocket6 -lADM_coreVideoEncoder6 -lpthread -lm -lstdc++ -lX11 -lpthread -lm -lstdc++ -lX11 -lADM_coreScript -lADM_coreVideoFilter6 commonQt4/ADM_render/libADM_render6_QT5.so -lADM_coreVDPAU6 ADM_openGL/src/libADM_openGLQT56.so -lADM_core6 -lADM_coreImage6 -lADM_coreUI6 /usr/lib64/libQt5OpenGL.so.5.9.3 /usr/lib64/libQt5Widgets.so.5.9.3 /usr/lib64/libQt5Gui.so.5.9.3 -lGL -lGLU -lXv -lADM_coreUtils6 /usr/lib64/libQt5Core.so.5.9.3 commonQt4/ADM_render/libADM_render6_QT5.so: error: undefined reference to 'XShmAttach' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/avidemux3_qt5.dir/build.make:474: avidemux3_qt5] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildQt4' make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/avidemux3_qt5.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildQt4' make: *** [Makefile:133: all] Error 2 * ERROR: media-video/avidemux-2.7.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-video/avidemux-2.7.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-video/avidemux-2.7.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-video/avidemux-2.7.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/avidemux-2.7.0/temp/environment'. * Working directory: '/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux-2.7.0_build/buildQt4' * S: '/var/tmp/portage/media-video/avidemux-2.7.0/work/avidemux_2.7.0'
# emerge --info '=media-video/avidemux-2.7.0::gentoo' Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.1/no-multilib, gcc-7.2.0, glibc-2.26-r5, 4.14.12-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.14.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200U_CPU_@_1.60GHz-with-gentoo-2.4.1 KiB Mem: 8079444 total, 3240216 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Wed, 10 Jan 2018 08:30:01 +0000 Head commit of repository gentoo: df83291b6825f78e26c5b8b38df49bc1546e43a7 sh bash 4.4_p12 ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14 distcc 3.2rc1 x86_64-gentoo-linux-gnu [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo dev-util/cmake: 3.10.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 7.2.0-r1::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r5::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: local location: /usr/local/portage/overlay masters: gentoo priority: 0 proaudio location: /var/lib/layman/proaudio masters: gentoo priority: 50 xmw location: /var/lib/layman/xmw masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE as-is freedist" CBUILD="x86_64-gentoo-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native" CHOST="x86_64-gentoo-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="fr_BE.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="fr nl fr_FR fr_BE nl_NL nl_BE" MAKEOPTS="-j7 -l5" PKGDIR="/var/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apng branding bzip2 cairo cdda cddb cdio cli crossdev crypt cryptsetup css cups cxx dbus dlna dri dssi dts dvb dvd exif flac gif glamor gpm gtk gudev iconv joystick jpeg lcms libcanberra libinput libnotify libsamplerate mad matroska mmx mng modules mp3 mpeg mtp natspec ncurses network nls nptl ocr ogg opengl openmp opus osc pam pango pcre pdf png printsupport python3 qt5 readline rubberband sane scanner sdl seccomp sna sndfile snmp spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev unicode upnp usb uxa vaapi vdpau vorbis wmf wps x264 xattr xcb xinerama xml xosd xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ice1712 hda-intel usb-audio virmidi" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse libinput joystick" KERNEL="linux" L10N="fr nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="ftdi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
and gold linker
You will need to add append-ldflags -lXext to the ebuild.
> append-ldflags -lXext Works like magic :-)
Does it reproduce for avidemux-2.7.3?
Yes, it's still missing the -lXext linker flag in 2.7.3. /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver2 -fstack-protector-strong -fstack-check -std=c++14 -fmessage-length=0 -Wl, -O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avide mux-2.7.3/work/avidemux2-2.7.3/avidemux/common/ADM_preview.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2 .7.3/work/avidemux2-2.7.3/avidemux/common/ADM_previewNavigate.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemu x-2.7.3/work/avidemux2-2.7.3/avidemux/common/gui_main.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/ work/avidemux2-2.7.3/avidemux/common/gui_autodrive.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/wor k/avidemux2-2.7.3/avidemux/common/GUI_jobs.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidem ux2-2.7.3/avidemux/common/gui_navigate.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2- 2.7.3/avidemux/common/gui_play.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/gui_save.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/gui_savenew.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/main.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/gui_action.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/gui_blackframes.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/ADM_gettext.cpp.o CMakeFiles/avidemux3_qt5.dir/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux2-2.7.3/avidemux/common/ADM_slave.cpp.o -o avidemux3_qt5 -Wl,-rpath,/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux-2.7.3_build/buildQt4/ADM_UIsQt4/src:/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux-2.7.3_build/buildQt4/commonQt4/ADM_render:/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux-2.7.3_build/buildQt4/ADM_openGL/src: commonQt4/ADM_muxerGate/src/libADM_muxerGate6.a commonQt4/ADM_audioFilter/src/libADM_audioFilter6.a commonQt4/ADM_editor/src/libADM_editor6.a commonQt4/ADM_audioCodec/src/libADM_audiocodec6.a commonQt4/ADM_videoCodec/src/libADM_videocodec6.a -lADM_coreVideoCodec6 commonQt4/ADM_commonUI/libADM_commonUI6.a -lADM_coreVDPAU6 -lADM_coreLibVA6 -lADM_coreLibVAEnc6 /usr/lib64/libADM6avcodec.so.58 /usr/lib64/libADM6avutil.so.56 -lADM_coreJobs commonQt4/ADM_osSupport/libADM_osSupport6.a commonQt4/ADM_script2/src/libADM_script6.a commonQt4/ADM_videoEncoder/src/libADM_videoEncoder6.a commonQt4/ADM_videoFilter2/src/libADM_internalVideoFilter6.a commonQt4/ADM_toolkit/libADM_toolkit6.a -lADM_core6 -lADM_audioParser6 -lADM_coreAudio6 -lADM_coreAudioFilterAPI6 -lADM_coreAudioDevice6 -lADM_coreAudioEncoder6 -lADM_coreDemuxer6 -lADM_coreImage6 -lADM_coreMuxer6 -lADM_coreUI6 -lADM_coreUtils6 -lADM_coreSocket6 -lADM_coreVideoEncoder6 -lADM_coreVideoFilter6 ADM_userInterfacesQT5/ADM_gui/libADM_guiQT5.a ADM_userInterfacesQT5/ADM_filters/libADM_filtersQT5.a ADM_userInterfacesQT5/ADM_dialog/libADM_dialogQt4.a ADM_update/src/libADM_updateQT56.a commonQt4/ADM_videoFilter2/src/libADM_internalVideoFilter6.a ADM_UIsQt4/src/libADM_UIQT56.so ADM_userInterfacesQT5/ADM_gui/libADM_guiQT5.a ADM_userInterfacesQT5/libADM_UI_QT56.a ADM_userInterfacesQT5/ADM_shell/libADM_shellQT5.a commonQt4/ADM_toolkit/libADM_toolkit6.a -lADM_coreAudio6 -lADM_coreAudioDevice6 commonQt4/ADM_osSupport/libADM_osSupport6.a /usr/lib64/libQt5Network.so.5.12.3 -lpthread -lm -lstdc++ -lX11 -lpthread -lADM_coreAudioFilterAPI6 -lADM_coreAudioEncoder6 -lADM_coreDemuxer6 -lADM_coreMuxer6 -lADM_coreSocket6 -lADM_coreVideoEncoder6 -lpthread -lm -lstdc++ -lX11 -lpthread -lm -lstdc++ -lX11 -lADM_coreScript -lADM_coreVideoFilter6 commonQt4/ADM_render/libADM_render6_QT5.so -lADM_coreVDPAU6 ADM_openGL/src/libADM_openGLQT56.so -lADM_core6 -lADM_coreImage6 -lADM_coreUI6 /usr/lib64/libQt5Widgets.so.5.12.3 /usr/lib64/libQt5Gui.so.5.12.3 -lGL -lGLU -lXv -lADM_coreUtils6 /usr/lib64/libQt5Core.so.5.12.3 commonQt4/ADM_render/libADM_render6_QT5.so: error: undefined reference to 'XShmAttach' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/avidemux3_qt5.dir/build.make:319: avidemux3_qt5] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux-2.7.3_build/buildQt4' make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/avidemux3_qt5.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/media-video/avidemux-2.7.3/work/avidemux-2.7.3_build/buildQt4' make: *** [Makefile:133: all] Error 2 * ERROR: media-video/avidemux-2.7.3::gentoo failed (compile phase): * emake failed
Does it reproduce for 2.7.4? (for me it does not, but it did for 2.7.3)
No, here it builds 2.7.4 without any issues, just warnings about unused CMake variables.
Thanks.