GNOME Bugzilla – Bug 727646
Multiple "redeclaration of const" warnings
Last modified: 2015-06-26 00:56:18 UTC
Hi, With sushi 3.11.90 (gjs 1.36.1 and mozjs185) I'm getting a lot of warnings. This is breaking the preview for some formats $ sushi JS LOG: Register mimetype audio/3gpp JS LOG: Register mimetype audio/ac3 JS LOG: Register mimetype audio/AMR JS LOG: Register mimetype audio/AMR-WB JS LOG: Register mimetype audio/basic JS LOG: Register mimetype audio/flac JS LOG: Register mimetype audio/midi JS LOG: Register mimetype audio/mp2 JS LOG: Register mimetype audio/mp4 JS LOG: Register mimetype audio/mpeg JS LOG: Register mimetype audio/ogg JS LOG: Register mimetype audio/prs.sid JS LOG: Register mimetype audio/vnd.rn-realaudio JS LOG: Register mimetype audio/x-aiff JS LOG: Register mimetype audio/x-ape JS LOG: Register mimetype audio/x-flac JS LOG: Register mimetype audio/x-gsm JS LOG: Register mimetype audio/x-it JS LOG: Register mimetype audio/x-m4a JS LOG: Register mimetype audio/x-matroska JS LOG: Register mimetype audio/x-mod JS LOG: Register mimetype audio/x-mp3 JS LOG: Register mimetype audio/x-mpeg JS LOG: Register mimetype audio/x-ms-asf JS LOG: Register mimetype audio/x-ms-asx JS LOG: Register mimetype audio/x-ms-wax JS LOG: Register mimetype audio/x-ms-wma JS LOG: Register mimetype audio/x-musepack JS LOG: Register mimetype audio/x-pn-aiff JS LOG: Register mimetype audio/x-pn-au JS LOG: Register mimetype audio/x-pn-wav JS LOG: Register mimetype audio/x-pn-windows-acm JS LOG: Register mimetype audio/x-realaudio JS LOG: Register mimetype audio/x-real-audio JS LOG: Register mimetype audio/x-s3m JS LOG: Register mimetype audio/x-sbc JS LOG: Register mimetype audio/x-speex JS LOG: Register mimetype audio/x-stm JS LOG: Register mimetype audio/x-tta JS LOG: Register mimetype audio/x-wav JS LOG: Register mimetype audio/x-wavpack JS LOG: Register mimetype audio/x-vorbis JS LOG: Register mimetype audio/x-vorbis+ogg JS LOG: Register mimetype audio/x-xm JS LOG: Register mimetype application/x-flac JS ERROR: !!! Exception was: TypeError: redeclaration of const GtkClutter JS ERROR: !!! message = '"redeclaration of const GtkClutter"' JS ERROR: !!! fileName = '"/usr/share/sushi/js/viewers/text.js"' JS ERROR: !!! lineNumber = '26' JS ERROR: !!! stack = '"@/usr/share/sushi/js/viewers/text.js:26 "' ** (sushi-start:9399): WARNING **: Unable to parse viewer text.js: TypeError: redeclaration of const GtkClutter JS ERROR: !!! Exception was: TypeError: redeclaration of const Gtk JS ERROR: !!! message = '"redeclaration of const Gtk"' JS ERROR: !!! fileName = '"/usr/share/sushi/js/viewers/evince.js"' JS ERROR: !!! lineNumber = '28' JS ERROR: !!! stack = '"@/usr/share/sushi/js/viewers/evince.js:28 "' ** (sushi-start:9399): WARNING **: Unable to parse viewer evince.js: TypeError: redeclaration of const Gtk JS ERROR: !!! Exception was: TypeError: redeclaration of const GtkClutter JS ERROR: !!! message = '"redeclaration of const GtkClutter"' JS ERROR: !!! fileName = '"/usr/share/sushi/js/viewers/image.js"' JS ERROR: !!! lineNumber = '27' JS ERROR: !!! stack = '"@/usr/share/sushi/js/viewers/image.js:27 "' ** (sushi-start:9399): WARNING **: Unable to parse viewer image.js: TypeError: redeclaration of const GtkClutter JS ERROR: !!! Exception was: TypeError: redeclaration of const GtkClutter JS ERROR: !!! message = '"redeclaration of const GtkClutter"' JS ERROR: !!! fileName = '"/usr/share/sushi/js/viewers/html.js"' JS ERROR: !!! lineNumber = '26' JS ERROR: !!! stack = '"@/usr/share/sushi/js/viewers/html.js:26 "' ** (sushi-start:9399): WARNING **: Unable to parse viewer html.js: TypeError: redeclaration of const GtkClutter JS ERROR: !!! Exception was: TypeError: redeclaration of const Gtk JS ERROR: !!! message = '"redeclaration of const Gtk"' JS ERROR: !!! fileName = '"/usr/share/sushi/js/viewers/gst.js"' JS ERROR: !!! lineNumber = '31' JS ERROR: !!! stack = '"@/usr/share/sushi/js/viewers/gst.js:31 "' ** (sushi-start:9399): WARNING **: Unable to parse viewer gst.js: TypeError: redeclaration of const Gtk JS ERROR: !!! Exception was: TypeError: redeclaration of const MimeHandler JS ERROR: !!! message = '"redeclaration of const MimeHandler"' JS ERROR: !!! fileName = '"/usr/share/sushi/js/viewers/font.js"' JS ERROR: !!! lineNumber = '26' JS ERROR: !!! stack = '"@/usr/share/sushi/js/viewers/font.js:26 "' ** (sushi-start:9399): WARNING **: Unable to parse viewer font.js: TypeError: redeclaration of const MimeHandler
That is because Sushi requires a GJS with moz17 support; I now pushed a version bump to git master.
*** Bug 724866 has been marked as a duplicate of this bug. ***