Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
09-07-2013, 08:31 AM
|
#1
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Rep:
|
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
|
|
|
09-07-2013, 09:47 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,344
|
apply this patch just before the ./configure block in the gst-plugins-bad.SlackBuild.
|
|
2 members found this post helpful.
|
09-07-2013, 09:52 AM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,094
|
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
|
|
|
09-07-2013, 09:56 AM
|
#4
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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 10:01 AM.
|
|
|
09-07-2013, 10:07 AM
|
#5
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
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
|
|
|
09-07-2013, 10:18 AM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,344
|
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.
|
09-07-2013, 10:33 AM
|
#7
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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
|
|
|
09-07-2013, 11:08 AM
|
#8
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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
|
|
|
09-07-2013, 11:08 AM
|
#9
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,344
|
you are missing a "-"
|
|
1 members found this post helpful.
|
09-07-2013, 11:52 AM
|
#10
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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 12:31 PM.
|
|
|
09-07-2013, 01:18 PM
|
#11
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,344
|
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 01:20 PM.
|
|
|
09-07-2013, 01:31 PM
|
#12
|
Member
Registered: Jul 2013
Posts: 113
Rep:
|
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.
|
|
|
09-07-2013, 02:05 PM
|
#13
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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
|
|
|
09-08-2013, 08:40 AM
|
#14
|
Member
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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
|
|
|
09-08-2013, 10:27 AM
|
#15
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,344
|
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.
|
|
|
All times are GMT -5. The time now is 02:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|