This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

autoconf's AC_CHECK_FUNCS([strtol])

...says the function isn't there, but there it is.

This is in config.log, is this 'normal' and/or a 'known problem'?

configure:15213: checking for strtol
configure:15250: g++ -o conftest.exe -g -O2 -L/usr/local/lib/ -lexp
at >&5
configure:15228: declaration of C function `char strtol()' conflicts with
/usr/include/stdlib.h:99: previous declaration `long int strtol(const char*,
char**, int)' here
configure:15253: $? = 1
configure: failed program was:
#line 15218 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtol (); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strtol ();
char (*f) ();

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_strtol) || defined (__stub___strtol)
choke me
f = strtol;

return 0;
configure:15269: result: no
Lapo 'Raist' Luchini (PGP & X.509 keys available) (ICQ UIN: 529796)

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]