* src/libs/libgroff/font.cpp (font::contains, font::get_code):
[s-roff.git] / PROBLEMS
blob5739e3de4b92b9799931b5c02e94d4277ddb0af1
1     Copyright 1989-2000, 2001, 2002, 2003, 2004, 2005
2       Free Software Foundation, Inc.
4     Copying and distribution of this file, with or without modification,
5     are permitted in any medium without royalty provided the copyright
6     notice and this notice are preserved.
8 This file describes various problems that have been encountered in
9 compiling, installing and running groff.  Suggestions for additions or
10 other improvements to this file are welcome.
12 ----------------------------------------------------------------------
16 Generic Problems
17 ================
21 * Displaying a man page on a terminal with/without my favourite pager
22   only gives garbage.
24 groff by default now uses SGR escape sequences (`ANSI color') to
25 control the display attributes (bold, underlined, colour) on TTYs. 
26 Some terminals (e.g. `kterm') don't understand SGR, and some pagers
27 (e.g. older versions of `less' or `less' without the -R option) don't
28 understand SGR either.  There are three solutions to fix this, in order
29 of preference; please read the grotty man page for more details.
31 The fourth and probably best option is to update your terminal program
32 and pager to versions which can handle SGR.
34   1. Set the GROFF_NO_SGR environment variable.
36   2. Pass option `-c' to grotty (this is, add `-P-c' to groff's command
37      line options).
39   3. Append the following fragment to the `troffrc' file:
42 --- start ---
43 .if n \{\
44 .  nr _C \n(.C
45 .  cp 0
47 .  \" The following code sets a top-of-page trap to disable grotty's TTY
48 .  \" mode.  Since neither \X nor .output can be used before the first
49 .  \" page has started, we must use a trap.  To make it work with troff's
50 .  \" -o option, we wait until the first printed page.
52 .  de sgr@dummy
53 .  .
55 .  rn wh wh@old
57 .  \" The stand-alone version.  If no other trap is set, we can safely
58 .  \" insert the truncated vertical space caused by the trap (if any).
59 .  \" Otherwise we assume that the document's main macro package takes
60 .  \" care of that.  As soon as the trap has been executed, it is removed.
61 .  de1 no@sgr
62 .    if \\n[.P] \{\
63 .      if (\\n[.t] == \\n[.p]) \{\
64 .        rn wh@old wh
65 .        rm no@sgr
66 .        wh 0
67 .        sp \\n[.trunc]
68 .        nop \X'tty: sgr 0'
69 .        sp -1
70 .    \}\}
71 .  .
73 .  wh@old 0 no@sgr
75 .  \" The piggyback version to be appended to macros planted with the
76 .  \" modified `wh' request.
77 .  de1 no@sgr1
78 .    if \\n[.P] \{\
79 .      rn wh@old wh
80 .      ds no@sgr1
81 .      nop \X'tty: sgr 0'
82 .      sp -1
83 .    \}
84 .  .
86 .  \" We redefine the `wh' request so that `no@sgr1' is appended to
87 .  \" the trap macro.
88 .  de1 wh
89 .    am1 \\$2 sgr@dummy
90 .      no@sgr1
91 .    sgr@dummy
92 .    wh@old \\$1 \\$2
93 .  .
95 .  cp \n[_C]
96 .\}
97 --- end ---
99 ----------------------------------------------------------------------
101 * The UTF-8 output of grotty has strange characters for the minus, the
102   hyphen, and the right quote.  Why?
104 The used Unicode characters (U+2212 for the minus sign and U+2010 for
105 the hyphen) are the correct ones, but many programs can't search them
106 properly.  The same is true for the right quote (U+201D).  To map those
107 characters back to the ASCII characters, insert the following code
108 snippet into the `troffrc' configuration file:
110 .if '\*[.T]'utf8' \{\
111 .  char \- \N'45'
112 .  char  - \N'45'
113 .  char  ' \N'39'
117 ----------------------------------------------------------------------
119 * My document says that the current year is 19100, not 2000.
121 In groff, as in traditional troff, the yr number register yields the
122 year minus 1900.  Unfortunately, there is a longstanding bug in the
123 Troff User's Manual <http://cm.bell-labs.com/cm/cs/cstr/54.ps.gz>,
124 which incorrectly claims that yr is the last two digits of the year.
125 This claim was never true of either Unix troff or of groff.
127 If your text looks like this:
129         .\" Wrong:
130         This document was formatted in 19\n(yr.
132 you can correct it as follows:
134         This document was formatted in \n[year].
136 or, if you want to be portable to older troff versions, as follows:
138         .nr y4 1900+\n(yr
139         This document was formatted in \n(y4.
141 ----------------------------------------------------------------------
143 * groff can't handle my troff document.  It works fine with AT&T
144   troff.
146 Read the section on incompatibilities in groff_diff(7).  Try using
147 the -C option.  Alternatively there's the sed script
148 `tmac/fixmacros.sed' which attempts to edit a file of macros so
149 that it can be used with groff without the -C flag.
151 ----------------------------------------------------------------------
153 * gtroff doesn't understand lines like `.ce99' with no space between
154   the name of the request or macro and the arguments.
156 gtroff requires a space between macro or request and its arguments
157 because it allows the use of long names for macros and requests.  You
158 can use the -C option or the `cp' request to put gtroff into a
159 compatibility mode in which it is not possible to use long names for
160 macros but in which no space is required between macros and their
161 arguments.  The use of compatibility mode is strongly discouraged.
163 ----------------------------------------------------------------------
165 * groff -Tdvi produces dvi files that use fonts at weird
166   magnifications.
168 Yes, it does.  You may need to compile fonts with Metafont at these
169 magnifications.  The CompileFonts script in the devdvi/generate
170 directory may help you to do this.  (It takes a *long* time on
171 slow computers.)
173 ----------------------------------------------------------------------
175 * Groff doesn't use the font names I'm used to.
177 Use the `ftr' request.  See groff_diff(7).
179 ----------------------------------------------------------------------
181 * pic output is not centered horizontally; pictures sometimes run off
182   the bottom of the page.
184 The macro package you are using is not supplying appropriate
185 definitions of PS and PE.  Give groff a -mpic option.
187 ----------------------------------------------------------------------
189 * gpic doesn't accept the syntax `chop N M' for chopping both ends of
190   a line.
192 The correct syntax is `chop N chop M'.
194 ----------------------------------------------------------------------
196 * With gpic -t, when I print `line ->; box' using a dvi to ps program,
197   the arrow head sticks through into the inside of the box.
199 The dvi to ps program should be modified to set the line cap and line
200 join parameters to 1 while printing tpic specials.
202 ----------------------------------------------------------------------
204 * gtroff gives warnings about lines like
205   .ev   \" a comment
206   (with a tab after the .ev).
208 A tab character cannot be used as a substitute for a space character
209 (except in one case: between a control character at the beginning of a
210 line and the name of a macro or request).  For example, in Unix troff
212   .ps   \" restore the previous point size
214 (with a tab after the .ps) does NOT restore the previous point-size;
215 instead it is silently ignored.  Since this is very likely to be
216 an error, gtroff can give a warning about it.  If you want to align
217 comments, you can do it like this:
219   .ev\"                         \" a comment
221 ----------------------------------------------------------------------
223 * I don't like the page headers and footers produced by groff -man.
225 There seem to be many different styles of page header and footer
226 produced by different versions of the -man macros.  You need to
227 put modified macros from tmac/an-old.tmac into man.local.  More
228 information is available in groff_man(7).
230 ----------------------------------------------------------------------
232 * Where can I get grap?
234 Ted Faber <faber@lunabase.org> has written a freely available grap:
236   http://www.lunabase.org/~faber/Vault/software/grap/
238 ----------------------------------------------------------------------
240 * The \n(st and \n(sb registers don't seem to work.  I thought \w set
241   them to the height and depth of its argument, but the registers
242   always seem to be 0.
244 \n(st and \n(sb aren't supposed to give the height and depth of the
245 string rather they give the minimum and maximum vertical displacement
246 of the baseline.  For example for \v'2u'\v'-3u', \n(st is 1 and
247 \n(sb is -2.  The height and depth of the string is available in
248 the \n[rst] and \n[rsb] registers: these are groff extensions.
250 ----------------------------------------------------------------------
252 * While formatting a manual page, groff complains about not being able
253   to break lines.  The problem seems to be caused by a line like:
254   .TP \w'label'+2
256 The -man documentation says that the default scale indicator for TP
257 macro is `n'.  The groff -man macros implement this correctly, so that
258 the argument is evaluated as if it were
260   \w'label'n+2n
262 The Unix -man macros don't implement this correctly (probably because
263 it's hard to do in Unix troff); they just append `n' to the entire
264 argument, so that it is evaluated as if it were
266   \w'label'u+2n
268 The solution is to fix the manual page:
270   .TP \w'label'u+2
272 ----------------------------------------------------------------------
274 * I'm having problems formatting man pages produced by the perl
275   wrapman script.
277 Some versions of wrapman have a superfluous blank line before the .TH
278 line.  This must be deleted.  Then either use groff -C, or apply the
279 following patch:
281 *** wrapman.~2~ Sun Jan 19 12:10:24 1992
282 --- wrapman     Tue Aug 10 02:06:41 1993
283 ***************
284 *** 35,41 ****
285       $line1 .= <IN> if $line1 =~ /eval/;
286       $line1 .= <IN> if $line1 =~ /argv/;
287       $line2 = <IN>;
288 !     next if $line2 eq "'di';\n";
289   
290       # Pull the old switcheroo.
291   
292 --- 35,41 ----
293       $line1 .= <IN> if $line1 =~ /eval/;
294       $line1 .= <IN> if $line1 =~ /argv/;
295       $line2 = <IN>;
296 !     next if $line2 eq "'di ';\n" || $line2 eq "'di';\n";
297   
298       # Pull the old switcheroo.
299   
300 ***************
301 *** 49,56 ****
302   
303       print OUT $line1;
304       print OUT <<EOF;
305 ! 'di';
306 ! 'ig00';
307   #
308   # $header
309   #
310 --- 49,58 ----
311   
312       print OUT $line1;
313       print OUT <<EOF;
314 ! 'di ';
315 ! 'ds 00 \\"';
316 ! 'eo ';
317 ! 'ig 00 ';
318   #
319   # $header
320   #
321 ***************
322 *** 72,85 ****
323   
324       # These next few lines are legal in both Perl and nroff.
325   
326 ! $null.00;                       # finish .ig
327    
328   'di           \\" finish diversion--previous line must be blank
329   .nr nl 0-1    \\" fake up transition to first page again
330   .nr % 0         \\" start at page 1
331 ! '; __END__ ##### From here on it's a standard manual page #####
332   .TH $PROG 1 "$month $mday, 19$year"
333 - .AT 3
334   .SH NAME
335   $prog \\- whatever
336   .SH SYNOPSIS
337 --- 74,87 ----
338   
339       # These next few lines are legal in both Perl and nroff.
340   
341 ! $null.00 ;                      # finish .ig
342 ! 'ec \\';
343    
344   'di           \\" finish diversion--previous line must be blank
345   .nr nl 0-1    \\" fake up transition to first page again
346   .nr % 0         \\" start at page 1
347 ! .\\"'; __END__ ##### From here on it's a standard manual page #####
348   .TH $PROG 1 "$month $mday, 19$year"
349   .SH NAME
350   $prog \\- whatever
351   .SH SYNOPSIS
353 ----------------------------------------------------------------------
355 * groff uses up an enormous amount of memory processing large files.
356   I'm using 386BSD 0.1.
358 386BSD includes an old version of g++, 1.39, which has a bug that
359 causes a major memory leak in gtroff.  Apply the following fix to g++
360 and recompile groff:
362 *** cplus-decl.c.~1~    Mon Aug  6 05:28:59 1990
363 --- cplus-decl.c        Wed Jun  5 08:55:04 1991
364 ***************
365 *** 7951,7961 ****
366   
367         /* At the end, call delete if that's what's requested.  */
368         if (TREE_GETS_DELETE (current_class_type))
369         exprstmt = build_method_call (build1 (NOP_EXPR, TYPE_POINTER_TO (current_class_type), error_mark_node),
370                                       get_identifier (OPERATOR_DELETE_FORMAT),
371 !                                     build_tree_list (NULL_TREE, integer_zero_node),
372                                       NULL_TREE, LOOKUP_NORMAL);
373         else if (TYPE_USES_VIRTUAL_BASECLASSES (current_class_type))
374         exprstmt = build_x_delete (ptr_type_node, current_class_decl, 0);
375         else
376         exprstmt = 0;
377 --- 7951,7961 ----
378   
379         /* At the end, call delete if that's what's requested.  */
380         if (TREE_GETS_DELETE (current_class_type))
381         exprstmt = build_method_call (build1 (NOP_EXPR, TYPE_POINTER_TO (current_class_type), error_mark_node),
382                                       get_identifier (OPERATOR_DELETE_FORMAT),
383 !                                     build_tree_list (NULL_TREE, current_class_decl),
384                                       NULL_TREE, LOOKUP_NORMAL);
385         else if (TYPE_USES_VIRTUAL_BASECLASSES (current_class_type))
386         exprstmt = build_x_delete (ptr_type_node, current_class_decl, 0);
387         else
388         exprstmt = 0;
392 Printing and Display Problems
393 =============================
397 * I'm having problems including PostScript illustrations (EPS) using
398   the PSPIC macro and/or \X'ps: import ...'.
400 A PostScript document must meet three requirements in order to be
401 included with the PSPIC macro: it must comply with the Adobe Document
402 Structuring Conventions; it must contain a BoundingBox line; it must
403 be `well-behaved'.  The BoundingBox line should be of the form:
405   %%BoundingBox: llx lly urx ury
407 where llx, lly, urx, ury are the coordinates of the lower left x,
408 lower left y, upper right x, upper right y of the bounding box of
409 marks on the page expressed as integers in the default PostScript
410 coordinate system (72 units per inch, origin at bottom left corner).
412 The most convenient program to get the bounding box of a document is
413 the `ps2epsi' script coming with GhostScript.
415 If you can't use this program, another useful tactic is to print out
416 the illustration by itself (you may need to add a `showpage' at the
417 end), and physically measure the bounding box.  For more detail on
418 these requirements, read the specification of Encapsulated PostScript
419 format.  (This is available from the Adobe file server; send a message
420 with a body of `help' to ps-file-server@adobe.com.)
422 If an EPS file to be included via \X'ps: import' does not start with
423 `%!PS-Adobe-...', gtroff still includes the file, but grops does
424 not add any fonts to the generated output file that are listed in the
425 EPS file, even though the files are listed in the `download' file and
426 are available in the devps directory.
428 ----------------------------------------------------------------------
430 * I've configured groff for A4 paper, but gtroff still seems to think
431   that the length of a page (as returned by `\n(.p') is 11 inches.
433 This is intentional.  The PAGE option during configuration is used
434 only by grops.  For compatibility with ditroff, the default page
435 length in gtroff is always 11 inches.  The page length can be changed
436 with the `pl' request.
438 A convenient way to set paper dimensions is to use the -dpaper option
439 of groff, together with proper -P options for the postprocessor
440 (overriding the default).  For example, use the following for PS
441 output on A4 paper in landscape orientation:
443   groff -Tps -dpaper=a4l -P-pa4 -P-l -ms foo.ms > foo.ps
445 See groff_tmac(5) for more information.
447 ----------------------------------------------------------------------
449 * When I print the output of groff -Tps, the output is always shifted
450   up by about 0.7 inches; I'm using 8.5x11 inch paper.
452 Make sure that the paper size is `letter'.  See groff_tmac(5).
454 ----------------------------------------------------------------------
456 * When I try to run gxditview, I get the error:
457   Error: Widget viewport has zero width and/or height
459 This error means you haven't correctly installed the application
460 defaults file, GXditview.ad; `make install' does this for you
461 automatically, so either you didn't do `make install', or you haven't
462 passed a good `--appresdir=<DIR>' argument to groff's configure script.
464 See the X(7) man page for information how and where application resource
465 files have to be located.  Look for the XAPPLRESDIR and XUSERFILESEARCHPATH
466 environment variables.
468 ----------------------------------------------------------------------
470 * When I preview documents using -TX75 or -TX100, the layout is not
471   the same as when I print the document with -Tps: the line and page
472   breaks come in different places.
474 Use `groff -X -Tps'.
476 ----------------------------------------------------------------------
478 * When I try to print the output of groff -Tps, I get no output at all
479   from the printer, and the log file shows the error
480   %%[ error: undefined; offendingcommand: BP ]%%
481   I'm using TranScript spooling software.
483 This is a bug in the page reversal filter in early versions of
484 TranScript.  Change the `broken' parameter in
485 /usr/local/lib/groff/font/devps/DESC to 7.
487 ----------------------------------------------------------------------
489 * When I preview groff -Tps output using the Sun OpenWindows 2.0
490   pageview program, all the pages are displayed on top of each other.
492 This is a defect in pageview.  Change the `broken' parameter in
493 /usr/local/lib/groff/font/devps/DESC to 2.
495 ----------------------------------------------------------------------
497 * With groff -TX75, -TX100 or -X, I can only view the first page.
499 The left mouse button brings up a menu that allows you to view other
500 pages.
502 ----------------------------------------------------------------------
504 * When I print the output of groff -Tdvi, I just get a black dot in
505   upper left corner.
507 Some dvi drivers (notably early versions of xtex) do not correctly
508 handle dvi files that use a resolution different from that used by dvi
509 files produced by TeX.  Try getting a more up to date driver.
511 ----------------------------------------------------------------------
513 * How can I use groff with an old LaserJet printer that doesn't work
514   with groff -Tlj4?
516 You have at least 3 options:
518 - use groff -Tps with GNU Ghostscript;
520 - use groff -Tdvi with a TeX .dvi to Laserjet driver;
522 - use groff with the LaserJet driver in Chris Lewis' psroff package
523   (available for ftp from:
524   ftp.uunet.ca:/distrib/chris_lewis/psroff3.0pl17).
526 ----------------------------------------------------------------------
528 * Groff seems to generate level 3 Postscript, but my printer is only a
529   level 1 or 2 PostScript printer.
531 In fact groff generates only level 2 PostScript (or rather level 1
532 with some extensions; see grops(1) for more information how to disable
533 them).  The `%!PS-Adobe-3.0' comment at the beginning of PostScript
534 output generated by groff indicates that the file conforms to
535 version 3.0 of the Adobe Document Structuring Conventions.  The output
536 generated by groff should be printable on any PostScript printer.
537 Problems with groff output's not printing are most often caused by the
538 spooling system.
542 Platform-Dependent Macro Problems
543 =================================
547 * I get lots of errors when I use groff with the AT&T -mm macros.
549 Use the groff -mm macros.
551 ----------------------------------------------------------------------
553 * groff produces wrapper macros for `ms' and friends which call the
554   system's original macros.  Then, to get groff's ms macro package I
555   have to use `-mgs' instead `-ms'.  Can I avoid this?
557 Yes.  Configure and compile groff as usual, but install it with
559   make install tmac_wrap=""
561 Then no wrapper files are produced, and `-ms' uses groff's `ms'
562 macros.
564 ----------------------------------------------------------------------
566 * I'm having problems formatting HP-UX 9.0 man pages with groff -man.
568 Copy HP's tmac.an into /usr/local/share/groff/site-tmac/an.tmac, and
569 either put `.cp 1' at the beginning or filter it (and any files it
570 .so's) through tmac/fixmacros.sed.
572 ----------------------------------------------------------------------
574 * I get errors using the Unix -ms macros with groff -e -C.
576 Apply this change:
578 *** /usr/lib/ms/ms.eqn  Tue Apr 25 02:14:28 1989
579 --- ms.eqn      Sun Nov 11 10:33:59 1990
580 ***************
581 *** 22,29 ****
582   ..
583   .     \" EN - end of a displayed equation
584   .de EN
585 ! .if !\a\\*(10\a\a .br
586   .di
587   .rm EZ
588   .nr ZN \\n(dn
589   .if \\n(ZN>0 .if \\n(YE=0 .LP
590 --- 22,30 ----
591   ..
592   .     \" EN - end of a displayed equation
593   .de EN
594 ! .if \\n(.k>0 .br
595   .di
596 + .ds 10 \\*(EZ\\
597   .rm EZ
598   .nr ZN \\n(dn
599   .if \\n(ZN>0 .if \\n(YE=0 .LP
601 ----------------------------------------------------------------------
603 * I'm having problems formatting Ultrix man pages with groff -man.
605 The Ultrix man pages use a number of non-standard extensions to the
606 Unix man macros.  One solution is to use the Ultrix -man macros with
607 groff.  Copy /usr/lib/tmac/tmac.an to
608 /usr/local/share/groff/site-tmac/an.tmac and apply the following patch
609 (from Frank Wortner):
611 *** /usr/local/lib/groff/tmac/tmac.an     Wed Sep  9 12:29:28 1992
612 --- /usr/lib/tmac/tmac.an       Fri Jul 24 19:58:19 1992
613 ***************
614 *** 489,495 ****
615   .     \" make special case of shift out of italic
616   .de }S
617   .ds ]F
618 ! .if \\$12 .if !\\$5 .ds ]F \^
619   .ie !\\$4 .}S \\$2 \\$1 "\\$3\f\\$1\\$4\\*(]F" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
620   .el \\$3
621   .}f
622 --- 489,495 ----
623   .     \" make special case of shift out of italic
624   .de }S
625   .ds ]F
626 ! .if \\$12 .if !\\$5 .ds ]F\^
627   .ie !\\$4 .}S \\$2 \\$1 "\\$3\f\\$1\\$4\\*(]F" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
628   .el \\$3
629   .}f
631 Another possible solution is to install tmac/man.ultrix as
632 /usr/local/share/groff/site-tmac/man.local.
634 ----------------------------------------------------------------------
636 * On an SGI system, how can I make the man command use groff?
638 From David Hinds <dhinds@allegro.stanford.edu> (some of these steps
639 are unnecessary if you install with the `g' Makefile variable defined
640 as empty):
642 Create a script called 'eqn':
644  > #! /bin/sh
645  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
646  > geqn $*
648 and a script called 'neqn':
650  > #! /bin/sh
651  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
652  > geqn -Tascii $*
654 and do:
656  > ln -s gnroff nroff
658 and edit the end of the gnroff script to be:
660  > rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
661  > exec groff -Wall -mtty-char $T $opts $rest
663 To get PostScript output from 'man -t', you also need to create a
664 'psroff' script similar to 'nroff'.  Here are the context diffs:
666 *** /usr/local/bin/nroff        Sat Feb 13 15:51:09 1993
667 --- /usr/local/bin/psroff       Sat Feb 13 17:45:46 1993
668 ***************
669 *** 1,8 ****
670   #! /bin/sh
671 ! # Emulate nroff with groff.
673   prog="$0"
674 ! T=-Tascii
675   opts=
677   for i
678 --- 1,8 ----
679   #! /bin/sh
680 ! # Emulate psroff with groff.
682   prog="$0"
683 ! T=-Tps
684   opts=
686   for i
687 ***************
688 *** 25,30 ****
689 --- 25,33 ----
690         -Tascii|-Tlatin1)
691                 T=$1
692                 ;;
693 +       -t)
694 +               # ignore -- default is send to stdout
695 +               ;;
696         -T*)
697                 # ignore other devices
698                 ;;
699 ***************
700 *** 49,53 ****
701   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
703   # This shell script is intended for use with man, so warnings are
704   # probably not wanted.  Also load nroff-style character definitions.
705 ! exec groff -Wall -mtty-char $T $opts $rest
706 --- 52,56 ----
707   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
709   # This shell script is intended for use with man, so warnings are
710 ! # probably not wanted.
711 ! exec groff -Wall $T $opts $rest
715 Compilation Problems
716 ====================
720 * Compilation dies with
722     y.tab.c: In function `int yyparse()':
723     y.tab.c: `size_t' undeclared in namespace `std'
725 * bison reports conflicts (either on stderr or in the `pic.output'
726   file) while processing `pic.y', and the produced pic binary doesn't
727   work at all.
729 You need bison version 1.875b or greater.  Alternatively, use yacc or
730 byacc.
732 ----------------------------------------------------------------------
734 * There are many empty `Makefile.dep' files.  Is this a bug?
736 No.  Real dependency files are created with a `make depend' call.
738 ----------------------------------------------------------------------
740 * On HP-UX, the compiler complains about missing symbol `alloca'.
744   export LDFLAGS=-lPW
746 before starting the configure script.
748 ----------------------------------------------------------------------
750 * The configure script fails on OS/390 (z/OS) Unix.
752 [This has been fixed in z/OS V1R3 (aka OS/390 R13).]
754 There is a bug in the Language Environment (LE) whereby the test
755 program for static destructors fails.  You see the message
756 `configure: error: a working C++ compiler is required'.
758 Applying PTF UQ42006 is supposed to fix this, but the test program is
759 still returning the wrong value (1).  To work around this problem, you
760 can comment out the following in the configure script (near line 2029).
761 This effectively bypasses the test (static constructors and
762 destructors do actually work properly):
764 #if { (eval echo "$as_me:2029: \"$ac_link\"") >&5
765 #  (eval $ac_link) 2>&5
766 #  ac_status=$?
767 #  echo "$as_me:2032: \$? = $ac_status" >&5
768 #  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
769 #  { (eval echo "$as_me:2034: \"$ac_try\"") >&5
770 #  (eval $ac_try) 2>&5
771 #  ac_status=$?
772 #  echo "$as_me:2037: \$? = $ac_status" >&5
773 #  (exit $ac_status); }; }; then
774 #  echo "$as_me:2039: result: yes" >&5
775 #echo "${ECHO_T}yes" >&6
776 #else
777 #  echo "$as_me: program exited with status $ac_status" >&5
778 #echo "$as_me: failed program was:" >&5
779 #cat conftest.$ac_ext >&5
780 #echo "$as_me:2045: result: no" >&5
781 #echo "${ECHO_T}no" >&6;{ { echo "$as_me:2046: error: a working C++ compiler is required" >&5
782 #echo "$as_me: error: a working C++ compiler is required" >&2;}
783 #   { (exit 1); exit 1; }; }
786 ----------------------------------------------------------------------
788 * I get errors when I try to compile groff with DEC C++.
790 Fix the declaration of write() in <unistd.h> so that the second
791 argument is a const char *.  Fix the declaration of open() in
792 <sys/file.h> so that the first argument is a const char *.
794 ----------------------------------------------------------------------
796 * On a host using Unix make (e.g. Solaris), if you are compiling for
797   multiple architectures by building in a subdirectory, the make stops
798   with a message like this:
800     make: Fatal error: Don't know how to make target `assert.o'
802   or like this:
804     make: Fatal error: Can't find /u/src/groff/src/include/Makefile.sub': No such file or directory
806 This occurs because GNU make and Unix make handle VPATH differently,
807 and the groff build relies on GNU make's VPATH handling.
809 Use GNU make <http://www.gnu.org/software/make/> to work around this.
810 In Solaris 8 and 9, GNU make is on the Software Companion CD in
811 package SFWgmake and is installed as /opt/sfw/bin/gmake.  Prebuilt
812 versions of GNU make for Solaris are also available from
813 sunfreeware.com.
815 ----------------------------------------------------------------------
817 * On Ultrix, the make program stops with the message
819     *** Error code 1
821     Stop.
823   for no apparent reason.
825 Use GNU make.
827 ----------------------------------------------------------------------
829 * I'm having problems compiling groff on 386BSD 0.1.
831 If you're using ash as /bin/sh, you'll need the following patch.
833 *** gendef.sh.org       Sun Jun 30 13:30:36 1991
834 --- gendef.sh   Sun Feb 28 10:23:49 1993
835 ***************
836 *** 3,9 ****
837   file=$1
838   shift
839   
840 ! defs="#define $1"
841   shift
842   for def
843   do
844 --- 3,10 ----
845   file=$1
846   shift
847   
848 ! x=$1
849 ! defs="#define $x"
850   shift
851   for def
852   do
854 You'll also need to change dirnamemax.c so that it doesn't use
855 pathconf().
857 ----------------------------------------------------------------------
859 * While compiling on Xenix, ranlib libgroff.a fails.
861 The system ranlib can't handle externals longer than 40 characters.
862 Use the ranlib included in demon.co.uk:/pub/xenix/g++-1.40.3a.v1
863 instead.
865 ----------------------------------------------------------------------
867 * I get errors when I try to compile groff with Sun C++ version 3 or
868   earlier.
870 Groff requires header files that are moderately compatible with AT&T
871 C++ and ANSI C.  With some versions of Sun C++, the supplied header
872 files need some of the following changes to meet this requirement:
873 <string.h> must declare the mem* functions, (just add `#include
874 <memory.h>' to <string.h>); the first argument to fopen and freopen
875 should be declared as `const char *'; the first argument to fread
876 should be declared as `void *'; the first argument to fwrite should be
877 declared as `const void *'; malloc should be declared to return
878 `void *'; in <alloca.h>, the declaration `extern "C" { void
879 *__builtin_alloca(int); }' should be added; in <sys/signal.h> the
880 return type and the second argument type of signal() should be changed
881 to be `void (*)(int)'.
883 You can either change them in place, or copy them to some other
884 directory and include that directory with a -I option.
886 ----------------------------------------------------------------------
888 * I get errors when I try to compile groff with Forte Development 6
889   or 6u1, or Sun C++ version 5.0 through 5.2.
891 This is a known problem; see Sun bug #4301919.  See Sun patches
892 109482, 109490, 109508, and 109509 for fixes.
894 ----------------------------------------------------------------------
896 * I get warnings from the Sun linker while using gcc 3.4.0:
898   ld: warning: relocation error: R_SPARC_UA32:
899       file groff/src/libs/libgroff/libgroff.a(getopt.o): symbol optarg:
900       external symbolic relocation against non-allocatable
901       section .debug_info; cannot be processed at runtime:
902       relocation ignored
904 This seems to be a known problem (Sun bugs #4910101 and #4910810,
905 filed in September 2003; gcc bug #15599, filed May 2004) without a
906 public fix as of this writing.  A work-around is to use option
907 `-gstabs+' instead of `-g' (and a high probability that the output is
908 only debuggable with gdb but not with Sun's debuggers).
910 ----------------------------------------------------------------------
912 * I get lots of `numeric overflow' error messages whenever I run
913   groff; I compiled groff with AT&T C++ 2.0 with an ANSI C compiler.
915 Make sure -DCFRONT_ANSI_BUG is included in DEFINES in the top-level
916 Makefile.  If that doesn't solve the problem, define INT_MIN as
917 -INT_MAX in libgroff/lib.h.
919 ----------------------------------------------------------------------
921 * When compiling on MacOS X, groff compiles but does not run well,
922   especially `eqn', causing many `can't break line' messages.
924 Use  ./configure CXX=g++2  then make as usual.