bug-groff
[Top][All Lists]
Advanced

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

Minor patch: Missing mkstemp declaration in groff 1.17.2


From: Phil Lobbes
Subject: Minor patch: Missing mkstemp declaration in groff 1.17.2
Date: Fri, 15 Feb 2002 10:00:44 -0800

I did a quick check but didn't see a patch out there for this already,
sorry if this is a duplicate of some other bug report.

Sincerely,
Phil
--
Phillip E. Lobbes
address@hidden

Filled out bug report...

GROFF VERSION:
1.17.2

MACHINE:
Sun Ultra Enterprise 3000

OS:
SunOS 5.5.1

COMPILER:
gcc version 2.95.3 20010315 (release)

INPUT FILES:
pre-html.cc

COMMAND LINE:
Problem is in compilation 

g++ -I. -I/export/site/src/groff/groff-1.17.2/src/preproc/html
-I/export/site/src/groff/groff-1.17.2/src/include
-I/export/site/src/groff/groff-1.17.2/src/include -DHAVE_STDLIB_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1
-DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1
-DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void
-DHAVE_STRUCT_EXCEPTION=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
-DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=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 -DHAVE_STRDUP=1
-DHAVE_MKSTEMP=1 -R/site/gcc/default/lib  -c pre-html.cc


DESCRIPTION OF INCORRECT BEHAVIOUR:
pre-html.cc: In function `int makeTempFiles()':
pre-html.cc:1373: implicit declaration of function `int mkstemp(...)'
*** Error code 1
make: Fatal error: Command failed for target `pre-html.o'
Current working directory
/export/site/src/groff/groff-1.17.2/src/preproc/html
*** Error code 1
make: Fatal error: Command failed for target `src/preproc/html'
Current working directory /export/site/src/groff/groff-1.17.2
*** Error code 1
make: Fatal error: Command failed for target `all'


SUGGESTED FIX [optional]:
Add prototype declaration using same #ifndef from other sources in
same distribution.


[preproc/html] ultra(1439)> diff -C 3 pre-html.cc*
*** pre-html.cc Fri Feb 15 09:46:25 2002
--- pre-html.cc.ORIG    Wed Jul  4 15:51:30 2001
***************
*** 88,99 ****
  #   define FALSE (1==0)
#endif

- #ifndef HAVE_MKSTEMP_PROTO
- extern "C" {
-   extern int mkstemp(char *);
- }
- #endif
-
  void stop() {}

  typedef enum {CENTERED, LEFT, RIGHT, INLINE} IMAGE_ALIGNMENT;
--- 88,93 ----



reply via email to

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