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





_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to