Hi, There were some issues with getopt.h on, for example, Tru64. On that platform, stdio.h #include's getopt.h, so the __GETOPT_PREFIX was not set when groff's getopt.h was included, leading to linker errors.
The solution is simply to move the __GETOPT_PREFIX #define to before all the #include statements. Thanks, Peter
Index: src/utils/pfbtops/pfbtops.c =================================================================== --- src/utils/pfbtops/pfbtops.c.orig 2005-11-08 21:08:48.430666000 -0600 +++ src/utils/pfbtops/pfbtops.c 2005-11-08 21:08:52.964486000 -0600 @@ -23,11 +23,12 @@ #include <config.h> #endif +#define __GETOPT_PREFIX groff_ + #include <stdio.h> #include <stdlib.h> #include <limits.h> -#define __GETOPT_PREFIX groff_ #include <getopt.h> #include "nonposix.h" Index: src/utils/xtotroff/xtotroff.c =================================================================== --- src/utils/xtotroff/xtotroff.c.orig 2005-11-08 21:08:48.405927000 -0600 +++ src/utils/xtotroff/xtotroff.c 2005-11-08 21:08:52.994800000 -0600 @@ -8,6 +8,8 @@ #include <config.h> #endif +#define __GETOPT_PREFIX groff_ + #include <X11/Xlib.h> #include <stdio.h> #include <ctype.h> @@ -17,7 +19,6 @@ #include <fcntl.h> #include <limits.h> -#define __GETOPT_PREFIX groff_ #include <getopt.h> #include "XFontName.h"
_______________________________________________ Groff mailing list [email protected] http://lists.gnu.org/mailman/listinfo/groff
