GNOME Bugzilla – Bug 474656
gutils.h:316: warning: C99 inline functions are not supported
Last modified: 2007-12-23 19:18:24 UTC
The following warning breaks the build (-Werror is on by default it seems). make[3]: Entering directory `/opt/gnome-2-20/src/gnome-vfs/libgnomevfs' if /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -pthread -DORBIT2=1 -I/opt/gnome-2-20/include/glib-2.0 -I/opt/gnome-2-20/lib/glib-2.0/include -I/opt/gnome-2-20/include/gconf/2 -I/opt/gnome-2-20/include/orbit-2.0 -I/opt/gnome-2-20/include/libxml2 -I/opt/gnome-2-20/include/dbus-1.0 -I/opt/gnome-2-20/lib/dbus-1.0/include -D_REENTRANT -I/opt/gnome-2-20/include -I/opt/gnome-2-20/include/glib-2.0 -I/opt/gnome-2-20/lib/glib-2.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I/opt/gnome-2-20/include/glib-2.0 -I/opt/gnome-2-20/lib/glib-2.0/include -I/opt/gnome-2-20/include/dbus-1.0 -I/opt/gnome-2-20/lib/dbus-1.0/include -I/usr/include/hal -Wall -Werror -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-strict-aliasing -Wno-sign-compare -DXDG_PREFIX=_gnome_vfs_xdg -DDBUS_API_SUBJECT_TO_CHANGE -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DG_DISABLE_DEPRECATED -DGNOME_VFS_PREFIX=\"/opt/gnome-2-20\" -DGNOME_VFS_BINDIR=\"/opt/gnome-2-20/bin\" -DGNOME_VFS_DATADIR=\"/opt/gnome-2-20/share\" -DGNOME_VFS_LIBDIR=\"/opt/gnome-2-20/lib\" -DGNOME_VFS_LOCALEDIR=\"/opt/gnome-2-20/share/locale\" -DGNOME_VFS_SYSCONFDIR=\"/opt/gnome-2-20/etc\" -DG_LOG_DOMAIN=\"libgnomevfs\" -g -O2 -MT gnome-vfs-ace.lo -MD -MP -MF ".deps/gnome-vfs-ace.Tpo" -c -o gnome-vfs-ace.lo gnome-vfs-ace.c; \ then mv -f ".deps/gnome-vfs-ace.Tpo" ".deps/gnome-vfs-ace.Plo"; else rm -f ".deps/gnome-vfs-ace.Tpo"; exit 1; fi gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -pthread -DORBIT2=1 -I/opt/gnome-2-20/include/glib-2.0 -I/opt/gnome-2-20/lib/glib-2.0/include -I/opt/gnome-2-20/include/gconf/2 -I/opt/gnome-2-20/include/orbit-2.0 -I/opt/gnome-2-20/include/libxml2 -I/opt/gnome-2-20/include/dbus-1.0 -I/opt/gnome-2-20/lib/dbus-1.0/include -D_REENTRANT -I/opt/gnome-2-20/include -I/opt/gnome-2-20/include/glib-2.0 -I/opt/gnome-2-20/lib/glib-2.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I/opt/gnome-2-20/include/glib-2.0 -I/opt/gnome-2-20/lib/glib-2.0/include -I/opt/gnome-2-20/include/dbus-1.0 -I/opt/gnome-2-20/lib/dbus-1.0/include -I/usr/include/hal -Wall -Werror -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-strict-aliasing -Wno-sign-compare -DXDG_PREFIX=_gnome_vfs_xdg -DDBUS_API_SUBJECT_TO_CHANGE -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DG_DISABLE_DEPRECATED -DGNOME_VFS_PREFIX=\"/opt/gnome-2-20\" -DGNOME_VFS_BINDIR=\"/opt/gnome-2-20/bin\" -DGNOME_VFS_DATADIR=\"/opt/gnome-2-20/share\" -DGNOME_VFS_LIBDIR=\"/opt/gnome-2-20/lib\" -DGNOME_VFS_LOCALEDIR=\"/opt/gnome-2-20/share/locale\" -DGNOME_VFS_SYSCONFDIR=\"/opt/gnome-2-20/etc\" -DG_LOG_DOMAIN=\"libgnomevfs\" -g -O2 -MT gnome-vfs-ace.lo -MD -MP -MF .deps/gnome-vfs-ace.Tpo -c gnome-vfs-ace.c -fPIC -DPIC -o .libs/gnome-vfs-ace.o cc1: warnings being treated as errors In file included from /opt/gnome-2-20/include/glib-2.0/glib/gthread.h:32, from /opt/gnome-2-20/include/glib-2.0/glib/gasyncqueue.h:30, from /opt/gnome-2-20/include/glib-2.0/glib.h:32, from gnome-vfs-ace.h:28, from gnome-vfs-ace.c:26: /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:316: warning: C99 inline functions are not supported; using GNU89 /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:316: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:330: warning: C99 inline functions are not supported; using GNU89 /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:343: warning: C99 inline functions are not supported; using GNU89 /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:362: warning: C99 inline functions are not supported; using GNU89 /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:370: warning: C99 inline functions are not supported; using GNU89 /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:387: warning: C99 inline functions are not supported; using GNU89 /opt/gnome-2-20/include/glib-2.0/glib/gutils.h:396: warning: C99 inline functions are not supported; using GNU89 In file included from /opt/gnome-2-20/include/glib-2.0/glib/gasyncqueue.h:30, from /opt/gnome-2-20/include/glib-2.0/glib.h:32, from gnome-vfs-ace.h:28, from gnome-vfs-ace.c:26: /opt/gnome-2-20/include/glib-2.0/glib/gthread.h:334: warning: C99 inline functions are not supported; using GNU89 make[3]: *** [gnome-vfs-ace.lo] Error 1 make[3]: Leaving directory `/opt/gnome-2-20/src/gnome-vfs/libgnomevfs' make[2]: *** [all] Error 2 make[2]: Leaving directory `/opt/gnome-2-20/src/gnome-vfs/libgnomevfs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/gnome-2-20/src/gnome-vfs' make: *** [all] Error 2
I just had someone complain about the same thing with swfdec. So this is either a glib or a gcc bug it seems. Should we reassign to glib?
/opt/gnome-2-20/include/glib-2.0/glib/gutils.h:316: warning: C99 inline functions are not supported; using GNU89 I see this, too. Assigning to glib.
*** This bug has been marked as a duplicate of 315437 ***