Created attachment 359596 [details] build log Hi, x11-misc/synergy-1.4.12 fails to build on my machine : > CArchMultithreadPosix.cpp:(.text+0x257): undefined reference to `pthread_kill' > /home/portagetmp/portage/x11-misc/synergy-1.4.12/work/synergy-1.4.12-Source/lib/libarch.a(CArchMultithreadPosix.o): In function `CArchMultithreadPosix::newMutex()': x11-misc/synergy-1.4.10 builds fine. # emerge -pqv '=x11-misc/synergy-1.4.12::gentoo' [ebuild U ] x11-misc/synergy-1.4.12 [1.4.10] USE="qt4" # emerge --info '=x11-misc/synergy-1.4.12::gentoo' Portage 2.2.1 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.9.5-hardened x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.9.5-hardened-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-gentoo-2.2 KiB Mem: 3929940 total, 161228 free KiB Swap: 4200992 total, 2420732 free Timestamp of tree: Thu, 26 Sep 2013 14:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r2, 3.2.5-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo steam-overlay local Installed sets: @steam ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA skype-eula skype-4.0.0.7-copyright dlj-1.1 AdobeFlash-11.x googleearth Google-TOS" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -fomit-frame-pointer -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /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="-Os -fomit-frame-pointer -march=native -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync 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="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3 -l4 -s" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--progress" 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" PORTAGE_TMPDIR="/home/portagetmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/steam /usr/local/portage" USE="X a52 aac acpi alsa amd64 apache2 apng asf avahi bash-completion berkdb bzip2 cairo cjk cli consolekit cracklib crypt cups curl cxx dbus declarative device-mapper dia dri dts dvd dvdread ebook emacs encode exif ffmpeg flac fontconfig gd gdal gdbm geoip geolocation geos gif git glibc-omitfp gphoto2 grass hardened iconv icu inotify ipv6 ipw3945 java jingle jpeg jpeg2k json justify kde kipi laptop live llvm lto lzma mad matroska mmx mng mod modplug modules mozdevelop mozilla mp3 mpeg mpi mplayer mudflap multilib musicbrainz ncurses nptl nptlonly nspluginwrapper ogg opengl openmp opus orc pam pax_kernel pcre pdf pg-intdatetime php plasma png policykit postgres prison qt3support qt4 readline reports samba schroedinger secure-delete semantic-desktop session spatialite speex sql sqlite sqlite3 sse sse2 ssl startup-notification stream subtitles subversion svg system-sqlite telepathy theora threads tiff truetype unicode upnp urandom usb v4l v4l2 vorbis webkit wifi x264 xcb xcomposite xine xinerama xml xmp xscreensaver xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias access_compat auth_basic auth_digest authn_anon authn_default authn_file authz_default authn_core authz_core authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers ident include info log_config logio mem_cache mime mime_magic proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so socache_shmcb status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa intel" 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: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON
Created attachment 359616 [details, diff] synergy-1.4.12-pthread.patch Please test this patch. Save it in /etc/portage/patches/x11-misc/synergy/synergy-1.4.12-pthread.patch and run `emerge x11-misc/synergy' again.
That patch fixed the build, thanks for quick solution. Can't test the resulting binary right now, but will do so tonight.
I can confirm the patch makes synergy compile fine and work (have only tested it as client and not as server, but I gather it works as server too). Tested it on my laptop. Weird thing is that on my desktop (almost same env, amd64, same USE and same package versions) I did not need the patch to compile it.
Patch applied in 1.4.12 and 1.4.15. Thanks for the report!