This is the mail archive of the cygwin@cygwin.com 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] | |
build requirements:
==================================
libtool
libtool-devel 20021227-1 or newer (*)
autoconf
autoconf-devel 2.57-1 or newer
automake
automake-devel 1.7.2-1 or newer
gcc 3.2-3 or newer
binutils 20021117-1 or newer
libiconv 1.8-2
libiconv2 1.8-2
libintl2 0.11.5-1
gettext 0.11.5-1
gettext-devel 0.11.5-1
(*) if using 20021227-1, you need to apply the following patch to
/usr/autotools/devel/share/aclocal/libtool.m4 BEFORE running bootstrap,
below. I'll release a new libtool that includes this fix soon.
--- libtool.m4.orig 2002-12-30 00:16:43.000000000 -0500
+++ libtool.m4 2002-12-30 00:16:56.000000000 -0500
@@ -2342,7 +2342,7 @@
# --------------
# enable support for Windows resource files
AC_DEFUN([AC_LIBTOOL_RC],
-[AC_REQUIRE([AC_PROG_RC])
+[AC_REQUIRE([LT_AC_PROG_RC])
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
])# AC_LIBTOOL_RC
build instructions:
==================================
1) unpack glib-2.0.7.tar.bz2
2) cd glib-2.0.7
3) patch -p1 < <path to>/glib-2.0.7.patch
4) chmod +x ./bootstrap
5) ./bootstrap
6) mkdir .build && cd .build
7) CFLAGS=-g ../configure --prefix=/usr/local --srcdir=<path to>/glib-2.0.7 --enable-maintainer-mode
8) make
test results:
==================================
string-test: FAIL
dies in this test:
g_string_sprintf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%100.100f",
"this pete guy sure is a wuss, like he's the number ",
1,
" wuss. everyone agrees.\n",
string1->str,
10, 666, 15, 15, 666.666666666, 666.666666666);
death occurs in
g_string_printf
g_string_append_printf_internal
g_strdup_vprintf
g_new (gchar, g_printf_string_upper_bound(format,args1))
where second arg evaulates to 10324
g_new is #defined as
#define g_new(struct_type, n_structs) \
((struct_type *) g_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs))))
so this call is ACTUALLY
(char *) g_malloc ( (sizeof (char)) * 10324 )
in g_malloc, we die at this line:
mem = glib_mem_vtable.malloc ( nbytes )
where nbytes is 10324
glib_mem_vtable.malloc = 0x10063b20 <malloc>
death is a SIGSEGV, and it must occur in malloc, and it corrupts the stack.
Haven't investigated this further, because you need a debuggable kernel and I
don't have time to build one right now.
Attachment:
glib-2.0.7.patch.gz
Description: GNU Zip compressed data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |