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]

cygwin glib2-2.4.6-1 bug?


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.boekhold@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.boekhold@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?

Maarten

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