GNOME Bugzilla – Bug 677441
no previous prototype for ‘_shell_link_to_shell_js’
Last modified: 2012-06-06 08:14:40 UTC
I got this when trying to build the 3.4 branch of the Shell: gcc -DHAVE_CONFIG_H -I. -I.. -pthread -DMUTTER_MAJOR_VERSION=3 -DMUTTER_MINOR_VERSION=4 -DMUTTER_MICRO_VERSION=1 -DMUTTER_PLUGIN_API_VERSION=3 -D_REENTRANT -I/home/cassidy/usr/include/gio-unix-2.0/ -I/home/cassidy/usr/include/glib-2.0 -I/home/cassidy/usr/lib64/glib-2.0/include -I/home/cassidy/usr/include/gtk-3.0 -I/home/cassidy/usr/include/telepathy-1.0 -I/home/cassidy/usr/include/gnome-menus-3.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng15 -I/usr/include/gee-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/mutter -I/usr/include/clutter-1.0 -I/usr/include/cogl -I/usr/include/json-glib-1.0 -I/usr/include/libdrm -I/usr/include/gjs-1.0 -I/usr/include/gobject-introspection-1.0 -I/usr/include/js -I/usr/lib64/libffi-3.0.10/include -I/usr/include/nspr4 -I/usr/include/gstreamer-0.10 -I/usr/include/libsoup-2.4 -I/usr/include/startup-notification-1.0 -I/usr/include/telepathy-logger-0.2 -I/usr/include/polkit-1 -I/usr/include/libnm-glib -I/usr/include/NetworkManager -I/usr/include/gnome-keyring-1 -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/gsettings-desktop-schemas -I./tray -DVERSION=\"3.4.1\" -DLOCALEDIR=\"/home/cassidy/usr/share/locale\" -DDATADIR=\"/home/cassidy/usr/share\" -DGNOME_SHELL_LIBEXECDIR=\"/home/cassidy/usr/libexec\" -DGNOME_SHELL_DATADIR=\"/home/cassidy/usr/share/gnome-shell\" -DGNOME_SHELL_PKGLIBDIR=\"/home/cassidy/usr/lib64/gnome-shell\" -DJSDIR=\"/home/cassidy/usr/share/gnome-shell/js\" -g -Wall -Wmissing-prototypes -Werror -Wno-error=deprecated-declarations -MT gnome_shell_real-main.o -MD -MP -MF .deps/gnome_shell_real-main.Tpo -c -o gnome_shell_real-main.o `test -f 'main.c' || echo './'`main.c main.c:355:1: erreur: no previous prototype for ‘_shell_link_to_shell_js’ [-Werror=missing-prototypes] cc1: all warnings being treated as errors
Created attachment 215614 [details] [review] add missing _shell_link_to_shell_js() declaration Fix missing-prototypes warning.
... or just cherry-pick the patch in bug 676347 (though I'm not aware of any plans for another 3.4.x release, so not sure how useful that'd really be)
Review of attachment 215614 [details] [review]: This only needs applying to gnome-3-4, it's fixed on master.
Pushed to 3.4, thanks. Attachment 215614 [details] pushed as 98c3f6b - add missing _shell_link_to_shell_js() declaration