From turutani@scphys.kyoto-u.ac.jp  Sat Jan 27 08:47:09 2007
Return-Path: <turutani@scphys.kyoto-u.ac.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B041716A405
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 27 Jan 2007 08:47:05 +0000 (UTC)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (polymer3.scphys.kyoto-u.ac.jp [130.54.55.55])
	by mx1.freebsd.org (Postfix) with ESMTP id 544E313C481
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 27 Jan 2007 08:47:05 +0000 (UTC)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from h116.65.226.10.32118.vlan.kuins.net (h116.65.226.10.32118.vlan.kuins.net [10.226.65.116])
	by polymer3.scphys.kyoto-u.ac.jp (8.13.8/8.13.8/20060227-1) with ESMTP id l0R8Bwrt006717;
	Sat, 27 Jan 2007 17:11:59 +0900 (JST)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from h116.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1])
	by h116.65.226.10.32118.vlan.kuins.net (8.13.8/8.13.8) with ESMTP id l0R8Bxrg049644;
	Sat, 27 Jan 2007 17:11:59 +0900 (JST)
	(envelope-from turutani@h116.65.226.10.32118.vlan.kuins.net)
Received: (from turutani@localhost)
	by h116.65.226.10.32118.vlan.kuins.net (8.13.8/8.13.8/Submit) id l0R8Bwp9049643;
	Sat, 27 Jan 2007 17:11:58 +0900 (JST)
	(envelope-from turutani)
Message-Id: <200701270811.l0R8Bwp9049643@h116.65.226.10.32118.vlan.kuins.net>
Date: Sat, 27 Jan 2007 17:11:58 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: net/tighvnc does not works.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         108414
>Category:       ports
>Synopsis:       net/tighvnc does not work on amd64 (except vncviewer)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 27 08:50:16 GMT 2007
>Closed-Date:    Fri Feb 29 03:11:52 UTC 2008
>Last-Modified:  Fri Feb 29 03:11:52 UTC 2008
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD h116.65.226.10.32118.vlan.kuins.net 6.2-STABLE FreeBSD 6.2-STABLE #9: Thu Jan 18 21:40:21 JST 2007 turutani@h116.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER13 amd64


	
>Description:
	net/tightvnc does not works on FreeBSD/amd64.
	it works on i386 well, but only vncviewer can work on amd64.
	
>How-To-Repeat:
	% cd /usr/ports/net/tightvnc
	% make install
	 ...
	% vncserver :1
	Couldn't start Xvnc; trying default font path.
	Please set correct fontPath in the vncserver script.
	Couldn't start Xvnc process.
	
	27/01/07 17:00:16 Xvnc version TightVNC-1.3.8
	27/01/07 17:00:16 Copyright (C) 2000-2006 Constantin Kaplinsky
	27/01/07 17:00:16 Copyright (C) 1999 AT&T Laboratories Cambridge
	27/01/07 17:00:16 All Rights Reserved.
	27/01/07 17:00:16 See http://www.tightvnc.com/ for information on TightVNC
	27/01/07 17:00:16 Desktop name 'X' (h116.65.226.10.32118.vlan.kuins.net:1)
	27/01/07 17:00:16 Protocol versions supported: 3.7t, 3.7, 3.3
	27/01/07 17:00:16 Listening for VNC connections on TCP port 5901
	27/01/07 17:00:16 Listening for HTTP connections on TCP port 5801
	27/01/07 17:00:16   URL http://h116.65.226.10.32118.vlan.kuins.net:5801
	Xalloc error: Tail corrupt in Xfree() for small block (adr=0x69d3a0, val=0x99999999)
	Xalloc error: Tail corrupt in Xfree() for small block (adr=0x69d3b8, val=0x1010001)
	Xalloc error: Tail corrupt in Xfree() for small block (adr=0x6c4898, val=0x0)
	27/01/07 17:00:17 Xvnc version TightVNC-1.3.8
	27/01/07 17:00:17 Copyright (C) 2000-2006 Constantin Kaplinsky
	27/01/07 17:00:17 Copyright (C) 1999 AT&T Laboratories Cambridge
	27/01/07 17:00:17 All Rights Reserved.
	27/01/07 17:00:17 See http://www.tightvnc.com/ for information on TightVNC
	27/01/07 17:00:17 Desktop name 'X' (h116.65.226.10.32118.vlan.kuins.net:1)
	27/01/07 17:00:17 Protocol versions supported: 3.7t, 3.7, 3.3
	27/01/07 17:00:17 Listening for VNC connections on TCP port 5901
	27/01/07 17:00:17 Listening for HTTP connections on TCP port 5801
	27/01/07 17:00:17   URL http://h116.65.226.10.32118.vlan.kuins.net:5801
	Xalloc error: Tail corrupt in Xfree() for small block (adr=0x69d3a0, val=0x99999999)
	Xalloc error: Tail corrupt in Xfree() for small block (adr=0x69d3b8, val=0x1010001)
	Xalloc error: Tail corrupt in Xfree() for small block (adr=0x6c4898, val=0x0)
	
	% ps -ax | grep vnc
	%
	
>Fix:
	i do not know.
	maybe still broken?
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Tue Jan 30 21:59:03 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108414 

Adding to audit trail from misfiled PR ports/111596:

Date: Sun, 15 Apr 2007 20:27:47 +0930
From: Malcolm Kay <malcolm.kay@internode.on.net>

 I have a similar problem with tightvnc/Xvnc amd64.
 In addition the following lines appended to 
 dmesg on attempting to run vncserver:
 
 WARNING pid 6774 (Xvnc): ioctl sign-extension ioctl ffffffffc0106924
 pid 6774 (Xvnc), uid 1203: exited on signal 11 (core dumped)
 
 %uname -a
 FreeBSD xi.home 6.2-RELEASE FreeBSD 6.2-RELEASE #0: 
 Fri Jan 12 08:43:30 UTC 2007     
 root@portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  
 amd64
 
 Regards
 Malcolm Kay

From: "Philip Weaver" <philip.weaver@gmail.com>
To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp
Cc:  
Subject: Re: ports/108414: net/tighvnc does not work on amd64 (except vncviewer)
Date: Mon, 16 Jul 2007 01:21:47 -0500

 ------=_Part_61904_19016156.1184566907429
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 I have this exact same problem on:
 
 [silver] pweaver tightvnc $ uname -a
 FreeBSD silver 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jun 30 02:30:25 CDT
 2007     root@silver:/usr/obj/usr/src/sys/GENERIC  amd64
 
 
 - Phil
 
 ------=_Part_61904_19016156.1184566907429
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 I have this exact same problem on:<br><br>[silver] pweaver tightvnc $ uname -a<br>FreeBSD silver 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jun 30 02:30:25 CDT 2007&nbsp;&nbsp;&nbsp;&nbsp; root@silver:/usr/obj/usr/src/sys/GENERIC&nbsp; amd64<br><br><br>
 - Phil<br><br>
 
 ------=_Part_61904_19016156.1184566907429--
State-Changed-From-To: open->analyzed 
State-Changed-By: itetcu 
State-Changed-When: Thu Aug 2 09:44:39 UTC 2007 
State-Changed-Why:  
Work in progress to fix this issue; I will need help for runtime 
testing, I don't have an amd64 with X on it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108414 

From: nerull@nothingnet.com
To: bug-followup@FreeBSD.org,turutani@scphys.kyoto-u.ac.jp
Cc:  
Subject: Re: ports/108414: net/tighvnc does not work on amd64 (except
  vncviewer)
Date: Tue, 09 Oct 2007 15:37:41 -0400

 Hello,
 	I was just researching my troubles with getting TightVNC to work on 
 my FreeBSD 6.2 AMD64 machine and saw this bug report. If you need an 
 AMD64 machine for runtime testing I'll be happy to provide you with 
 access to mine as I would love to see VNC working "out of the box" on 
 64-bit FreeBSD. Also, if anyone's interested in a workaround I have a 
 .tbz package containing the 32-bit TightVNC and it's needed libs 
 which can be used until the 64-bit version is working properly.
 

From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: bug-followup@FreeBSD.org
Cc: nerull@nothingnet.com
Subject: Re: ports/108414: net/tighvnc does not work on amd64 (except  vncviewer)
Date: Wed, 10 Oct 2007 08:43:23 +0900

 Thank you for your offer.
 I have an patch, but not yet tested well.
 Try following patch to recent net/tightvnc, and,
 if you have any trouble, please tell me.
 
 --- files/patch-Xvnc::config::cf::FreeBSD.cf.orig	2006-09-29 
 06:03:27.000000000 +0900
 +++ files/patch-Xvnc::config::cf::FreeBSD.cf	2007-09-05 11:52:41.000000000 +0900
 @@ -1,18 +1,26 @@
 ---- Xvnc/config/cf/FreeBSD.cf.orig	Sun Jun 11 08:00:51 2000
 -+++ Xvnc/config/cf/FreeBSD.cf	Tue Sep 26 19:07:31 2006
 -@@ -253,9 +253,9 @@
 +--- Xvnc/config/cf/FreeBSD.cf.orig	2000-06-11 21:00:51.000000000 +0900
 ++++ Xvnc/config/cf/FreeBSD.cf	2007-09-04 17:11:16.000000000 +0900
 +@@ -253,11 +253,17 @@
    #endif
 
    #ifdef i386Architecture
   -# define OptimizedCDebugFlags DefaultGcc2i386Opt
 -+# define OptimizedCDebugFlags %%CFLAGS%%
 ++# define OptimizedCDebugFlags -O -pipe
    #else
   -# define OptimizedCDebugFlags -O2
 -+# define OptimizedCDebugFlags %%CFLAGS%%
 ++# define OptimizedCDebugFlags -O -pipe
    #endif
 
 ++#ifdef x86_64Architecture
 ++# define OptimizedCDebugFlags    -O -pipe
 ++# define ServerOSDefines         XFree86ServerOSDefines -DDDXTIME
 ++# define ServerExtraDefines      GccGasOption XFree86ServerDefines 
 -D_XSERVER64
 ++#endif /* x86_64Architecture */
 ++
    #ifndef PreIncDir
 -@@ -359,6 +359,5 @@
 + # define PreIncDir	/usr/include
 + #endif
 +@@ -359,6 +366,5 @@
 
    #include <bsdLib.rules>
 
 --- files/patch-Xvnc::config::cf::Imake.cf.orig	1970-01-01 
 09:00:00.000000000 +0900
 +++ files/patch-Xvnc::config::cf::Imake.cf	2007-09-05 07:47:15.000000000 +0900
 @@ -0,0 +1,15 @@
 +--- Xvnc/config/cf/Imake.cf.orig	2006-12-23 21:07:55.000000000 +0900
 ++++ Xvnc/config/cf/Imake.cf	2007-09-05 07:45:05.000000000 +0900
 +@@ -206,6 +206,12 @@
 + #  define i386Architecture
 + #  undef i386
 + # endif
 ++# ifdef __x86_64__
 ++#  ifndef x86_64Architecture
 ++#   define x86_64Architecture
 ++#  endif
 ++#  undef __x86_64__
 ++# endif
 + # ifdef __alpha__
 + #  define AlphaBsdArchitecture
 + #  define AlphaArchitecture
 --- files/patch-Xvnc::programs::Xserver::os::access.c.orig	1970-01-01 
 09:00:00.000000000 +0900
 +++ files/patch-Xvnc::programs::Xserver::os::access.c	2007-09-05 
 12:08:31.000000000 +0900
 @@ -0,0 +1,11 @@
 +--- Xvnc/programs/Xserver/os/access.c.orig	2000-06-11 21:00:51.000000000 +0900
 ++++ Xvnc/programs/Xserver/os/access.c	2007-09-05 12:07:30.000000000 +0900
 +@@ -634,7 +634,7 @@
 + #endif
 +     ifc.ifc_len = sizeof (buf);
 +     ifc.ifc_buf = buf;
 +-    if (ifioctl (fd, (int) SIOCGIFCONF, (pointer) &ifc) < 0)
 ++    if (ifioctl (fd, SIOCGIFCONF, (pointer) &ifc) < 0)
 +         Error ("Getting interface configuration (4)");
 +
 + #ifdef ISC
State-Changed-From-To: analyzed->feedback 
State-Changed-By: itetcu 
State-Changed-When: Mon Oct 29 11:10:21 UTC 2007 
State-Changed-Why:  
My last commit should fix problems reported in these PRs, please get bak 
to me if there still is something wrong; else I will close this PRs in a 
week 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108414 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/108414: commit references a PR
Date: Mon, 29 Oct 2007 11:10:23 +0000 (UTC)

 itetcu      2007-10-29 11:08:48 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/tightvnc         Makefile pkg-plist 
     net/tightvnc/files   patch-Xvnc::config::cf::FreeBSD.cf 
   Added files:
     net/tightvnc/files   patch-Xvnc::config::cf::Imake.cf 
                          patch-Xvnc::programs::Xserver::os::access.c 
   Log:
   - RUN_DEPEND on xauth and xorg-fonts [1]
   - OPTIONify Java-based vnc viewer and depend on Java in this case
   (first use of bsd.port.options.mk YAY!)
   - add patches for core-dumps on amd64 [2]
   - bump PORTREVISION for above
   
   PR:             ports/113854 [1], ports/108414 [2]
   Submitted by:   Michael Scheidell [1], Tsurutani Naoki [2]
   
   Revision  Changes    Path
   1.29      +19 -2     ports/net/tightvnc/Makefile
   1.3       +14 -6     ports/net/tightvnc/files/patch-Xvnc::config::cf::FreeBSD.cf
   1.1       +15 -0     ports/net/tightvnc/files/patch-Xvnc::config::cf::Imake.cf (new)
   1.1       +11 -0     ports/net/tightvnc/files/patch-Xvnc::programs::Xserver::os::access.c (new)
   1.9       +22 -22    ports/net/tightvnc/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Feb 29 03:11:11 UTC 2008 
State-Changed-Why:  
Feedback timeout (~4 months). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108414 
>Unformatted:
