bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3


From: John David Anglin
Subject: Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3
Date: Wed, 18 Jul 2001 13:02:31 -0400 (EDT)

> That's good news.  Anyway, I no longer use atexit in groff but a
> global destructor.  Please test.

Here is the first problem:

g++ -I. -I/xxx/gnu/groff-1.17.3/src/libs/libgroff 
-I/xxx/gnu/groff-1.17.3/objdir/src/include -I/xxx/gnu/groff-1.17.3/src/include 
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 
-DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1 
-DRET_TYPE_SRAND_IS_VOID=1 -DNEED_DECLARATION_STRNCASECMP=1 
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_FMOD=1 
-DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 
-DHAVE_RENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DWCOREFLAG=0200  -O2  
-c /xxx/gnu/groff-1.17.3/src/libs/libgroff/tmpfile.cc
/xxx/gnu/groff-1.17.3/src/libs/libgroff/tmpfile.cc: In function `FILE* 
   xtmpfile(char**, const char*, const char*, int)':
/xxx/gnu/groff-1.17.3/src/libs/libgroff/tmpfile.cc:175: `mktemp' undeclared 
   (first use this function)
/xxx/gnu/groff-1.17.3/src/libs/libgroff/tmpfile.cc:175: (Each undeclared 
   identifier is reported only once for each function it appears in.)

Working around this as follows:

--- tmpfile.cc.orig     Tue Jul 17 09:17:05 2001
+++ tmpfile.cc  Wed Jul 18 12:43:45 2001
@@ -30,6 +30,11 @@
 #include "error.h"
 #include "nonposix.h"
 
+#ifndef HAVE_MKTEMP_PROTO
+extern "C" {
+  extern char * mktemp (char *);
+}
+#endif
 #ifndef HAVE_MKSTEMP_PROTO
 extern "C" {
   extern int mkstemp (char *);

As discussed before, it would be better to have a mkstemp replacement
than use mktemp.

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]