From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 07:38:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8478337B401 for ; Wed, 13 Aug 2003 07:38:43 -0700 (PDT) Received: from forrie.com (forrie.ne.client2.attbi.com [24.147.156.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97AF543FAF for ; Wed, 13 Aug 2003 07:38:40 -0700 (PDT) (envelope-from forrie@forrie.com) Received: from workstation.forrie.com (wks.forrie.net. [192.168.1.21]) by forrie.com with ESMTP id h7DEcWwC006464 for ; Wed, 13 Aug 2003 10:38:32 -0400 (EDT) (envelope-from forrie@forrie.com) Message-Id: <6.0.0.14.2.20030813103000.01b3bb20@192.168.1.1> X-Sender: forrie@192.168.1.1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.14 (Beta) Date: Wed, 13 Aug 2003 10:38:31 -0400 To: freebsd-questions@freebsd.org From: Forrest Aldrich Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-RAVMilter-Version: 8.3.0(snapshot 20010925) (forrie.ne.client2.attbi.com) X-MailScanner: Found to be clean Subject: Groff installation problem (FreeBSD-4.8) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 14:38:43 -0000 I've verified, after a few system rebuilds, that the groff installation is doing something wrong. The end result is the general failure of the manpage subsystem. Here's what's happening: The general error I'll get when attempting to process any manpage (via "man" or just groff/nroff) is: troff: fatal error: can't find macro file tty-char Running an "strace" on nroff shows: [ snip ] sigaction(SIGSYS, {SIG_DFL}, NULL) = 0 read(10, "#!/bin/sh\n# Emulate nroff with g"..., 1023) = 1023 break(0x80c3000) = 0 break(0x80c4000) = 0 read(10, "se $1 in\n -c)\n opts=\"$op"..., 1023) = 1023 read(10, "_BIN_PATH=/usr/bin}\nexport GROFF"..., 1023) = 112 stat("/usr/bin/groff", {st_mode=S_IFREG|0555, st_size=50544, ...}) = 0 fork() = 6379 getpgrp(0troff: fatal error: can't find macro file tty-char ) = 6377 --- SIGCHLD (Child exited) --- wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0x2, NULL) = 6379 read(10, "", 1023) = 0 exit(1) = ? I note that /usr/local/share/groff contains: # ls /usr/local/share/groff/*/* /usr/local/share/groff/1.19/eign /usr/local/share/groff/1.19/font: devX100 devX75 devascii devhtml devlbp devps devX100-12 devX75-12 devdvi devlatin1 devlj4 devutf8 whereas under /usr/share/groff_font, we have also: # ls /usr/share/groff_font devX100 devX75-12 devdvi devlatin1 devps devX100-12 devascii devhtml devlbp devutf8 devX75 devcp1047 devkoi8-r devlj4 moving /usr/local/share/groff has the result of this error: groff: can't find `DESC' file groff:fatal error: invalid device `ascii' Another strace I performed: # strace /usr/bin/troff -man [ snip ] open("/usr/local/share/groff/site-font/devps/ZDR", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/1.19/font/devps/ZDR", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=4863, ...}) = 0 read(3, "name ZDR\ninternalname ZapfDingba"..., 8192) = 4863 break(0x80e0000) = 0 read(3, "", 8192) = 0 close(3) = 0 gettimeofday({1060784231, 392758}, NULL) = 0 access("/etc/localtime", R_OK) = 0 open("/etc/localtime", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0444, st_size=1250, ...}) = 0 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0"..., 7944) = 1250 close(3) = 0 getpid() = 5467 (ppid 5466) break(0x80e3000) = 0 open("/usr/local/share/groff/site-font/devps/TR", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/1.19/font/devps/TR", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=7531, ...}) = 0 read(3, "name TR\ninternalname Times-Roman"..., 8192) = 7531 break(0x80e4000) = 0 break(0x80e5000) = 0 break(0x80e7000) = 0 break(0x80ea000) = 0 break(0x80ee000) = 0 read(3, "", 8192) = 0 close(3) = 0 open("/usr/local/lib/groff/site-tmac/troffrc", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/site-tmac/troffrc", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/1.19/tmac/troffrc", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/home/forrie/home/an.tmac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/groff/site-tmac/an.tmac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/site-tmac/an.tmac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/1.19/tmac/an.tmac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/home/forrie/home/tmac.an", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/groff/site-tmac/tmac.an", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/site-tmac/tmac.an", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/groff/1.19/tmac/tmac.an", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "/usr/bin/troff: fatal error: can"..., 54/usr/bin/troff: fatal error: can't find macro file an ) = 54 exit(1) So, it seems clearly that something is wrong with the installation. I've tried recompiling from /usr/src/gnu/usr.bin/groff and installing, as well as multiple CVSup updates, to no avail. What is wrong? _F