Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550916 - net-libs/libvncserver-0.9.10_p20160425[-gnutls,ssl,-threads] when compiling library users (e.g. x11-misc/x11vnc-*): libvncclient.so: undefined reference to `pthread_mutexattr_init'
Summary: net-libs/libvncserver-0.9.10_p20160425[-gnutls,ssl,-threads] when compiling l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Alex Xu (Hello71)
URL: https://github.com/LibVNC/libvncserve...
Whiteboard:
Keywords:
: 585014 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-01 00:56 UTC by Jack Morgan (RETIRED)
Modified: 2016-11-27 21:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
x11vnc-0.9.13_p20150111 build log (x11vnc-0.9.13_p20150111.log,36.18 KB, text/plain)
2015-06-01 00:59 UTC, Jack Morgan (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Morgan (RETIRED) gentoo-dev 2015-06-01 00:56:09 UTC
while verifying Bug 515268, <x11-misc/x11vnc-0.9.13_p20150111 failed to merge

Reproducible: Always




xwrappers.c: In function ‘upup_downdown_warning’:
xwrappers.c:890:3: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
xwrappers.c: In function ‘XTestFakeKeyEvent_wr’:
xwrappers.c:946:3: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
xwrappers.c: In function ‘xauth_raw’:
xwrappers.c:1428:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
ia64-unknown-linux-gnu-gcc  -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o x11vnc x11vnc-8to24.o x11vnc-appshare.o x11vnc-avahi.o x11vnc-cleanup.o x11vnc-connections.o x11vnc-cursor.o x11vnc-gui.o x11vnc-help.o x11vnc-inet.o x11vnc-keyboard.o x11vnc-linuxfb.o x11vnc-macosx.o x11vnc-macosxCG.o x11vnc-macosxCGP.o x11vnc-macosxCGS.o x11vnc-macosx_opengl.o x11vnc-options.o x11vnc-pm.o x11vnc-pointer.o x11vnc-rates.o x11vnc-remote.o x11vnc-scan.o x11vnc-screen.o x11vnc-selection.o x11vnc-solid.o x11vnc-sslcmds.o x11vnc-sslhelper.o x11vnc-uinput.o x11vnc-unixpw.o x11vnc-user.o x11vnc-userinput.o x11vnc-util.o x11vnc-v4l.o x11vnc-win_utils.o x11vnc-x11vnc.o x11vnc-x11vnc_defs.o x11vnc-xdamage.o x11vnc-xevents.o x11vnc-xinerama.o x11vnc-xkb_bell.o x11vnc-xrandr.o x11vnc-xrecord.o x11vnc-xwrappers.o x11vnc-xi2_devices.o -lvncserver  -lvncclient   -lssl -lcrypto -lcrypt  -lXtst -lXtst -lXtst  -lXext -lXrandr -lXfixes -lXdamage -lX11   -lXi     -lnsl 
/usr/lib/gcc/ia64-unknown-linux-gnu/4.7.4/../../../libvncclient.so: undefined reference to `pthread_mutexattr_settype'
/usr/lib/gcc/ia64-unknown-linux-gnu/4.7.4/../../../libvncclient.so: undefined reference to `pthread_mutexattr_init'
collect2: error: ld returned 1 exit status
Makefile:390: recipe for target 'x11vnc' failed
make[2]: *** [x11vnc] Error 1
make[2]: Leaving directory '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a/src'
Makefile:475: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a'
Makefile:351: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: x11-misc/x11vnc-0.9.13_p20150111::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-misc/x11vnc-0.9.13_p20150111::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/x11vnc-0.9.13_p20150111::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/x11-misc/x11vnc-0.9.13_p20150111:20150601-004018.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a'
 * S: '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a'
Comment 1 Jack Morgan (RETIRED) gentoo-dev 2015-06-01 00:59:37 UTC
Created attachment 404402 [details]
x11vnc-0.9.13_p20150111 build log
Comment 2 Alex Xu (Hello71) 2015-06-01 01:14:48 UTC
emerge --info libvncserver
Comment 3 Jack Morgan (RETIRED) gentoo-dev 2015-06-01 01:18:22 UTC
(stablereq) ichijiku ~ # emerge --info libvncserver
Portage 2.2.18 (python 3.4.1-final-0, default/linux/ia64/13.0, gcc-4.7.4, glibc-2.20-r2, 3.18.12-gentoo ia64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.12-gentoo-ia64-Madison_up_to_9M_cache-with-gentoo-2.2
KiB Mem:    16564432 total,   5531488 free
KiB Swap:     499984 total,    491712 free
Timestamp of repository gentoo: Mon, 01 Jun 2015 00:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.7.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/sandbox.d /etc/terminfo"
CTARGET=""
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --complete-graph --keep-going=y --quiet-unmerge-warn --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/distfiles http://distfiles.gentoo.org"
INSTALL_MASK=""
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/gentoo/packages"
PORTAGE_BUNZIP2_COMMAND="bunzip2"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/profile/exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm ia64 iconv ipv6 modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode zlib" ALSA_CARDS="intel" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU"
Unset:  CPPFLAGS, LC_ALL, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-libs/libvncserver-0.9.10-r1::gentoo was built with the following:
USE="24bpp ipv6 jpeg png ssl zlib -gcrypt -gnutls -static-libs -test -threads (-vaapi)"
Comment 4 Camille Huot 2016-02-09 15:28:23 UTC
I fell into this today.

x11vnc-0.9.13_p20150111 fails to compile because libvncserver didn't have "threads" USE.

Could you add a dep on libvncserver's USEs?
Comment 5 Jason Bassett 2016-04-20 09:43:51 UTC
Also affects me.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2016-06-04 14:22:32 UTC
*** Bug 585014 has been marked as a duplicate of this bug. ***
Comment 7 Alex Xu (Hello71) 2016-06-07 16:02:10 UTC
this is not technically underlinking, this is incorrect use by libvncserver. x11vnc correctly uses PKG_CHECK_MODULES to find libvncserver, so it does pick up the -lpthread if libvncserver is actually compiled [threads].
Comment 8 SpanKY gentoo-dev 2016-11-27 21:47:15 UTC
i've made the USE=ssl flag require USE=threads since the source code is hard coding pthreads requirements

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c0484d722082e016aebab6b90d7cbedec93857b