compile gtk2 applications on cygwin?

Frédéric L. W. Meunier 0@pervalidus.tk
Wed Aug 27 02:39:00 GMT 2003


On Tue, 12 Aug 2003, Gerrit P. Haase wrote:

> There are some gnome2 patches available, there is xlocale used where
> it is needed, see here for a starting point:
> http://cygnome2.sourceforge.net/test-patches/

When I tried to compile GLib 2.2.2 or CVS with or without the
patch I got a lot of undefined references (and no shared
libraries). Now I see what broke it is in glib/Makefile (this
is from 2.2.3):

libglib_2_0_la_LIBADD = libcharset/libcharset.la $(trio_libtrio_la) giounix.lo  gspawn.lo gwin32.lo  -liconv -luser32 -lkernel32

it worked once I removed -luser32 -lkernel32 from that line.

Is it the right "fix" or it should compile with them ?

I didn't touch any G_LIBS_EXTRA.

With make check I got:

gcc -DHAVE_CONFIG_H -I. -I/usr/src/glib/tests -I.. -I/usr/src/glib -I/usr/src/glib/glib -I/usr/src/glib/gmodule -DG_DISABLE_CAST_CHECKS  -D_REENTRANT  -O2 -pipe  -Wall -c /usr/src/glib/tests/spawn-test-win32-gui.c
/usr/src/glib/tests/spawn-test-win32-gui.c: In function `WinMain':
/usr/src/glib/tests/spawn-test-win32-gui.c:13: `__argc' undeclared (first use in this function)
/usr/src/glib/tests/spawn-test-win32-gui.c:13: (Each undeclared identifier is reported only once
/usr/src/glib/tests/spawn-test-win32-gui.c:13: for each function it appears in.)
/usr/src/glib/tests/spawn-test-win32-gui.c:27: `__argv' undeclared (first use in this function)
/usr/src/glib/tests/spawn-test-win32-gui.c:45: warning: implicit declaration of function `write'
/usr/src/glib/tests/spawn-test-win32-gui.c:48: `errno' undeclared (first use in this function)
/usr/src/glib/tests/spawn-test-win32-gui.c:56: warning: implicit declaration of function `read'

All others compiled.

2 of 30 tests failed, but reading
http://sources.redhat.com/ml/cygwin/2003-01/msg00085.html I see
the 2 also failed in 2.0.7.

** ERROR **: file /usr/src/glib/tests/strtod-test.c: line 49 (main): assertion failed: (d == g_ascii_strtod (g_ascii_dtostr (buffer, sizeof (buffer), d), NULL))
aborting...
FAIL: strtod-test

PASS: unicode-encoding
.........
g_filename_to_uri() test 9 failed, expected result: file:///etc/%C3%B6%C3%A4%C3%A5, actual result: NULL
Error message: Invalid byte sequence in conversion input
............................................................
FAIL: uri-test

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list