Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526470 - net-misc/tigervnc-1.3.1-r2 USE=server - ../../os/.libs/libos.a(WaitFor.o): In function `WaitForSomething': WaitFor.c:(.text+0x610): undefined reference to `vncWriteBlockHandler'
Summary: net-misc/tigervnc-1.3.1-r2 USE=server - ../../os/.libs/libos.a(WaitFor.o): In...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-22 11:58 UTC by Michał Górny
Modified: 2016-05-24 08:40 UTC (History)
0 users

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


Attachments
net-misc:tigervnc-1.3.1-r2:20141022-114342.log.lz (net-misc:tigervnc-1.3.1-r2:20141022-114342.log.lz,25.81 KB, application/x-lzip)
2014-10-22 12:01 UTC, Michał Górny
Details
output of unix/xserver/configure --help (tigervnc-1.3.1-configure---help.txt,22.78 KB, text/plain)
2015-01-11 06:06 UTC, cmuelle8
Details
tigervnc-1.3.1-satisfy-oslib-refs-in-xwayland-and-xvnc.patch (tigervnc-1.3.1-satisfy-oslib-refs-in-xwayland-and-xvnc.patch,1020 bytes, patch)
2015-01-11 06:13 UTC, cmuelle8
Details | Diff
tigervnc-1.3.1-r2.ebuild.patch (tigervnc-1.3.1-r2.ebuild.patch,504 bytes, patch)
2015-01-11 06:14 UTC, cmuelle8
Details | Diff
tigervnc-1.3.1-r2.ebuild.patch (tigervnc-1.3.1-r2.ebuild.patch,473 bytes, patch)
2015-01-11 06:21 UTC, cmuelle8
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-22 11:58:32 UTC
../../os/.libs/libos.a(WaitFor.o): In function `WaitForSomething':
WaitFor.c:(.text+0x610): undefined reference to `vncWriteBlockHandler'
WaitFor.c:(.text+0x6ad): undefined reference to `vncWriteWakeupHandler'
WaitFor.c:(.text+0x99d): undefined reference to `vncWriteWakeupHandler'
collect2: error: ld returned 1 exit status
distcc[28623] ERROR: compile (null) on localhost failed
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-22 12:01:06 UTC
Created attachment 387206 [details]
net-misc:tigervnc-1.3.1-r2:20141022-114342.log.lz
Comment 2 cmuelle8 2015-01-11 06:06:26 UTC
Created attachment 393668 [details]
output of unix/xserver/configure --help

When building tigervnc with the 'server' use flag, your first option to _avoid_ these problems is patching the ebuild to pass
  --disable-xwayland
to configure in src_prepare().

After you have done so and are building with the 'gnutls' use flag as well, you will hit another problem that fails to link Xvnc:
--- SNIP ---
net-misc-tigervnc-1.3.1-r2/temp//ccZbJCud.ltrans6.ltrans.o:ccZbJCud.ltrans6.o:function rfb::CSecurityTLS::setParam(): error: undefined reference to 'getvnchomedir(char**)'
[...]
/var/tmp/paludis/net-misc-tigervnc-1.3.1-r2/temp//ccZbJCud.ltrans14.ltrans.o:ccZbJCud.ltrans14.o:function rfb::CSecurityTLS::setDefaults(): error: undefined reference to 'fileexists(char*)'
[...]
collect2: error: ld returned 1 exit status
Makefile:791: recipe for target 'Xvnc' failed
--- SNAP ---

Again, you may _avoid_ this secondary problem by either disabling 'gnutls' use flag for the build or by patching the ebuild to pass
  --disable-xcsecurity
to configure in src_prepare().

(see the attached output of configure --help for detailed information on available configure options in tigervnc-1.3.1)
Comment 3 cmuelle8 2015-01-11 06:13:08 UTC
Created attachment 393670 [details, diff]
tigervnc-1.3.1-satisfy-oslib-refs-in-xwayland-and-xvnc.patch

When building tigervnc with the 'server' use flag, your second option to _fix_ these problems is applying the attached patch in src_prepare() stage.

It will fix both, Xwayland and Xvnc linkage problems, the latter only occuring if 'gnutls' use flag is enabled.
Comment 4 cmuelle8 2015-01-11 06:14:31 UTC
Created attachment 393672 [details, diff]
tigervnc-1.3.1-r2.ebuild.patch
Comment 5 cmuelle8 2015-01-11 06:21:45 UTC
Created attachment 393674 [details, diff]
tigervnc-1.3.1-r2.ebuild.patch

no need to swith dirs (was needed for a previous patch attempt)
Comment 6 Pacho Ramos gentoo-dev 2016-05-21 15:00:23 UTC
is this valid with newer versions?