delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/27/04:39:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-ID: <4157D1C7.40603@familiehaase.de>
Date: Mon, 27 Sep 2004 10:39:35 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Maarten Boekhold <boekhold AT emirates DOT net DOT ae>
CC: cygwin AT cygwin DOT com
Subject: Re: cygwin glib2-2.4.6-1 bug?
References: <41579EBD DOT 9030006 AT emirates DOT net DOT ae>
In-Reply-To: <41579EBD.9030006@emirates.net.ae>
X-IsSubscribed: yes

Maarten Boekhold wrote:

> Hi all (Gerrit in specific),
> 
> I've found some behaviour which is different between glib2-2.4.5-1 and 
> glib2-2.4.6-1, in what appears to be cygwin specific. Observer the 
> following test case:
> 
> ======> gmod.c <=======
> #include <glib.h>
> #include <gmodule.h>
> 
> int main(int argc, char **argv)
> {
>     gchar *full_libdir;
>     gchar *module;
> 
>     full_libdir = g_build_filename ("/opt/xfce/lib", "xfce4", "modules" 
> ,NULL);
>     module      = g_module_build_path(full_libdir, "xfce4_mime_icons");
>     g_warning("full library name: %s\n", module);
>     return 1;
> }
> 
> ======> sample session <========
> maarten DOT boekhold AT DXBM2003 /e/Maarten/src/xfce
> $ gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o gmod.exe 
> gmod.c -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> 
> maarten DOT boekhold AT DXBM2003 /e/Maarten/src/xfce
> $ ./gmod
> 
> ** (process:6052): WARNING **: full library name: 
> /opt/xfce/lib/xfce4/modules/libxfce4_mime_icons.dll
> 
> 
> I swear that this is supposed to return 
> '/opt/xfce/lib/xfce4/modules/cygxfce4_mime_icons.dll', and I swear it 
> *did* this in the previous version of the glib2 package. I will 
> downgrade later today to verify this.
> 
> The only way I can explain this behaviour is if either gmodule isn't 
> built with gmodule-win32.c, *or* of G_WITH_CYGWIN isn't defined when 
> building gmodule-win32.c. The gmodule-win32.c file itself looks OK to me.
> 
> Do you have any idea?

IIRC, I changed the way glib loads modules to use dlopen(), obviously I
missed to verify if loading modules is still working.  Anyway, since
there was this problem with .rdata sections in object files which causes
GConf to fail I need to rebuild glib2 with Charles new fixed libtool.

Thanks for this simple testcase, I'll keep this for regression testing
in future builds.


Gerrit

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