Your message dated Sat, 15 Mar 2008 18:32:05 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#470796: fixed in glib2.0 2.16.1-2
has caused the Debian Bug report #470796,
regarding libglib2.0-dev: provokes warnings when gcc is in C99 mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
470796: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470796
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: libglib2.0-dev
Version: 2.16.1-1
Severity: normal
Tags: patch

When a C program that includes <glib/gutils.h> is built with
gcc -std=gnu99 or with gcc -std=c99, warnings are provoked by the GLib headers.
When gcc is invoked with -std=gnu89 (the default) or -std=c89, there are no
warnings.

Many projects use -Werror for compilation (at least for development versions),
and AC_PROG_CC_STDC selects -std=gnu99 by default, so this prevents compilation
of (for instance) development versions of Telepathy components.

A shell session reproducing the problem is shown below:

[EMAIL PROTECTED] cp /usr/include/glib-2.0/glib/gutils.h mygutils.h
[EMAIL PROTECTED] cat > tmp.c
#include "mygutils.h"
int main (void) { return 0; }
[EMAIL PROTECTED] gcc -std=gnu89 `pkg-config --libs --cflags glib-2.0` tmp.c
[EMAIL PROTECTED] gcc -std=gnu99 `pkg-config --libs --cflags glib-2.0` tmp.c
In file included from tmp.c:1:
mygutils.h:320: warning: C99 inline functions are not supported; using GNU89
mygutils.h:320: warning: to disable this warning use -fgnu89-inline or the 
gnu_inline function attribute
mygutils.h:334: warning: C99 inline functions are not supported; using GNU89
mygutils.h:347: warning: C99 inline functions are not supported; using GNU89
mygutils.h:366: warning: C99 inline functions are not supported; using GNU89
mygutils.h:374: warning: C99 inline functions are not supported; using GNU89
mygutils.h:391: warning: C99 inline functions are not supported; using GNU89
mygutils.h:400: warning: C99 inline functions are not supported; using GNU89

I suggest patching gutils.h like this:

- --- gutils.h.orig     2008-03-13 18:14:53.000000000 +0000
+++ mygutils.h  2008-03-13 18:15:19.000000000 +0000
@@ -97,7 +97,7 @@
 #  define G_INLINE_FUNC
 #  undef  G_CAN_INLINE
 #elif defined (__GNUC__) 
- -#  ifdef __GNUC_STDC_INLINE__
+#  if defined (__GNUC_STDC_INLINE__) || defined (__GNUC_GNU_INLINE__)
 #   define G_INLINE_FUNC extern inline __attribute__ ((__gnu_inline__))
 #  else
 #   define G_INLINE_FUNC extern inline

info gcc says:

   [the gnu_inline attribute] is available if either of the preprocessor
   macros `__GNUC_GNU_INLINE__' or `__GNUC_STDC_INLINE__' are defined

so I believe this is a correct patch. info gcc also says:

    In versions prior to 4.3, the only effect of explicitly including it is
    to disable warnings about using inline functions in C99 mode.

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libglib2.0-dev depends on:
ii  libc6                         2.7-9      GNU C Library: Shared libraries
ii  libglib2.0-0                  2.16.1-1   The GLib library of C routines
ii  libpcre3                      7.6-2      Perl 5 Compatible Regular Expressi
ii  libselinux1                   2.0.35-1   SELinux shared libraries
ii  pkg-config                    0.22-1     manage compile and link flags for 

Versions of packages libglib2.0-dev recommends:
ii  python                        2.4.4-6    An interactive high-level object-o

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iD8DBQFH2XIxWSc8zVUw7HYRAgIFAKCXUzh5AuPSTRfwTiaFs/Ry206tbACfVmCc
akOuGESpedy6RlCXHuy5/JM=
=kp61
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message ---
Source: glib2.0
Source-Version: 2.16.1-2

We believe that the bug you reported is fixed in the latest version of
glib2.0, which is due to be installed in the Debian FTP archive:

glib2.0_2.16.1-2.diff.gz
  to pool/main/g/glib2.0/glib2.0_2.16.1-2.diff.gz
glib2.0_2.16.1-2.dsc
  to pool/main/g/glib2.0/glib2.0_2.16.1-2.dsc
libgio-fam_2.16.1-2_i386.deb
  to pool/main/g/glib2.0/libgio-fam_2.16.1-2_i386.deb
libglib2.0-0-dbg_2.16.1-2_i386.deb
  to pool/main/g/glib2.0/libglib2.0-0-dbg_2.16.1-2_i386.deb
libglib2.0-0_2.16.1-2_i386.deb
  to pool/main/g/glib2.0/libglib2.0-0_2.16.1-2_i386.deb
libglib2.0-data_2.16.1-2_all.deb
  to pool/main/g/glib2.0/libglib2.0-data_2.16.1-2_all.deb
libglib2.0-dev_2.16.1-2_i386.deb
  to pool/main/g/glib2.0/libglib2.0-dev_2.16.1-2_i386.deb
libglib2.0-doc_2.16.1-2_all.deb
  to pool/main/g/glib2.0/libglib2.0-doc_2.16.1-2_all.deb
libglib2.0-udeb_2.16.1-2_i386.udeb
  to pool/main/g/glib2.0/libglib2.0-udeb_2.16.1-2_i386.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Dröge <[EMAIL PROTECTED]> (supplier of updated glib2.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 14 Mar 2008 10:13:09 +0100
Source: glib2.0
Binary: libglib2.0-0 libglib2.0-udeb libglib2.0-dev libglib2.0-0-dbg 
libglib2.0-data libglib2.0-doc libgio-fam
Architecture: source all i386
Version: 2.16.1-2
Distribution: unstable
Urgency: low
Maintainer: Loic Minier <[EMAIL PROTECTED]>
Changed-By: Sebastian Dröge <[EMAIL PROTECTED]>
Description: 
 libgio-fam - GLib Input, Output and Streaming Library (fam module)
 libglib2.0-0 - The GLib library of C routines
 libglib2.0-0-dbg - The GLib libraries and debugging symbols
 libglib2.0-data - Common files for GLib library
 libglib2.0-dev - Development files for the GLib library
 libglib2.0-doc - Documentation files for the GLib library
 libglib2.0-udeb - The GLib library of C routines - minimal runtime (udeb)
Closes: 469504 470796
Changes: 
 glib2.0 (2.16.1-2) unstable; urgency=low
 .
   [ Josselin Mouette ]
   * 02_usr_share_gnome_applications.patch: ported from GnomeVFS. Use
     /usr/share/gnome/applications/defaults.list to obtain the defaults
     for MIME mapping. Currently this file is still shipped by GnomeVFS.
     Closes: #469504.
   * 03_blacklist-directories.patch: ported from GnomeVFS. Blacklist more
     FHS directories that are commonly found as Unix mount points,
     including those necessary for live-initramfs.
   * 04_nfs4.patch: ported from GnomeVFS. Support for nfs4 filesystems.
 .
   [ Sebastian Dröge ]
   * 80_static-mutex-aliasing-warnings.patch: Prevent warnings about
     breaking strict-aliasing rules when using G_LOCK().
     See http://bugzilla.gnome.org/show_bug.cgi?id=316221
   * 81_c99-inline-warnings.patch: Fix warnings when using G_INLINE_FUNC
     in C99 mode (Closes: #470796).
     See http://bugzilla.gnome.org/show_bug.cgi?id=522292
   * Don't ship the old changelogs and news to save some space.
Files: 
 922c3e3dcaf838d7e4a8231d2cd75f00 1020 libs optional glib2.0_2.16.1-2.dsc
 1022a2e5f9048ea67d03dd9e7b303d44 30846 libs optional glib2.0_2.16.1-2.diff.gz
 ebc2aaf722bece1e67730cc68c0ab4c4 659766 misc optional 
libglib2.0-data_2.16.1-2_all.deb
 66d4f64b602cfa15b48daf59e0a3c985 1164822 doc optional 
libglib2.0-doc_2.16.1-2_all.deb
 d8ad9797f98ccb5866a92cefab4b19fb 743672 libs optional 
libglib2.0-0_2.16.1-2_i386.deb
 788d58484df98af6aed42fdb2012834d 1193562 debian-installer optional 
libglib2.0-udeb_2.16.1-2_i386.udeb
 7336e464c4a8e57b80e8ea8e2647ba29 865784 libdevel optional 
libglib2.0-dev_2.16.1-2_i386.deb
 0aab13744d167e9eb122ff59b5899a25 1099234 libdevel extra 
libglib2.0-0-dbg_2.16.1-2_i386.deb
 c20959f0fcc0fa92e83f7c128f42d157 39616 libs optional 
libgio-fam_2.16.1-2_i386.deb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH3BNFBsBdh1vkHyERAjUKAJ4soexN6OQM2Qc2IU/fspSt49y/1gCgiQoM
QmwVupBSARh6gfOKWtFsZag=
=2H1l
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to