Created attachment 436078 [details] config.log >>> Emerging (1 of 1) x11-misc/x11vnc-0.9.14::gentoo * x11vnc-0.9.14.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked in /var/tmp/portage/x11-misc/x11vnc-0.9.14/work >>> Preparing source in /var/tmp/portage/x11-misc/x11vnc-0.9.14/work/x11vnc-0.9.14 ... * Running eautoreconf in '/var/tmp/portage/x11-misc/x11vnc-0.9.14/work/x11vnc-0.9.14' ... * Running aclocal -I m4 ... [ ok ] * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy --foreign --force-missing ... [ ok ] * Running elibtoolize in: x11vnc-0.9.14/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-misc/x11vnc-0.9.14/work/x11vnc-0.9.14 ... * econf: updating x11vnc-0.9.14/config.guess with /usr/share/gnuconfig/config.guess * econf: updating x11vnc-0.9.14/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --without-avahi --with-crypt --without-fbdev --without-ssl --without-crypto --without-v4l --without-xinerama checking for a BSD-compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for a sed that does not truncate output... /bin/sed checking for crypt... no checking for crypt in -lcrypt... no checking how to run the C preprocessor... /lib/cpp checking for X... libraries /usr/lib, headers checking whether -R must be followed by a space... neither works checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... no checking for gethostbyname in -lbsd... no checking for connect... no checking for connect in -lsocket... no checking for remove... no checking for remove in -lposix... no checking for shmat... no checking for shmat in -lipc... no checking for IceConnectionNumber in -lICE... no checking for XGetImage in -lX11... no configure: error: ========================================================================== *** A working X window system build environment is required to build *** x11vnc. Make sure any required X development packages are installed. If they are installed in non-standard locations, one can use the --x-includes=DIR and --x-libraries=DIR configure options or set the CPPFLAGS and LDFLAGS environment variables to indicate where the X window system header files and libraries may be found. On 64+32 bit machines you may need to point to lib64 or lib32 directories to pick up the correct word size. If you want to build x11vnc without X support (e.g. for -rawfb use only or for native Mac OS X), specify the --without-x configure option. ========================================================================== # emerge --info x11vnc xorg-server Portage 2.3.0_rc1 (python 2.7.11-final-0, default/linux/amd64/13.0/systemd, gcc-5.3.0, glibc-2.23-r2, 4.6.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.6.0-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_660_@_3.33GHz-with-gentoo-2.2 KiB Mem: 7976224 total, 1567292 free KiB Swap: 8885588 total, 7792376 free Timestamp of repository gentoo: Wed, 01 Jun 2016 11:04:50 +0000 sh bash 4.3_p42-r2 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r2::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.5.1-r2::gentoo dev-util/cmake: 3.5.2-r1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.21::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2-r2::gentoo sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 java location: /var/lib/layman/java sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/java.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-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" LANG="pl_PL.utf8" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/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="acl aes amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri dri3 fortran gdbm iconv icu libressl mmx mmxext modules multilib ncurses nptl openmp pam pcre popcnt readline seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 symlink systemd tcpd udev unicode vdpau xattr 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="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" 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 ublox ubx" INPUT_DEVICES="void" 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="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="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" USE_PYTHON="3.5" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-misc/x11vnc-0.9.14::gentoo was built with the following: USE="crypt libressl ssl -avahi -fbcon -xinerama" ABI_X86="64" x11-base/xorg-server-1.18.3::gentoo was built with the following: USE="libressl systemd udev xorg -dmx -doc -glamor -ipv6 -kdrive -minimal (-selinux) -static-libs -suid -tslib -unwind -wayland -xephyr -xnest -xvfb" ABI_X86="64" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"
After adding crypt useflag the following error appears: x11vnc.c: In function 'store_homedir_passwd': x11vnc.c:1760:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system("stty -echo"); ^ x11vnc.c:1763:3: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system("stty echo"); ^ x11vnc.c:1771:3: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system("stty echo"); ^ x11vnc.c:1775:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system("stty echo"); ^ xwrappers.c: In function 'upup_downdown_warning': xwrappers.c:890:3: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] char *str = XKeysymToString(XKeycodeToKeysym(dpy, key, 0)); ^ In file included from x11vnc.h:77:0, from xwrappers.c:35: /usr/include/X11/Xlib.h:1687:15: note: declared here extern KeySym XKeycodeToKeysym( ^ xwrappers.c: In function 'XTestFakeKeyEvent_wr': xwrappers.c:946:3: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] char *str = XKeysymToString(XKeycodeToKeysym(dpy, key, 0)); ^ In file included from x11vnc.h:77:0, from xwrappers.c:35: /usr/include/X11/Xlib.h:1687:15: note: declared here extern KeySym XKeycodeToKeysym( ^ xwrappers.c: In function 'xauth_raw': xwrappers.c:1428:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(tmp_fd, xauth_raw_data, xauth_raw_len); ^ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -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 -lXcomposite -lXcursor -lX11 -lXi -lcairo -lnsl x11vnc-sslhelper.o: In function `enc_do': sslhelper.c:(.text+0x720c): undefined reference to `EVP_sha' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:401: x11vnc] Error 1 make[2]: Leaving directory '/var/tmp/portage/x11-misc/x11vnc-0.9.14/work/x11vnc-0.9.14/src' make[1]: *** [Makefile:486: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-misc/x11vnc-0.9.14/work/x11vnc-0.9.14' make: *** [Makefile:363: all] Error 2
Are you able to reproduce the first failure about -lX11? This bug needs to be about that OR the crypt/ssl failure, not both. The first failure about -lX11 looks like it's not detecting your CC / gcc command properly: configure:5318: -o conftest -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed conftest.c -lX11 -L/usr/lib -lX11 >&5 ./configure: line 1627: -o: command not found
OK, I've checked deeper and second one is reproducible no matter whether crypt flag is enabled or not. There is always undefined reference to `EVP_sha'. It seems that it is related to libressl update. The first one is currently reproducible if all useflags are unset (-ssl -libressl -crypt). As shown in attached logs I have gcc 5.3.0 and it is working. Only that case fails.
please attach an actual build.log with the specific USE flags to demonstrate any problem. if there is a configure error, additionally attach config.log.
$ emerge --info x11vnc Portage 2.3.0_rc1 (python 2.7.11-final-0, default/linux/amd64/13.0/systemd, gcc-5.3.0, glibc-2.23-r2, 4.6.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.6.1-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_660_@_3.33GHz-with-gentoo-2.2 KiB Mem: 7976224 total, 469032 free KiB Swap: 8885588 total, 8869836 free Timestamp of repository gentoo: Fri, 03 Jun 2016 16:21:10 +0000 sh bash 4.3_p42-r2 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r2::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.5.1-r2::gentoo dev-util/cmake: 3.5.2-r1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.21::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2-r2::gentoo sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 java location: /var/lib/layman/java sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/java.git masters: gentoo priority: 50 libressl location: /var/lib/layman/libressl sync-type: laymansync sync-uri: https://github.com/gentoo/libressl.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-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" LANG="pl_PL.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/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="acl aes amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri dri3 fortran gdbm iconv icu libressl mmx mmxext modules multilib ncurses nptl openmp pam pcre popcnt readline seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 symlink systemd tcpd udev unicode vdpau xattr 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="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" 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 ublox ubx" INPUT_DEVICES="void" 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="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="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" USE_PYTHON="3.5" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-misc/x11vnc-0.9.14::gentoo was built with the following: USE="crypt libressl ssl -avahi -fbcon -xinerama" ABI_X86="64"
Created attachment 436330 [details] build.log
Let's try solve problem with undefined reference first. Build.log is attached and emerge --info with useflags posted.
Looks like this LibreSSL porting issue: https://wiki.freebsd.org/LibreSSL/PatchingPorts#SHA-0
I don't want to spend time supporting libressl. if you can provide a patch (preferably upstreamed), I can review. otherwise, please remove libressl support from the package (which, for the record, I did not agree to adding in the first place).
Bug with no XGetImage in -lX11 reported as https://bugs.gentoo.org/show_bug.cgi?id=584968
(In reply to Alex Xu (Hello71) from comment #9) > I don't want to spend time supporting libressl. if you can provide a patch > (preferably upstreamed), I can review. otherwise, please remove libressl > support from the package (which, for the record, I did not agree to adding > in the first place). I don't want to burden anyone with libressl. Just cc or assign to me.
Both issues are now fixed in upstream.
Would like to see this resolved so that we can re-open bug 589164 :) !
[master a2dee49] x11-misc/x11vnc: Version bump by Alex Xu (Hello71) fixing bugs #526796, #584788 and others. 2 files changed, 61 insertions(+) create mode 100644 x11-misc/x11vnc/x11vnc-0.9.14_p20161013.ebuild