/usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/usbtop.dir/buses.cpp.o CMakeFiles/usbtop.dir/console_output.cpp.o CMakeFiles/usbtop.dir/main.cpp.o CMakeFiles/usbtop.dir/pcap_compat.cpp.o CMakeFiles/usbtop.dir/should_stop.cpp.o CMakeFiles/usbtop.dir/tools.cpp.o CMakeFiles/usbtop.dir/usb_bus.cpp.o CMakeFiles/usbtop.dir/usb_device.cpp.o CMakeFiles/usbtop.dir/usb_stats.cpp.o -o usbtop -lpcap -lboost_thread-mt -lboost_system-mt -lboost_chrono-mt -lboost_date_time-mt -lboost_atomic-mt /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/usbtop.dir/main.cpp.o: undefined reference to symbol 'pthread_condattr_setclock@@GLIBC_2.3.3' /lib64/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [src/CMakeFiles/usbtop.dir/build.make:210: src/usbtop] Error 1 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-plasma_libressl_20181109-050110 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) [4] pypy (fallback) [5] jython2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) [2] ruby24 (with Rubygems) [3] ruby25 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.9.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpvO sys-process/usbtop [ebuild R ] sys-process/usbtop-0.2
Created attachment 555634 [details] emerge-info.txt
Created attachment 555636 [details] emerge-history.txt
Created attachment 555638 [details] environment
Created attachment 555640 [details] etc.portage.tbz2
Created attachment 555642 [details] logs.tbz2
Created attachment 555644 [details] sys-process:usbtop-0.2:20181118-160826.log
Created attachment 555646 [details] temp.tbz2
This is reported in https://github.com/aguinet/usbtop/issues/16 and also has a proposed workaround: https://github.com/aguinet/usbtop/pull/15 https://github.com/aguinet/usbtop/pull/15/commits/d5eca7df4dd380b3a393e4f35b718bfe7846b641
Adding kde@ (CMake maintainer). Ideally find_package(boost COMPONENT thread) should pull in required libraries.
This looks like cmake-side fix: https://gitlab.kitware.com/cmake/cmake/commit/bd831ed0948a1e99f573f0056f2bee5d3b21009e https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563479 Recently released cmake-3.13.0 contains the fix.
cmake-3.13.1 is in ::gentoo and builds usbtop just fine.