Subject: xsrc/24742: xdm(1) vt?? support for amd64
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 03/11/2004 10:44:21
>Number:         24742
>Category:       xsrc
>Synopsis:       xdm(1) vt?? support for amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 11 09:45:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Nicolas Joly
>Release:        NetBSD 1.6ZK (-current 20040311)
>Organization:
	Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 1.6ZK NetBSD 1.6ZK (GENERIC.MP) #2: Thu Mar 11 10:09:34 CET 2004 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/GENERIC.MP amd64
Architecture: x86_64
Machine: amd64
>Description:
I noticed that xdm(1) won't start using rc(8) scripts on amd64, because
xdm does not have vt?? option support on the command line.

root@lanfeust [~]# /etc/rc.d/xdm start
root@lanfeust [~]# less /var/log/xdm.log 
Unrecognized option: vt05
use: X [:<display>] [option]
-a #                   mouse acceleration (pixels)
[...]
xdm error (pid 26970): server unexpectedly died
xdm error (pid 26970): Server for display :0 can't be started, session disabled

>How-To-Repeat:
Start xdm using rc scripts.
>Fix:
Add PCCONS and PCVT support like other archs.

Index: xfree/xc/config/cf/NetBSD.cf
===================================================================
RCS file: /cvsroot/xsrc/xfree/xc/config/cf/NetBSD.cf,v
retrieving revision 1.62
diff -u -r1.62 NetBSD.cf
--- xfree/xc/config/cf/NetBSD.cf	7 Mar 2004 12:03:44 -0000	1.62
+++ xfree/xc/config/cf/NetBSD.cf	10 Mar 2004 13:44:42 -0000
@@ -315,7 +315,7 @@
 #elif defined(AMD64Architecture)
 # define ServerExtraDefines	GccGasOption XFree86ServerDefines -D_XSERVER64
 #  ifndef XFree86ConsoleDefines
-#    define XFree86ConsoleDefines -DWSCONS_SUPPORT
+#    define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCCONS_SUPPORT -DPCVT_SUPPORT
 #  endif
 #elif defined(SGIMipsArchitecture)
 #    define XFree86ConsoleDefines -DWSCONS_SUPPORT
>Release-Note:
>Audit-Trail:
>Unformatted: