[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(no subject)
From: |
Werner LEMBERG |
Subject: |
(no subject) |
Date: |
Sun, 25 Nov 2001 18:21:15 +0100 (CET) |
> in file included from font.cc:27:
> /usr/local/src/groff-current/src/include/lib.h:54: previous declaration of
> `int
> mkstemp(char*)' with C++ linkage
> /usr/include/stdlib.h:150: conflicts with new declaration with C linkage
Thanks for the report. This is a known problem; please try the new
GROFF_MKSTEMP function below: Replace the old one in aclocal.m4 and
run autoconf (version 2.52 or newer) to create a new configure script.
Please report whether this solves the problem.
Werner
======================================================================
dnl
dnl
dnl If mkstemp() isn't available, use our own mkstemp.cc file.
dnl
AC_DEFUN(GROFF_MKSTEMP,
[AC_MSG_CHECKING([for mkstemp])
AC_LANG_PUSH(C++)
AC_LIBSOURCE(mkstemp.cc)
AC_TRY_LINK([#include <stdlib.h>
int (*f) (char *);],
[f = mkstemp;],
AC_MSG_RESULT(yes);AC_DEFINE(HAVE_MKSTEMP, 1,
[Define if you have mkstemp().]),
AC_MSG_RESULT(no);_AC_LIBOBJ(mkstemp))
AC_LANG_POP(C++)])dnl
(no subject), GoodNews, 2001/11/26
(no subject), officebase, 2001/11/30