With nightly build "1.73+", only two problems remain to be resolved. I tried to add these fixes to trac, but it seems new users are not allowed to create new tickets.
Cygwin does not yet have strtold, used in libtransmission/JSON_parser.c . Configure can check for this easily, but configure's definitions file is never used (??), so rather than checking in JSON_parser, I added a define to configure.ac which replaces strtold with strtod:
Code: Select all
diff -bur transmission-1.73+/configure.ac transmission-1.73+.new/configure.ac
--- transmission-1.73+/configure.ac 2009-07-18 08:12:21.000000000 -0400
+++ transmission-1.73+.new/configure.ac 2009-08-01 12:21:58.812500000 -0400
@@ -75,11 +75,15 @@
AC_HEADER_STDC
AC_HEADER_TIME
-AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename strcasecmp localtime_r posix_fallocate memmem])
+AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename strcasecmp localtime_r posix_fallocate memmem strtold])
AC_PROG_INSTALL
AC_PROG_MAKE_SET
ACX_PTHREAD
+if test "x$ac_cv_func_strtold" != "xyes" ; then
+ CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
+fi
+
AC_SEARCH_LIBS(cos, [m])
AC_SEARCH_LIBS([socket], [socket net])
AC_SEARCH_LIBS([gethostbyname], [nsl bind])
Code: Select all
diff -bur transmission-1.73+/configure.ac transmission-1.73+.new/configure.ac
--- transmission-1.73+/configure.ac 2009-07-18 08:12:21.000000000 -0400
+++ transmission-1.73+.new/configure.ac 2009-08-01 12:21:58.812500000 -0400
@@ -335,7 +339,7 @@
have_msw="no"
case $host_os in
- *cygwin|*mingw32*)
+ *mingw32*)
have_msw="yes"
CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"