[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Missing glib function in cygwin
From: |
Ingo Macherius |
Subject: |
[Bug-gnubg] Missing glib function in cygwin |
Date: |
Fri, 14 Aug 2009 06:04:54 +0200 |
Hi,
I've compiled gnubg for cygwin, with a few minor issues. Python doesn't link,
and there is a superfluous -lresolv in the linker command. But these are not
show stoppers, however this one is.
Cygwin comes with a pretty outdated verion of glib:
#define GLIB_MAJOR_VERSION 2
#define GLIB_MINOR_VERSION 10
#define GLIB_MICRO_VERSION 3
This version is missing one function used in analysis.c
...
while ((n = (int)g_ascii_strtoll(sz, &sz, 10)) != 0) {
if (n > c) {
outputerrf("Only %d moves in movelist\n", c);
g_slist_free(list);
return;
}
if (!g_slist_find(list, GINT_TO_POINTER(n)))
list = g_slist_append(list, GINT_TO_POINTER(n));
}
...
The linker fails to find g_ascii_strtoll. A quick check in the glib doc reveals
the function indeed is not in 2.10.3, only g_ascii_strtoull() is.
http://library.gnome.org/devel/glib/2.10/glib-String-Utility-Functions.html#g-ascii-strtoull
vs.
http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-ascii-strtoll
Maybe there is a workaround for the loop in analysis.c without using the
missing function?
Cheers,
Ingo
- [Bug-gnubg] Missing glib function in cygwin,
Ingo Macherius <=