📄 problems
字号:
This file describes various problems that have been encountered incompiling, installing and running groff. Suggestions for additions orother improvements to this file are welcome.* gcc 2.3.3 fails to compile pic/object.cc.Apply the following patch:Thu Apr 1 12:06:03 1993 Brendan Kehoe (brendan@lisa.cygnus.com) * cp-init.c (expand_default_init): Don't clear DECL_REGISTER.*** cp-init.c.~2~ Mon Mar 29 21:48:36 1993--- cp-init.c Thu Apr 1 12:00:33 1993*************** expand_default_init (binfo, true_exp, ex*** 1141,1149 **** } - /* ARM $7.1.1: "[register] may be ignored and in most implementations- it will be ignored if the address of the variable is taken."- Since we're likely to do just that in the ctor call, clear this. */- DECL_REGISTER (exp) = 0;- rval = build_method_call (exp, constructor_name (type), parms, binfo, flags|xxref_init_possible);--- 1141,1144 ----* On a DECstation or other machine using a MIPS cpu, gcc/g++ 2.2.2gets a fatal signal while compiling tbl/main.c and tbl/table.c.Upgrade to gcc 2.3 or compile those files without -O.* I get lots of `numeric overflow' error messages whenever I rungroff; I compiled groff with AT&T C++ 2.0 with an ANSI C compiler.Make sure -DCFRONT_ANSI_BUG is included in DEFINES in the top-levelMakefile. If that doesn't solve the problem, define INT_MIN as-INT_MAX in libgroff/lib.h.* I get errors when I try to compile groff with Sun C++.Groff requires header files that are moderately compatible with AT&TC++ and ANSI C. With some versions of Sun C++, the supplied headerfiles need some of the following changes to meet this requirement:<string.h> must declare the mem* functions, (just add `#include<memory.h>' to <string.h>); the first argument to fopen and freopenshould be declared as `const char *'; the first argument to freadshould be declared as `void *'; the first argument to fwrite should bedeclared as `const void *'; malloc should be declared to return `void*'; in <alloca.h>, the declaration `extern "C" { void*__builtin_alloca(int); }' should be added; declarations of getopt(),optarg, optind and opterr should be added to <stdlib.h>; in<sys/signal.h> the return type and the second argument type ofsignal() should be changed to be `void (*)(int)'.You can either change them in place, or copy them to some otherdirectory and include that directory with a -I option.* I get errors when I try to compile groff with DEC C++.Fix the declaration of write() in <unistd.h> so that the secondargument is a const char *. Fix the declaration of open() in<sys/file.h> so that the first argument is a const char *.* On Ultrix, the make stops with the message *** Error code 1 Stop.for no apparent reason.Use GNU make.* I'm having problems compiling groff on 386BSD 0.1.If you're using ash as /bin/sh, you'll need the following patch.*** gendef.sh.org Sun Jun 30 13:30:36 1991--- gendef.sh Sun Feb 28 10:23:49 1993****************** 3,9 **** file=$1 shift ! defs="#define $1" shift for def do--- 3,10 ---- file=$1 shift ! x=$1! defs="#define $x" shift for def doYou'll also need to change dirnamemax.c so that it doesn't usepathconf().* While compiling on Xenix, ranlib libgroff.a fails.The system ranlib can't handle externals longer than 40 characters.Use the ranlib included in demon.co.uk:/pub/xenix/g++-1.40.3a.v1instead.* Groff can't handle my troff document. It works fine with AT&T troff.Read the section on incompatibilities in gtroff(1). Try using the -Coption. Alternatively there's the sed script in tmac/fixmacros.sedwhich will attempt to edit a file of macros so that it can be usedwith groff without the -C flag.* groff -Tdvi produces dvi files that use fonts at weird magnifications.Yes, it does. You may need to compile fonts with Metafont at thesemagnifications. The CompileFonts script in the devdvi/generatedirectory may help you to do this. (It will take a *long* time.)* pic output is not centered horizontally; pictures sometimes run offthe bottom of the page.The macro package you are using is not supplying appropriate definitionsof PS and PE. Give groff a -mpic option.* I'm having problems including PostScript illustrations using the PSPICmacro.A PostScript document must meet three requirements in order to beincluded with the PSPIC macro: it must comply with the Adobe DocumentStructuring Conventions; it must contain a BoundingBox line; it mustbe ``well-behaved''. The BoundingBox line should be of the form: %%BoundingBox: llx lly urx urywhere llx, lly, urx, ury are the coordinates of the lower left x,lower left y, upper right x, upper right y of the bounding box ofmarks on the page expressed as integers in the default PostScriptcoordinate system (72 units per inch, origin at bottom left corner).A useful tactic is to print out the illustration by itself (you mayneed to add a `showpage' at the end), and physically measure thebounding box. For more detail on these requirements, read thespecification of Encapsulated PostScript format. (This is availablefrom the Adobe file server; send a message with a body of `help' tops-file-server@adobe.com.)* I've configured groff for A4 paper, but gtroff still seems to thinkthat the length of a page (as returned by \n(.p) is 11 inches.This is intentional. The PAGE option is used only by grops. Forcompatibility with ditroff, the default page length in gtroff isalways 11 inches. The page length can be changed with the `pl'request.* Groff doesn't use the font names I'm used to.Use the `ftr' request. See gtroff(1).* I get errors using the Unix -ms macros with groff -e -C.Apply this change:*** /usr/lib/ms/ms.eqn Tue Apr 25 02:14:28 1989--- ms.eqn Sun Nov 11 10:33:59 1990****************** 22,29 **** .. . \" EN - end of a displayed equation .de EN! .if !\\*(10 .br .di .rm EZ .nr ZN \\n(dn .if \\n(ZN>0 .if \\n(YE=0 .LP--- 22,30 ---- .. . \" EN - end of a displayed equation .de EN! .if \\n(.k>0 .br .di+ .ds 10 \\*(EZ\\ .rm EZ .nr ZN \\n(dn .if \\n(ZN>0 .if \\n(YE=0 .LP* gpic doesn't accept the syntax `chop N M' for chopping both ends of aline.The correct syntax is `chop N chop M'.* With gpic -t, when I print `line ->; box' using a dvi to psprogram, the arrow head sticks through into the inside of the box.The dvi to ps program should be modified to set the line cap andline join parameters to 1 while printing tpic specials.* When I print the output groff -Tps, the output is always shifted upby about 0.7 inches; I'm using 8.5x11 inch paper.Make sure that PAGE is defined to be `letter' in the top-levelMakefile.* When I try to print the output of groff -Tps, I get no output at allfrom the printer, and the log file shows the error%%[ error: undefined; offendingcommand: BP ]%%I using TranScript spooling software.This is a bug in the page reversal filter in early versions ofTranScript. Change the `broken' parameter in/usr/local/lib/groff/font/devps/DESC to 7.* When I preview groff -Tps output using the Sun OpenWindows 2.0 pageviewprogram, all the pages are displayed on top of each other.This is a defect in pageview. Change the `broken' parameter in/usr/local/lib/groff/font/devps/DESC to 2.* With groff -TX75, -TX100or -X, I can only view the first page.The left mouse button brings up a menu that allows you to view otherpages.* When I print the output of groff -Tdvi, I just get a black dot inupper left corner.Some dvi drivers (notably early versions of xtex) do not correctly
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -