Bug 6814 - TightVNC doesn't work
Bug#: 6814 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: vapier@gentoo.org Reported By: never@e-kki.it
Component: Applications
URL: 
Summary: TightVNC doesn't work
Keywords:  
Status Whiteboard: 
Opened: 2002-08-21 04:03 0000
Description:   Opened: 2002-08-21 04:03 0000
emerged OK, but on first (and subsequent runs) i obtain:

(started with vncserver :1)

You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file add
xauth: (argv):1:  unknown command "timeh.no-ip.org:1"
xauth:  creating new authority file add
xauth: (argv):1:  unknown command "timeh.no-ip.org/unix:1"
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 ?
Thanks...

------- Comment #1 From SpanKY 2002-08-21 08:50:38 0000 -------
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 From Stefano Zamprogno 2002-08-21 08:56:11 0000 -------
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 From SpanKY 2002-08-21 09:10:53 0000 -------
http://forums.gentoo.org

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 From Stefano Zamprogno 2002-08-21 09:35:28 0000 -------
but did you have tightvnc v. 1.2.5 ?
i have not any cfg into dir /etc/init.d/ :-(


------- Comment #5 From SpanKY 2002-08-21 17:05:55 0000 -------
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 From Stefano Zamprogno 2002-08-22 03:25:36 0000 -------
Finally FIXED !!!

TightVNC v.1.2.5

edit the vncserver perl script :

line 70 , change the line:

if (!xauthorityFile) {

into

if (!$xauthorityFile) {

now, all works OK ! :)

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


------- Comment #7 From SpanKY 2002-08-22 14:06:50 0000 -------
not fixed until the version that everyone emerge's is fixed ;)

------- Comment #8 From Stefano Zamprogno 2002-08-23 00:02:57 0000 -------
ok ;-)

------- Comment #9 From Donny Davies (RETIRED) 2002-08-26 22:11:51 0000 -------
Fixed in tightvnc-1.2.5-r1.

--Donny

------- Comment #10 From Stefano Zamprogno 2002-08-27 02:33:41 0000 -------
fine thanks :-)

------- Comment #11 From Stefano Zamprogno 2002-08-27 03:43:47 0000 -------
make[3]: Leaving directory `/var/tmp/portage/tightvnc-1.2.5-
r1/work/vnc_unixsrc/Xvnc/programs/Xserver/hw/vnc'
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-
link,../.././/exports/lib
make[2]: Leaving directory `/var/tmp/portage/tightvnc-1.2.5-
r1/work/vnc_unixsrc/Xvnc/programs/Xserver'
make[1]: Leaving directory `/var/tmp/portage/tightvnc-1.2.5-
r1/work/vnc_unixsrc/Xvnc/programs'

>>> 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 From Stefano Zamprogno 2002-08-27 03:44:52 0000 -------
seems that this patched version doesn't emerge well...


------- Comment #13 From SpanKY 2002-08-27 11:13:23 0000 -------
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 From Patrick Naubert 2002-08-27 12:47:06 0000 -------
I get the same problem with the new emerge.  The patch gets in the way.

------- Comment #15 From Grant Goodyear 2002-09-22 21:10:54 0000 -------
SpanKY: Go ahead and fix this, if you would, since you're already familiar w/
it.

------- Comment #16 From SpanKY 2002-09-22 23:07:02 0000 -------
guess this was already done ... you guys want to make sure it works ?

/usr/local/gentoo-x86/net-misc/tightvnc/ChangeLog:
  28 Aug 2002; Bart Verwilst <verwilst@gentoo.org> tightvnc-1.2.3-r2.ebuild, 
tightvnc-1.2.5-r1.ebuild :

  Duplicate patch entry removed.