glib 2.15 not clean with -pedantic

Bug #179119 reported by Fabien Tassin
2
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Fix Released
High
Alexander Sack

Bug Description

When compiling thunderbird-2.0.0.9 with -pedantic, it fails on /usr/include/glib-2.0/glib/gtestutils.h errors:

$ g++-4.2 -o nsMIMEInfoUnix.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2007122722 -I. -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include/unicharutil -I../../dist/include/mimetype -I../../dist/include/uriloader -I../../dist/include/necko -I../../dist/include/rdf -I../../dist/include/webshell -I../../dist/include/plugin -I../../dist/include/pref -I../../dist/include/intl -I../../dist/include/uconv -I../../dist/include/docshell -I../../dist/include/windowwatcher -I../../dist/include/embed_base -I../../dist/include/dom -I../../dist/include/exthandler -I../../dist/include -I/usr/include/nspr -I/usr/include -I/usr/include -I../../dist/sdk/include -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -pipe -w -O2 -fno-strict-aliasing -g -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsMIMEInfoUnix.pp ./unix/nsMIMEInfoUnix.cpp
In file included from /usr/include/glib-2.0/glib.h:74,
                 from ./unix/nsMIMEInfoUnix.cpp:30:
/usr/include/glib-2.0/glib/gtestutils.h:25: error: extra ‘;’
/usr/include/glib-2.0/glib/gtestutils.h:121: error: comma at end of enumerator list
/usr/include/glib-2.0/glib/gtestutils.h:218: error: comma at end of enumerator list
/usr/include/glib-2.0/glib/gtestutils.h:243: error: extra ‘;’

ii libglib2.0-0 2.15.0-0ubuntu1 The GLib library of C routines
ii libglib2.0-dev 2.15.0-0ubuntu1 Development files for the GLib library

Related branches

Revision history for this message
Fabien Tassin (fta) wrote :
Revision history for this message
Che Guevara (che-guevara-3) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

the debdiff looks good.

Changed in glib2.0:
assignee: nobody → asac
status: New → In Progress
Changed in glib2.0:
importance: Undecided → Medium
Alexander Sack (asac)
Changed in glib2.0:
importance: Medium → High
Revision history for this message
Alexander Sack (asac) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

uploaded!

Please verify that the build succeeds :).

Thanks for your contribution,

  - Alexander

Changed in glib2.0:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.15.0-0ubuntu2

---------------
glib2.0 (2.15.0-0ubuntu2) hardy; urgency=low

  * Add new patch 70_fix_xulrunner_kmplayer_build.patch from upstream
    svn to fix build of kmplayer and others (LP: #179119)

  [ Alexander Sack ]
  * reviewed and sponsored.

 -- Ilya Eremin <email address hidden> Sat, 29 Dec 2007 15:32:14 +0000

Changed in glib2.0:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.