Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548434 - x11-misc/x11vnc-0.9.13_p20150111 configure check on XGetImage fails
Summary: x11-misc/x11vnc-0.9.13_p20150111 configure check on XGetImage fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Alex Xu (Hello71)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-02 21:53 UTC by Orson Teodoro
Modified: 2015-10-19 01:11 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,29.35 KB, patch)
2015-05-02 21:55 UTC, Orson Teodoro
Details | Diff
emerge --info (emerge.info.txt,3.41 KB, text/plain)
2015-05-02 21:56 UTC, Orson Teodoro
Details
x11vnc-0.9.13_p20150111-0.9.13_p20150627.ebuild.patch (x11vnc-0.9.13_p20150111-0.9.13_p20150627.ebuild.patch,1.25 KB, patch)
2015-07-04 13:53 UTC, Alex Xu (Hello71)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Orson Teodoro 2015-05-02 21:53:14 UTC
Package fails on configure 

Reproducible: Always

Steps to Reproduce:
1. emerge x11vnc
2.
3.
Actual Results:  
>>> Emerging (1 of 1) x11-misc/x11vnc-0.9.13_p20150111::gentoo
 * 82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                    [ ok ]
 * Setting default linker to ld.gold for x86_64-pc-linux-gnu-2.25 ...                                                                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking 82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip to /var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work
>>> Source unpacked in /var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work
/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a /var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work
/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work
>>> Preparing source in /var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a ...
 * Running eautoreconf in '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a' ...
 * 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-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a ...
 * econf: updating x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a/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 --without-crypt --without-fbdev --without-ssl --without-crypto --without-v4l --without-xinerama
checking for a BSD-compatible install... /usr/bin/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 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.
==========================================================================


!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/work/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a/config.log
 * ERROR: x11-misc/x11vnc-0.9.13_p20150111::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line   93:  Called src_configure
 *             environment, line 2663:  Called econf '--without-avahi' '--without-crypt' '--without-fbdev' '--without-ssl' '--without-crypto' '--without-v4l' '--without-xinerama'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * 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/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/temp/build.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'

>>> Failed to emerge x11-misc/x11vnc-0.9.13_p20150111, Log file:

>>>  '/var/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/temp/build.log'

 * Messages for package x11-misc/x11vnc-0.9.13_p20150111:

 * ERROR: x11-misc/x11vnc-0.9.13_p20150111::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line   93:  Called src_configure
 *             environment, line 2663:  Called econf '--without-avahi' '--without-crypt' '--without-fbdev' '--without-ssl' '--without-crypto' '--without-v4l' '--without-xinerama'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * 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/tmp/portage/x11-misc/x11vnc-0.9.13_p20150111/temp/build.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'



Expected Results:  
It should emerge without problems.

The configure script seems to be missing gcc when compiling and running each test.

The older package x11-misc/x11vnc-0.9.13-r1 compiles fine.
Comment 1 Orson Teodoro 2015-05-02 21:55:45 UTC
Created attachment 402460 [details, diff]
config.log
Comment 2 Orson Teodoro 2015-05-02 21:56:58 UTC
Created attachment 402462 [details]
emerge --info
Comment 3 Alex Xu (Hello71) 2015-05-03 02:01:16 UTC
ugh. i ran into this, now I can't reproduce it.
Comment 4 Alex Xu (Hello71) 2015-05-03 02:32:39 UTC
strange. the crypt block needs to be placed *after* the openssl block, or else autoconf gets very confused.
Comment 5 Alex Xu (Hello71) 2015-05-04 13:51:04 UTC
it's 'caused' by --disable-crypt. it's got something to do with the order of the checks in the configure.ac.
Comment 6 Orson Teodoro 2015-05-04 19:51:07 UTC
I can confirm that adding crypt to x11-misc/x11vnc in package.use got rid of the problem.
Comment 7 C. Wijtmans 2015-05-08 20:06:58 UTC
i can confirm.
Comment 8 Emmanuel Rosa 2015-05-09 18:42:59 UTC
I also added the crypt use flag, and x11vnc compiled.
Comment 9 Alex Xu (Hello71) 2015-07-04 13:53:23 UTC
Created attachment 406174 [details, diff]
x11vnc-0.9.13_p20150111-0.9.13_p20150627.ebuild.patch
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-10-18 05:40:28 UTC
checking for cairo... yes
checking for LIBVNCSERVER... no
configure: error: Package requirements (libvncserver >= 0.9.8) were not met:

No package 'libvncserver' found


~/github/gentoo/x11-misc/x11vnc $ eix net-libs/libvncserver
* net-libs/libvncserver
     Available versions:  0.9.10-r3 (~)0.9.10-r4 {+24bpp gcrypt gnutls ipv6 +jpeg libressl +png ssl static-libs test threads +zlib ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Homepage:            http://libvncserver.sourceforge.net/


-	>=net-libs/libvncserver-0.9.8


The patch hence the revbump fails because the dep ^^ has been made absent for RDEPEND.
Comment 11 Sam Jorna (wraeth) gentoo-dev 2015-10-18 07:31:10 UTC
Firstly it's worth noting that the patch does not apply cleanly to x11vnc-0.9.13_p20150111.ebuild as it is in the tree at present - there appears to be a difference KEYWORDS between the version in the tree and the one that was used to generate the patch.

 ❯ patch -i x11vnc-0.9.13_p20150111-0.9.13_p20150627.ebuild.patch -o x11vnc-0.9.13_p20150627.ebuild                                                        18:29:55
patching file x11vnc-0.9.13_p20150627.ebuild (read from x11vnc-0.9.13_p20150111.ebuild)
Hunk #1 FAILED at 4.
1 out of 3 hunks FAILED -- saving rejects to file x11vnc-0.9.13_p20150627.ebuild.rej

That being said, I altered the patch locally (fixed KEYWORDS) to get it to apply and was able to get this to build with both USE=-crypt and USE=crypt.
Comment 12 Ian Delaney (RETIRED) gentoo-dev 2015-10-18 09:43:27 UTC
I cannot establish if i am to patch the 0.9.13_p20150111 or what.

commit c4f275036fdd549d63e536c30dd1f927a98efce3
Author: Ian Delaney <idella4@gentoo.org>
Date:   Sun Oct 18 17:33:52 2015 +0800

    x11-misc/x11vnc: bump to -0.9.13_p20150627 via the gentoo bug
    
    disable the option --disable-crypt in new snapshot,
    ebuild submitted by proxy maintainer
    
    Gentoo bug: #548434
Comment 13 Alex Xu (Hello71) 2015-10-19 01:11:22 UTC
fixed in tree after only 5 months of wait. sorry guys.