Bug#475488: libglib2.0-dev: incompatible pointer type warning on ia64

Sebastian Dröge slomo at circular-chaos.org
Fri Apr 11 11:34:01 UTC 2008


forwarded 475488 http://bugzilla.gnome.org/show_bug.cgi?id=316221
thanks

Am Donnerstag, den 10.04.2008, 19:14 -0600 schrieb Bryan Sutula:
> Package: libglib2.0-dev
> Version: 2.16.2-1
> Severity: normal
> 
> A simple test program using GStaticMutex and g_static_mutex_lock()
> produces a warning on ia64, but not on i386 or amd64.  It appears that
> upstream glib did a clean-up change before 2.16.2, which now causes
> warnings on some platforms.
> 
> The test program I used is:
> 
> #include <stdlib.h>
> #include <glib.h>
> 
> GStaticMutex my_mutex = G_STATIC_MUTEX_INIT;
> 
> int     main(void) {
> 
>         g_static_mutex_lock(& my_mutex);
>         g_static_mutex_unlock(& my_mutex);
> 
>         exit(0);
> }
> 
> The compile command and output is:
> 
> cc `pkg-config --cflags --libs glib-2.0`    x.c   -o x
> x.c: In function 'main':
> x.c:8: warning: passing argument 1 of 'g_atomic_pointer_get' from incompatible pointer type
> x.c:9: warning: passing argument 1 of 'g_atomic_pointer_get' from incompatible pointer type
> 
> Again, this is only on ia64, as far as I've been able to try, but may
> be on other platforms.  The warning can cause FTBFS on other packages
> using glib, if that package uses -Werror.
> 
> The following URL has a decent description of the problem.  The first
> post is a similar problem statement, and the final post explains what
> may be wrong in glib.
> 
>   http://www.nabble.com/gda-branch-errors-td16529281.html

Hi,
this is already known upstream... no fix is known yet unfortunately :)

Either we have "might break strict-aliasing rules" warnings with gcc 4.3
on all architectures or the warning you filed this bug for.

A real solution has still to be found:
http://bugzilla.gnome.org/show_bug.cgi?id=316221

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20080411/97d41de2/attachment.pgp 


More information about the pkg-gnome-maintainers mailing list