Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6814 - TightVNC doesn't work
Summary: TightVNC doesn't work
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
Depends on:
Reported: 2002-08-21 04:03 UTC by Stefano Zamprogno
Modified: 2003-02-04 19:42 UTC (History)
4 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Zamprogno 2002-08-21 04:03:01 UTC
emerged OK, but on first (and subsequent runs) i obtain:

(started with vncserver :1)

You will require a password to access your desktops.

xauth:  creating new authority file add
xauth: (argv):1:  unknown command ""
xauth:  creating new authority file add
xauth: (argv):1:  unknown command ""
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

Unrecognized option: 1024x768
use: X [:<display>] [option]

What is wrong in my cfg ?
Comment 1 SpanKY gentoo-dev 2002-08-21 08:50:38 UTC
usually this kind of thing is supposed to be taken up on the forums ...
but while its here why dont you post your config files
Comment 2 Stefano Zamprogno 2002-08-21 08:56:11 UTC
where is the forum you mean ? (thanks)

My cfg is very simple, Gentoo 1.2/gcc 2.95.3 (just installed)
the USE var is empty (in make.conf) athlon tb 1400 /256mb ram.
I don't know what other info do you mean, but i'm glad to tell you if you ask :)

Many other users have this type of problem, (from TightVNC ML) so,isn't
an isolated problem.

Thanks for attention.
Comment 3 SpanKY gentoo-dev 2002-08-21 09:10:53 UTC

could you post the config file: /etc/init.d/vncserver

i have tightvnc on my comp and havent had a problem with it ...
Comment 4 Stefano Zamprogno 2002-08-21 09:35:28 UTC
but did you have tightvnc v. 1.2.5 ?
i have not any cfg into dir /etc/init.d/ :-(

Comment 5 SpanKY gentoo-dev 2002-08-21 17:05:55 UTC
hmm i guess i made the /etc/{init,conf}.d/vncserver files and just forgot i 
did ;)

how are you starting up the vncserver ?
Comment 6 Stefano Zamprogno 2002-08-22 03:25:36 UTC
Finally FIXED !!!

TightVNC v.1.2.5

edit the vncserver perl script :

line 70 , change the line:

if (!xauthorityFile) {


if (!$xauthorityFile) {

now, all works OK ! :)

(thanks to a friend of mine (nick poisson) for this fix !)

Comment 7 SpanKY gentoo-dev 2002-08-22 14:06:50 UTC
not fixed until the version that everyone emerge's is fixed ;)
Comment 8 Stefano Zamprogno 2002-08-23 00:02:57 UTC
ok ;-)
Comment 9 Donny Davies (RETIRED) gentoo-dev 2002-08-26 22:11:51 UTC
Fixed in tightvnc-1.2.5-r1.

Comment 10 Stefano Zamprogno 2002-08-27 02:33:41 UTC
fine thanks :-)
Comment 11 Stefano Zamprogno 2002-08-27 03:43:47 UTC
make[3]: Leaving directory `/var/tmp/portage/tightvnc-1.2.5-
gcc -o Xvnc -O2 -fno-strength-reduce -ansi -pedantic     -
L../.././/exports/lib  dix/libdix.a 
os/libos.a ../.././/lib/Xau/libXau.a ../.././/lib/Xdmcp/libXdmcp.a ../.././/expo
rts/lib/libfont.a  hw/vnc/libvnc.a ../.././/../libvncauth/libvncauth.a 
cfb/libcfb.a cfb16/libcfb.a cfb24/libcfb.a cfb32/libcfb.a mfb/libmfb.a 
dix/libxpstubs.a mi/libmi.a Xext/libext.a                                -lz -
lm  -rdynamic -ldl -L/usr/local/lib -ljpeg -lz -Wl,-rpath-
make[2]: Leaving directory `/var/tmp/portage/tightvnc-1.2.5-
make[1]: Leaving directory `/var/tmp/portage/tightvnc-1.2.5-

>>> Install tightvnc-1.2.5-r1 into /var/tmp/portage/tightvnc-1.2.5-r1/image/ 
category net-misc
patching file vncserver
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vncserver.rej

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line -358, Exitcode 1
!!! (no error message)

!!! emerge aborting on  /usr/portage/net-misc/tightvnc/tightvnc-1.2.5-
r1.ebuild .
Comment 12 Stefano Zamprogno 2002-08-27 03:44:52 UTC
seems that this patched version doesn't emerge well...

Comment 13 SpanKY gentoo-dev 2002-08-27 11:13:23 UTC
a patch file exists to modify the vncserver script to make it play properly 
with Gentoo ... it is applied in the src_install() function

in -r1, a src_unpack() function was added to fix this bug, but the patch 
command was copied to this function.  note, it was copied, not moved

so, the fix is to remove that patch command out of the src_install() function 
due to the fact that this would cause the ebuild to try to patch the same file 
with the same patch twice, plus src_unpack is a more logical location to patch 
files than src_install
Comment 14 Patrick Naubert 2002-08-27 12:47:06 UTC
I get the same problem with the new emerge.  The patch gets in the way.
Comment 15 Grant Goodyear (RETIRED) gentoo-dev 2002-09-22 21:10:54 UTC
SpanKY: Go ahead and fix this, if you would, since you're already familiar w/ it.
Comment 16 SpanKY gentoo-dev 2002-09-22 23:07:02 UTC
guess this was already done ... you guys want to make sure it works ?

  28 Aug 2002; Bart Verwilst <> tightvnc-1.2.3-r2.ebuild, 
tightvnc-1.2.5-r1.ebuild :

  Duplicate patch entry removed.