Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: Maarten Boekhold 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 > #include > > 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/