Simon Josefsson wrote: > GnuTLS fails to build under mingw (see output below), and the reason is > that the select-tests module depends on gettimeofday module, which under > mingw does this: > > AC_DEFINE([localtime], [rpl_localtime], > [Define to rpl_localtime if the replacement function should be used.]) > > This re-definition causes the link failure, because gettimeofday.c is > not build as part of the replacement gnulib library, so there is no > rpl_localtime symbol. It is only built in the gnulib self-test > directory (gl/tests/ in gnutls). > > Does anyone see a clean solution to this problem?
First of all, would this be fixed by moving the define into lib/time.in.h? Here is a list of files that do AC_DEFINE([foo], [rpl_foo]): m4/calloc.m4 m4/canonicalize-lgpl.m4 m4/free.m4 m4/getgroups.m4 m4/getopt.m4 m4/gettimeofday.m4 m4/memcmp.m4 m4/mktime.m4 m4/openat.m4 m4/poll.m4 m4/regex.m4 m4/rename-dest-slash.m4 m4/rename.m4 m4/strnlen.m4 m4/timegm.m4 m4/tmpfile.m4 m4/tzset.m4 m4/utime.m4 Paolo