[Top][All Lists]

[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 
-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"
+extern "C" {
+  extern char * mktemp (char *);
 extern "C" {
   extern int mkstemp (char *);

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

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]