> > _ccall_result = (timezone()); /* line 10508 */
>
> What does mk/config.h say about HAVE_ALTZONE? On a Solaris 8 box I'm
> looking at it says HAVE_ALTZONE is defined.
$ grep ZONE mk/config.h
/* #undef HAVE_ALTZONE */
/* #undef HAVE_TIMEZONE */
#define TYPE_TIMEZONE time_t
/* #undef HAVE_STRUCT_TM_TM_ZONE */
/* #undef HAVE_TM_ZONE */
Because they are commented out, I don't know whether that means
HAVE_ALTZONE and HAVE_TIMEZONE are defined - probably not I would
guess?
> > grepping through /usr/include shows that <time.h> defines
> > extern long timezone;
>
> Does it also define altzone?
Yes, as an extern long. At least, I think so. It is kind of difficult
to tell, because of the multiplicity of #ifdefs to support various older
versions of the Sun C compiler. Here is what I can extract from <time.h>
that might be relevant:
#if defined(__STDC__)
# if defined(__EXTENSIONS__) || __STDC__ == 0 || \
defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
# if defined(__EXTENSIONS__) || (__STDC__ == 0 && \
!defined(_POSIX_C_SOURCE)) || defined(_XOPEN_SOURCE)
extern long timezone;
# endif
# endif
# if __STDC__ == 0 && !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
extern long altzone;
# endif
#else
extern long timezone, altzone;
#endif
and here is what gcc reckons is defined:
$ gcc -E -dM -x c /dev/null
#define __GCC_NEW_VARARGS__ 1
#define __sparc 1
#define __svr4__ 1
#define __GNUC_MINOR__ 95
#define __sun 1
#define sparc 1
#define __sun__ 1
#define __unix 1
#define __unix__ 1
#define __SVR4 1
#define sun 1
#define __GNUC__ 2
#define __sparc__ 1
#define unix 1
which doesn't include __STDC__, meaning that the final declaration should hold.
Unless the following definition from mk/config.h overrides that?
#define STDC_HEADERS 1
Anyway, I changed mk/config.h to add
#define HAVE_ALTZONE
#define HAVE_TIMEZONE
and received the same error. I will now `make clean' and rebuild from scratch,
to see if it makes any difference.
Regards,
Malcolm
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs