[Bug 31836] Add support for GStreamer 1.0 API/ABI

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jan 21 11:00:06 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=31836

--- Comment #36 from Andrew Eikum <aeikum at codeweavers.com> ---
(In reply to Rafał Mużyło from comment #34)
> That check is nevertheless bogus - sizeof(gint64) by design is *always* 8.
> 

With the correct glib headers for your architecture, yes, it is always 8. But
without setting PKG_CONFIG_PATH to pick up the correct glib-2.0.pc file, it
will be wrong. This is what the configure check is for.

[aeikum at aeikum ~]$ cat test.c
#include <stdio.h>
#include <glib-2.0/glib.h>

int main(int argc, char **argv)
{
    printf("%u\n", sizeof(gint64));
    return 0;
}
[aeikum at aeikum ~]$ gcc $(pkg-config --cflags --libs glib-2.0) -o test test.c
[aeikum at aeikum ~]$ ./test
8
[aeikum at aeikum ~]$ gcc -m32 $(pkg-config --cflags --libs glib-2.0) -o test
test.c
[aeikum at aeikum ~]$ ./test
4
[aeikum at aeikum ~]$ gcc -m32 $(PKG_CONFIG_PATH=/usr/lib32/pkgconfig pkg-config
--cflags --libs glib-2.0) -o test test.c
[aeikum at aeikum ~]$ ./test
8
[aeikum at aeikum ~]$

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list