This is the mail archive of the cygwin 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]

Building the latest GLib and Pango sources on Cygwin


I'm working on fixing up the current version of Glib (part of
GTK+/GNOME) to build on Cygwin.  I've taken the current CVS and some
older patches and reworked them.  These have now been incorporated, and
it is now possible to check out and build Glib on Cygwin.

An "autotooled" copy of the source is available here:
http://www.whinlatter.uklinux.net/gtk/glib.tar.bz2

If you build like this:
  ./configure -C --prefix=/usr --enable-threads --with-libiconv --enable-shared --disable-static
  make
  make check

you'll see that it builds fine, but one check (tests/child-test) fails.
The bug report for this failure is here:

http://bugzilla.gnome.org/show_bug.cgi?id=138425

I'm afraid I know too little about Windows (and Cygwin) internals to be
able to debug this one, so I would greatly appreciate any help anyone
could offer in fixing it.

Threading is deliberately disabled for cygwin targets, even with
--enable-threads. since I couldn't get it working.  Is POSIX threading
possible with cygwin, or broken?


Once Glib is installed, it's possible to build Pango.  I've provided a
slightly-patched copy here:

http://www.whinlatter.uklinux.net/gtk/pango.tar.bz2

Pango consists of a set of different libraries and loadable modules.  I
can't get the X11-related modules to link.  If you build with

  ./configure --prefix=/usr
  make

you'll see it fail with undefined symbols during linking.  I've not been
able to get it to link.  This might be a libtool bug, but I'm not
experienced enough with DLLs to know the finer points about linking.
I've added -no-undefined, but it seems to "lose" the library
dependencies during linking.  The same command works on GNU/Linux.

The problem possibly this line in pango/Makefile.am:

  libpangox_1_0_la_DEPENDENCIES = libpango-$(PANGO_API_VERSION).la $(INCLUDED_X_MODULES)

This tries to link with libpango-$(VER).la, but while it links
libpango-$(VER).dll.a correctly, it doesn't include any of the libraries
this was linked against!  I'm quite convinced this is libtool rather
than Pango at issue.  Can anyone comment on this? (I'd provide the error
messages, but I can't see a "script" equivalent for Cygwin.)


Many thanks,
Roger

-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]