On Monday 15 April 2002 11:21 am, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> This is what my config.h thinks: /* Define as 1 if the MKSTEMP
> Angus> function is declared */ #define HAVE_DECL_MKSTEMP 1
>
> Angus> /* Define if you have the `mkstemp' function. */ /* #undef
> Angus> HAVE_MKSTEMP */
>
> Angus> /* Define if you have the `mktemp' function. */ /* #undef
> Angus> HAVE_MKTEMP */
>
> Angus> which is rubbish because both are defined. So, what's going on?
>
> Do you run with a version of autoconf which cannot find functions when
> in C++ language (ac 2.5[012], I think) with compaq cxx?
>
> Otherwise, what are the error messages in config.log?
>
> JMarc

Sign... Yes, I'm running with ac 2.52. Should I downgrade to 2.13?
Angus

configure:17472: checking for mktemp
configure:17509: cxx -std strict_ansi -o conftest -nocleanup 
-msg_display_number -msg_disable 11,193,236,261,401,611 -w0 -ptr 
/usr/users/aleem/OTHERS_CODE/lyx/devel-build/lyx_cxx_repository -O2  
-I$(top_srcdir)/src/cheaders   -I/usr/local/include    -L/usr/local/lib 
conftest.cc -ljpeg  -lSM -lICE -lc -lm   -lX11  -lbsd >&5
cxx: Error: configure, line 17488: #338 more than one instance of overloaded
          function "mktemp" has "C" linkage
char mktemp ();
-----^
cxx: Error: configure, line 17500: #386 no instance of overloaded function
          "mktemp" matches the required type
f = mktemp;
--^
cxx: Info: 2 errors detected in the compilation of "conftest.cc".
configure:17512: $? = 1
configure: failed program was:
#line 17478 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char mktemp (); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mktemp ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mktemp) || defined (__stub___mktemp)
choke me
#else
f = mktemp;
#endif

  ;
  return 0;
}
configure:17528: result: no

Reply via email to