It was reported in ##slackware @ freenode that gstreamer0 was no longer compiling in slackware-current.
So with some searching online I found a patch that fixes it.
Code:
From 90622bb35544655cf641e3ab65cf35a6d01869bc Mon Sep 17 00:00:00 2001
From: Kerrick Staley <kerrick@kerrickstaley.com>
Date: Tue, 20 Aug 2013 23:59:29 -0700
Subject: [PATCH] Make grammar.y work with Bison 3
YYLEX_PARAM is no longer supported in Bison 3.
---
gst/parse/grammar.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
index 8a9019c..f533389 100644
--- a/gst/parse/grammar.y
+++ b/gst/parse/grammar.y
@@ -26,7 +26,6 @@
*/
#define YYERROR_VERBOSE 1
-#define YYLEX_PARAM scanner
#define YYENABLE_NLS 0
@@ -659,6 +658,7 @@ static int yyerror (void *scanner, graph_t *graph, const char *s);
%right '.'
%left '!' '='
+%lex-param { void *scanner }
%parse-param { void *scanner }
%parse-param { graph_t *graph }
%pure-parser
--
1.8.3.4
https://bugzilla.gnome.org/show_bug.cgi?id=706462
https://bug706462.bugzilla-attachmen....cgi?id=252504
Here is a patch for the slackbuild itself.
Code:
diff -urN a/gstreamer0/gstreamer0.SlackBuild b/gstreamer0/gstreamer0.SlackBuild
--- a/gstreamer0/gstreamer0.SlackBuild 2015-03-22 15:39:16.000000000 -0700
+++ b/gstreamer0/gstreamer0.SlackBuild 2016-04-17 17:39:53.676337014 -0700
@@ -25,7 +25,7 @@
PKGNAM=gstreamer
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -74,6 +74,8 @@
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+zcat $CWD/YYLEX_PARAM.diff.gz | patch -p1
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
Edit: For reference here is the error.
Code:
make[4]: Entering directory '/tmp/gstreamer-0.10.36/gst/parse'
GEN lex.priv_gst_parse_yy.c
CC libgstparse_la-lex.priv_gst_parse_yy.lo
lex.priv_gst_parse_yy.c:1020:5: warning: redundant redeclaration of 'priv_gst_parse_yyget_column' [-Wredundant-decls]
lex.priv_gst_parse_yy.c:4:19: note: previous declaration of 'priv_gst_parse_yyget_column' was here
static inline int priv_gst_parse_yyget_column (void * yyscanner);
^
lex.priv_gst_parse_yy.c:1022:6: warning: redundant redeclaration of 'priv_gst_parse_yyset_column' [-Wredundant-decls]
lex.priv_gst_parse_yy.c:5:20: note: previous declaration of 'priv_gst_parse_yyset_column' was here
static inline void priv_gst_parse_yyset_column (int column_no , void * yyscanner
^
CC libgstparse_la-grammar.tab.lo
grammar.tab.c: In function 'priv_gst_parse_yyparse':
grammar.tab.c:67:25: error: too few arguments to function 'priv_gst_parse_yylex'
#define yylex priv_gst_parse_yylex
^
grammar.tab.c:1821:16: note: in expansion of macro 'yylex'
if (yychar == YYEMPTY)
^
./grammar.y:39:5: note: declared here
int priv_gst_parse_yylex (void * yylval_param , yyscan_t yyscanner);
^
Makefile:507: recipe for target 'libgstparse_la-grammar.tab.lo' failed
make[4]: *** [libgstparse_la-grammar.tab.lo] Error 1
make[4]: Leaving directory '/tmp/gstreamer-0.10.36/gst/parse'
Makefile:1399: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/tmp/gstreamer-0.10.36/gst'
Makefile:758: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/tmp/gstreamer-0.10.36/gst'
Makefile:657: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/gstreamer-0.10.36'
Makefile:563: recipe for target 'all' failed
make: *** [all] Error 2