LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-07-2013, 07:31 AM   #1
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Rep: Reputation: 15
slackware 14.0 gst-plugins-bad opus error


Hello,

I have a problem with compiling gst-plugins-bad with the slackbuilds.org script for slackware 14.0. The error seems to be with the opus dependancy. Can anyone tell me what to do? Here is the error message:

Code:
make -C opus
make[3]: Entering directory `/tmp/SBo/gst-plugins-bad-0.10.23/ext/opus'
  CC     libgstopus_la-gstopus.lo
  CC     libgstopus_la-gstopusdec.lo
gstopusdec.c: In function 'opus_dec_chain_parse_data':
gstopusdec.c:361:67: error: 'opusdec_debug' undeclared (first use in this function)
gstopusdec.c:361:67: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [libgstopus_la-gstopusdec.lo] Error 1
make[3]: Leaving directory `/tmp/SBo/gst-plugins-bad-0.10.23/ext/opus'
make[2]: *** [opus] Error 2
make[2]: Leaving directory `/tmp/SBo/gst-plugins-bad-0.10.23/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/gst-plugins-bad-0.10.23'
make: *** [all] Error 2
I tried rebuilding opus and recompiling but still same error.

Thanks for the help,
Dumdadum
 
Old 09-07-2013, 08:47 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
apply this patch just before the ./configure block in the gst-plugins-bad.SlackBuild.
 
2 members found this post helpful.
Old 09-07-2013, 08:52 AM   #3
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,268

Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
Quote:
gstopusdec.c: In function 'opus_dec_chain_parse_data':
gstopusdec.c:361:67: error: 'opusdec_debug' undeclared (first use in this function)
You're missing something. Probably an include file (ending in .h). Grep for opusdec_debug, and if that fails, google for it.
Code:
grep -r    opusdec_debug   /usr/include/*
Substitute other include directories for /usr/include. Then go to google
 
Old 09-07-2013, 08:56 AM   #4
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ponce View Post
apply this patch just before the ./configure block in the gst-plugins-bad.SlackBuild.
Ok will do... Just so I understand, is this the code? I checked out the "patch" link you gave and am not sure of what section of that "patch" link to put in the gst-plugins-bad script...

Code:
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index c1bbcc7..d01fb0f 100644
--- a/ext/opus/gstopusdec.c
+++ b/ext/opus/gstopusdec.c
@@ -363,7 +363,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer)
 
     GST_DEBUG_OBJECT (dec, "Creating decoder with %d channels, %d Hz",
         dec->n_channels, dec->sample_rate);
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
     gst_opus_common_log_channel_mapping_table (GST_ELEMENT (dec), opusdec_debug,
         "Mapping table", dec->n_channels, dec->channel_mapping);
 #endif
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 4c05028..ca12450 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -588,7 +588,7 @@ gst_opus_enc_setup_channel_mappings (GstOpusEnc * enc,
       }
     }
 
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
     GST_INFO_OBJECT (enc,
         "Mapping tables built: %d channels, %d stereo streams", enc->n_channels,
         enc->n_stereo_streams);
@@ -655,7 +655,7 @@ gst_opus_enc_setup (GstOpusEnc * enc)
 {
   int error = OPUS_OK;
 
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
   GST_DEBUG_OBJECT (enc,
       "setup: %d Hz, %d channels, %d stereo streams, family %d",
       enc->sample_rate, enc->n_channels, enc->n_stereo_streams,
diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c
index b3c4010..bca723d 100644
--- a/gst/jpegformat/gstjpegparse.c
+++ b/gst/jpegformat/gstjpegparse.c
@@ -545,7 +545,7 @@ gst_jpeg_parse_skip_marker (GstJpegParse * parse,
   if (!gst_byte_reader_get_uint16_be (reader, &size))
     return FALSE;
 
-#ifndef GST_DISABLE_DEBUG
+#ifndef GST_DISABLE_GST_DEBUG
   /* We'd pry the id of the skipped application segment */
   if (marker >= APP0 && marker <= APP15) {
     const gchar *id_str = NULL;
@@ -561,7 +561,7 @@ gst_jpeg_parse_skip_marker (GstJpegParse * parse,
 #else
   GST_DEBUG_OBJECT (parse, "unhandled marker %x skiping %u bytes", marker,
       size);
-#endif // GST_DISABLE_DEBUG
+#endif // GST_DISABLE_GST_DEBUG
 
   if (!gst_byte_reader_skip (reader, size - 2))
     return FALSE;
Thanks,
Dumdadum

Last edited by dumdadum; 09-07-2013 at 09:01 AM.
 
Old 09-07-2013, 09:07 AM   #5
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by business_kid View Post
You're missing something. Probably an include file (ending in .h). Grep for opusdec_debug, and if that fails, google for it.
Code:
grep -r    opusdec_debug   /usr/include/*
Substitute other include directories for /usr/include. Then go to google
I tried to google and also to look in linuxquestions.org posts and didnt find anything usefull other than the "patch" our dear friend spoke about. Correct me if I'm wrong, but if the .h file isnt there, isnt the opus team suppose to supply it? I'll try to see for a .cpp file and maybe do the .h manually, but still, I'm supprised to be the first one to ask about this error in the compiling of the gst-plugins-bad.

I'll post later after the reply for the patch to apply in the slackbuilds.org script.

Thanks mate,
Dumdadum
 
Old 09-07-2013, 09:18 AM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
I prepared for you an all-inclusive one for easy applying: download this and save it somewhere as my.patch.
go in the gst-plugins-bad.Slackbuild directory and launch this command
Code:
patch -p1 < /path/to/my.patch
then launch the build
 
2 members found this post helpful.
Old 09-07-2013, 09:33 AM   #7
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by ponce View Post
I prepared for you an all-inclusive one for easy applying: download this and save it somewhere as my.patch.
go in the gst-plugins-bad.Slackbuild directory and launch this command
Code:
patch -p1 < /path/to/my.patch
then launch the build
Will do, I'll keep you posted.

Thanks,
Dumdadum
 
Old 09-07-2013, 10:08 AM   #8
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by ponce View Post
I prepared for you an all-inclusive one for easy applying: download this and save it somewhere as my.patch.
go in the gst-plugins-bad.Slackbuild directory and launch this command
Code:
patch -p1 < /path/to/my.patch
then launch the build
Here is what I get after the command "patch p1 < my.patch" :

Code:
(Stripping trailing CRs from patch.)
patching file p1
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 71.
patch: **** Can't reopen file p1 : No such file or directory
Dont know what to do next. Waiting for your reply.

Thanks,
Dumdadum
 
Old 09-07-2013, 10:08 AM   #9
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
you are missing a "-"
 
1 members found this post helpful.
Old 09-07-2013, 10:52 AM   #10
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by ponce View Post
you are missing a "-"
Quote:
Ahh damn no joke how stupid of me...
Will keep in touch, Thanks,
Dumdadum
Here is what I get with the "-" added...

Code:
(Stripping trailing CRs from patch.)
patching file gst-plugins-bad.SlackBuild
(Stripping trailing CRs from patch.)
patching file opus_jpegformat_unbreak_non-debug_build.patch
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 97:
When I try compiling gst-plugins-bad, I get this error:
Code:
gst-plugins-bad-0.10.23/depcomp
./gst-plugins-bad.SlackBuild: line 75: /root/Desktop/gst-plugins-bad-dropbox/gst-plugins-bad/gst-plugins-bad/opus_jpegformat_unbreak_non-debug_build.patch: No such file or directory
I dont understand. Whats wrong?

Cheers,
Dumdadum

Last edited by dumdadum; 09-07-2013 at 11:31 AM.
 
Old 09-07-2013, 12:18 PM   #11
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
maybe you're not saving the link above but you are cutting and pasting doing something wrong (from a windows machine, I suppose): click on it, when it opens, from your browser menu "file" -> "save_page_as" and save it as "my.patch", then apply as described above.
you can also use a text browser on slack to save the patch file
Code:
links "http://pastebin.com/raw.php?i=sy0ywbrz"
then press "esc", then "f" and then "v" to save the file as "my.patch" and "q" after saving that to quit.

Last edited by ponce; 09-07-2013 at 12:20 PM.
 
Old 09-07-2013, 12:31 PM   #12
jon lee
Member
 
Registered: Jul 2013
Posts: 81

Rep: Reputation: Disabled
I think I would just try and compile gstreamer itself again by hand (without the slackbuilds script), and then go through the series of plugins. I just used ./configure --prefix=/usr for it all...
(which may have compiled it with debugging symbols- I dunno).
http://gstreamer.freedesktop.org/src...0.10.36.tar.xz
I say this because that's what I did and didn't come across any problems (on Slackware 14).
In fact, because of your post, I had to check gst-inspect to see if I had the opus plugin (which I do).
http://pastebin.com/dbDK96mP
Also, I thought that it was neat that it picked up my lv2 and ladspa plugins.
I know I haven't come across any plugin problems with clementine after that (did have to install mad and the ugly plugins as well).
Anyway, probably not much help, but good luck.
 
Old 09-07-2013, 01:05 PM   #13
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ponce View Post
maybe you're not saving the link above but you are cutting and pasting doing something wrong (from a windows machine, I suppose): click on it, when it opens, from your browser menu "file" -> "save_page_as" and save it as "my.patch", then apply as described above.
you can also use a text browser on slack to save the patch file
Code:
links "http://pastebin.com/raw.php?i=sy0ywbrz"
then press "esc", then "f" and then "v" to save the file as "my.patch" and "q" after saving that to quit.
Not from a Windows machine. I use slackware 14.0 from a usbkey and check your replies from yes a Windows machine but saved the patch code you gave me from my slackware 14.0 OS. I'll try again and let you know.

Thanks,
Dumdadum
 
Old 09-08-2013, 07:40 AM   #14
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 215
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by ponce View Post
maybe you're not saving the link above but you are cutting and pasting doing something wrong (from a windows machine, I suppose): click on it, when it opens, from your browser menu "file" -> "save_page_as" and save it as "my.patch", then apply as described above.
you can also use a text browser on slack to save the patch file
Code:
links "http://pastebin.com/raw.php?i=sy0ywbrz"
then press "esc", then "f" and then "v" to save the file as "my.patch" and "q" after saving that to quit.
Hi,

I'm not sure what goes wrong, but I get a error message like this:

Code:
(Stripping trailing CRs from patch.)
patching file gst-plugins-bad.SlackBuild
(Stripping trailing CRs from patch.)
patching file opus_jpegformat_unbreak_non-debug_build.patch
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 97:
I did what you said, even though it says raw.php I saved the file as my.patch... What next sir?

Thanks,
Dumdadum
 
Old 09-08-2013, 09:27 AM   #15
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
really dunno what's happening to you but let's try in another way: download this (an already patched version of the script on SBo), uncompress it, put the sources tarball inside the resulting directory and launch the build.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build gst-plugins-bad with musicbrainz support? imitis Slackware 1 10-19-2011 01:22 PM
gst-plugins-(good and ugly) not building, but bad does samac Slackware 5 09-06-2009 12:58 PM
error in gst-plugins-base-0.10.22 for GNOME sumeet inani Linux - Newbie 0 03-16-2009 11:27 PM
gst-plugins-bad error regarding x264 agrestic Slackware 6 02-24-2009 11:54 PM
installing gst-base-plugins ankscorek Linux - Software 1 01-18-2007 03:28 AM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration