GNOME Bugzilla – Bug 720316
parse: Fails to compile on CentOS due to redefinition of yyscan_t
Last modified: 2013-12-14 18:10:23 UTC
Created attachment 264052 [details] full logs The issue is: libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Wno-error -I../../libs -I../.. -I../../libs -I../.. -pthread -I/home/thiblahute/cerbero/dist/linux_x86_64/include/glib-2.0 -I/home/thiblahute/cerbero/dist/linux_x86_64/lib/glib-2.0/include -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs -g -DGST_DISABLE_DEPRECATED -Werror -Wall -g -O2 -m64 -Wall -g -O2 -m64 -Wno-error -fPIC -DPIC -MT libgstparse_la-grammar.tab.lo -MD -MP -MF .deps/libgstparse_la-grammar.tab.Tpo -c grammar.tab.c -o libgstparse_la-grammar.tab.o In file included from ./grammar.y:208: parse_lex.h:116: error: redefinition of typedef 'yyscan_t' ./grammar.y:36: note: previous declaration of 'yyscan_t' was here make[4]: *** [libgstparse_la-grammar.tab.lo] Error 1 make[4]: Leaving directory `/home/thiblahute/cerbero/sources/linux_x86_64/gstreamer-1.0-static-1.3/gst/parse' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/thiblahute/cerbero/sources/linux_x86_64/gstreamer-1.0-static-1.3/gst' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/thiblahute/cerbero/sources/linux_x86_64/gstreamer-1.0-static-1.3/gst' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/thiblahute/cerbero/sources/linux_x86_64/gstreamer-1.0-static-1.3' make: *** [all] Error 2 The culpright commit is: commit 56d74ddb644052dc76d97c22b9f284cc0c7fe35a Author: Fabian Kirsch <derFakir@web.de> Date: Tue Nov 19 15:03:35 2013 +0100 parse: fix segfaulting prototype-mismatch Now YYDEBUG is always set, so check it's value https://bugzilla.gnome.org/show_bug.cgi?id=712679 I attach here the full log.
This should fix it commit a400dd2f47730f45e2ea1a44e759ee5936f8cbda Author: Sebastian Dröge <sebastian@centricular.com> Date: Sat Dec 14 19:08:35 2013 +0100 parse: Don't define yyscan_t twice https://bugzilla.gnome.org/show_bug.cgi?id=720316