delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/30/12:05:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 30 Apr 2004 18:10:44 +0100
From: Roger Leigh <roger DOT leigh AT epictechnology DOT co DOT uk>
To: cygwin AT cygwin DOT com
Subject: Building the latest GLib and Pango sources on Cygwin
Message-ID: <20040430171044.GA1548@system10>
Mime-Version: 1.0
X-GPG-Key: 0x25BFB848
X-Debian: testing/unstable
X-OS-Uptime: 17:49:08 up 16 min, 3 users, load average: 0.98, 0.59, 0.36
User-Agent: Mutt/1.5.5.1+cvs20040105i

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019