[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#689265: qt4-x11: FTBFS due to glib _GMutex type discrepancy



Source: qt4-x11
Version: 4:4.8.2+dfsg-2
Severity: important
Tags: patch

Hello,

I've tried to rebuild qt4-x11, but got an error about _GMutex: it has a
different type in glib:

union _GMutex
{
  /*< private >*/
  gpointer p; 
  guint i[2];
};

and in qt4-x11's GTypedefs.h:

typedef struct _GMutex GMutex;

so that I had to apply the attached patch to fix the build.

Samuel

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.0.4 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
> C'est vrai. FreeBSD pourrait être bien s'il avait une licence
> correcte.
Oh, mon troll-ô-meter vient d'exploser...
-+- OR in Guide du linuxien pervers - "Bien regler son troll-ô-meter"
--- src/3rdparty/webkit/Source/JavaScriptCore/wtf/gobject/GTypedefs.h		2012-10-01 01:08:44.613545773 +0200
+++ src/3rdparty/webkit/Source/JavaScriptCore/wtf/gobject/GTypedefs.h	2012-10-01 01:08:01.178469875 +0200
@@ -52,7 +52,7 @@
 typedef struct _GHashTable GHashTable;
 typedef struct _GInputStream GInputStream;
 typedef struct _GList GList;
-typedef struct _GMutex GMutex;
+typedef union _GMutex GMutex;
 typedef struct _GPatternSpec GPatternSpec;
 typedef struct _GPollableOutputStream GPollableOutputStream;
 typedef struct _GSocketClient GSocketClient;

Reply to: