groff
[Top][All Lists]
Advanced

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

[Groff] Re: mkstemp


From: John David Anglin
Subject: [Groff] Re: mkstemp
Date: Wed, 5 Sep 2001 18:59:56 -0400 (EDT)

> Oops.  Going back to step one, I find that the problem is still there:
> 
> configure:4318: checking for mkstemp
> configure:4355: g++ -o conftest -O2  -s conftest.cc  >&5
> configure:4334: declaration of C function `char mkstemp()' conflicts with
> /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.0.1/include/stdlib.h:246: 
> previous
>    declaration `int mkstemp(char*)' here
> configure:4358: $? = 1

I made the patch below and got further:

g++ -I. -I/xxx/gnu/groff-1.17.3/src/preproc/pic 
-I/xxx/gnu/groff-1.17.3/objdir/src/include -I/xxx/gnu/groff-1.17.3/src/include 
-DHAVE_CONFIG_H -O2  -c /xxx/gnu/groff-1.17.3/src/preproc/pic/pic.cc
/xxx/gnu/groff-1.17.3/src/preproc/pic/pic.y: In function `char*
   do_sprintf(const char*, const double*, int)':
/xxx/gnu/groff-1.17.3/src/preproc/pic/pic.y:1780: `snprintf' undeclared (first 
use this function)

Although the system libc has snprintf and vsnprintf, there is no declaration
in the hpux 10.20 header files or any documentation on these functions.  I
seem to recall in helping to port autogen to hpux that there were reasons
why the system versions of snprintf and vsnprintf shouldn't be used.

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

2001-09-05  John David Anglin  <address@hidden>

        * configure.ac: Check for mkstemp with C compiler.

--- configure.ac.orig   Wed Sep  5 12:00:28 2001
+++ configure.ac        Wed Sep  5 17:49:13 2001
@@ -53,8 +53,7 @@
 LIBS="$LIBS -lc $LIBM"
 AC_REPLACE_FUNCS(fmod getcwd putenv snprintf strerror strtol)
 LIBS="$saved_libs"
-AC_CHECK_FUNCS(gettimeofday rename strcasecmp strncasecmp strsep)
-GROFF_MKSTEMP
+AC_CHECK_FUNCS(gettimeofday mkstemp rename strcasecmp strncasecmp strsep)
 AC_DECL_SYS_SIGLIST
 dnl checks for compiler characteristics
 GROFF_ARRAY_DELETE

reply via email to

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