Bug#416863: Causes FTBFS with GCC 4.3: meaning of "inline" changed in C99

Martin Michlmayr tbm at cyrius.com
Fri Mar 30 22:29:28 UTC 2007


Package: libglib2.0-dev
Version: 2.12.6-2
Usertags: ftbfs-gcc-4.3

This package causes many build failures with GCC 4.3.  Version 4.3 has
not been released yet but I'm building with a snapshot in order to
find errors and give people an advance warning.  C99 has changed the
meaning of "inline" and you need to update your header files
accordingly, see e.g.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31389

Example build failure:

> Automatic build of easychem_0.6-3 on em64t by sbuild/amd64 0.53
...
> gcc -o easychem auxi.o bonds.o easychem.o export.o dialogs.o detect.o library.o drawing.o `pkg-config --libs gtk+-2.0`  -W -Wpointer-arith -pedantic -std=c99 -DUNIX -DI18N -DPREFIX=\"/usr\" -Wall -g -O2
> bonds.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of `g_bit_nth_lsf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:277: first defined here
> bonds.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of `g_bit_nth_msf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:290: first defined here
> bonds.o: In function `g_bit_storage':
> /usr/include/glib-2.0/glib/gutils.h:304: multiple definition of `g_bit_storage'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:304: first defined here
> bonds.o: In function `g_trash_stack_push':
> /usr/include/glib-2.0/glib/gutils.h:321: multiple definition of `g_trash_stack_push'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:321: first defined here
> bonds.o: In function `g_trash_stack_pop':
> /usr/include/glib-2.0/glib/gutils.h:329: multiple definition of `g_trash_stack_pop'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:329: first defined here
> bonds.o: In function `g_trash_stack_peek':
> /usr/include/glib-2.0/glib/gutils.h:343: multiple definition of `g_trash_stack_peek'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:343: first defined here
> bonds.o: In function `g_trash_stack_height':
> /usr/include/glib-2.0/glib/gutils.h:356: multiple definition of `g_trash_stack_height'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:356: first defined here
> easychem.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of `g_bit_nth_lsf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:277: first defined here
> easychem.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of `g_bit_nth_msf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:290: first defined here
> easychem.o: In function `g_bit_storage':
> /usr/include/glib-2.0/glib/gutils.h:304: multiple definition of `g_bit_storage'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:304: first defined here
> easychem.o: In function `g_trash_stack_push':
> /usr/include/glib-2.0/glib/gutils.h:321: multiple definition of `g_trash_stack_push'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:321: first defined here
> easychem.o: In function `g_trash_stack_pop':
> /usr/include/glib-2.0/glib/gutils.h:329: multiple definition of `g_trash_stack_pop'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:329: first defined here
> easychem.o: In function `g_trash_stack_peek':
> /usr/include/glib-2.0/glib/gutils.h:343: multiple definition of `g_trash_stack_peek'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:343: first defined here
> easychem.o: In function `g_trash_stack_height':
> /usr/include/glib-2.0/glib/gutils.h:356: multiple definition of `g_trash_stack_height'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:356: first defined here
> export.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of `g_bit_nth_lsf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:277: first defined here
> export.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of `g_bit_nth_msf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:290: first defined here
> export.o: In function `g_bit_storage':
> /usr/include/glib-2.0/glib/gutils.h:304: multiple definition of `g_bit_storage'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:304: first defined here
> export.o: In function `g_trash_stack_push':
> /usr/include/glib-2.0/glib/gutils.h:321: multiple definition of `g_trash_stack_push'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:321: first defined here
> export.o: In function `g_trash_stack_pop':
> /usr/include/glib-2.0/glib/gutils.h:329: multiple definition of `g_trash_stack_pop'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:329: first defined here
> export.o: In function `g_trash_stack_peek':
> /usr/include/glib-2.0/glib/gutils.h:343: multiple definition of `g_trash_stack_peek'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:343: first defined here
> export.o: In function `g_trash_stack_height':
> /usr/include/glib-2.0/glib/gutils.h:356: multiple definition of `g_trash_stack_height'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:356: first defined here
> dialogs.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of `g_bit_nth_lsf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:277: first defined here
> dialogs.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of `g_bit_nth_msf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:290: first defined here
> dialogs.o: In function `g_bit_storage':
> /usr/include/glib-2.0/glib/gutils.h:304: multiple definition of `g_bit_storage'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:304: first defined here
> dialogs.o: In function `g_trash_stack_push':
> /usr/include/glib-2.0/glib/gutils.h:321: multiple definition of `g_trash_stack_push'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:321: first defined here
> dialogs.o: In function `g_trash_stack_pop':
> /usr/include/glib-2.0/glib/gutils.h:329: multiple definition of `g_trash_stack_pop'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:329: first defined here
> dialogs.o: In function `g_trash_stack_peek':
> /usr/include/glib-2.0/glib/gutils.h:343: multiple definition of `g_trash_stack_peek'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:343: first defined here
> dialogs.o: In function `g_trash_stack_height':
> /usr/include/glib-2.0/glib/gutils.h:356: multiple definition of `g_trash_stack_height'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:356: first defined here
> detect.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of `g_bit_nth_lsf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:277: first defined here
> detect.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of `g_bit_nth_msf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:290: first defined here
> detect.o: In function `g_bit_storage':
> /usr/include/glib-2.0/glib/gutils.h:304: multiple definition of `g_bit_storage'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:304: first defined here
> detect.o: In function `g_trash_stack_push':
> /usr/include/glib-2.0/glib/gutils.h:321: multiple definition of `g_trash_stack_push'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:321: first defined here
> detect.o: In function `g_trash_stack_pop':
> /usr/include/glib-2.0/glib/gutils.h:329: multiple definition of `g_trash_stack_pop'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:329: first defined here
> detect.o: In function `g_trash_stack_peek':
> /usr/include/glib-2.0/glib/gutils.h:343: multiple definition of `g_trash_stack_peek'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:343: first defined here
> detect.o: In function `g_trash_stack_height':
> /usr/include/glib-2.0/glib/gutils.h:356: multiple definition of `g_trash_stack_height'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:356: first defined here
> drawing.o: In function `g_bit_nth_lsf':
> /usr/include/glib-2.0/glib/gutils.h:277: multiple definition of `g_bit_nth_lsf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:277: first defined here
> drawing.o: In function `g_bit_nth_msf':
> /usr/include/glib-2.0/glib/gutils.h:290: multiple definition of `g_bit_nth_msf'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:290: first defined here
> drawing.o: In function `g_bit_storage':
> /usr/include/glib-2.0/glib/gutils.h:304: multiple definition of `g_bit_storage'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:304: first defined here
> drawing.o: In function `g_trash_stack_push':
> /usr/include/glib-2.0/glib/gutils.h:321: multiple definition of `g_trash_stack_push'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:321: first defined here
> drawing.o: In function `g_trash_stack_pop':
> /usr/include/glib-2.0/glib/gutils.h:329: multiple definition of `g_trash_stack_pop'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:329: first defined here
> drawing.o: In function `g_trash_stack_peek':
> /usr/include/glib-2.0/glib/gutils.h:343: multiple definition of `g_trash_stack_peek'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:343: first defined here
> drawing.o: In function `g_trash_stack_height':
> /usr/include/glib-2.0/glib/gutils.h:356: multiple definition of `g_trash_stack_height'
> auxi.o:/usr/include/glib-2.0/glib/gutils.h:356: first defined here
> collect2: ld returned 1 exit status
> make[1]: *** [easychem] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the pkg-gnome-maintainers mailing list