LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-03-2013, 12:23 PM   #1
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Rep: Reputation: 26
slackbuild failure for mpd


Howdy slackers...

Trying to get everything functioning in slackware64-14.1, I got to mpd, which I like because I use Sonata, and had an error with the slackbuild... Usually errors in slackbuilds stem from missing dependencies, but as far as I can tell, I have everything needed...

here is the error that is reported:

Code:
/usr/include/faad.h:32:9: note: #pragma message: please update faad2 include filename and function names!
 #pragma message("please update faad2 include filename and function names!")
         ^
src/decoder/mp4ff_decoder_plugin.c: In function 'mp4_decode':
src/decoder/mp4ff_decoder_plugin.c:197:15: warning: variable 'initial' set but not used [-Wunused-but-set-variable]
  unsigned int initial = 1;
               ^
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-_ogg_common.o `test -f 'src/decoder/_ogg_common.c' || echo './'`src/decoder/_ogg_common.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-flac_metadata.o `test -f 'src/decoder/flac_metadata.c' || echo './'`src/decoder/flac_metadata.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-flac_pcm.o `test -f 'src/decoder/flac_pcm.c' || echo './'`src/decoder/flac_pcm.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-_flac_common.o `test -f 'src/decoder/_flac_common.c' || echo './'`src/decoder/_flac_common.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-vorbis_comments.o `test -f 'src/decoder/vorbis_comments.c' || echo './'`src/decoder/vorbis_comments.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-vorbis_decoder_plugin.o `test -f 'src/decoder/vorbis_decoder_plugin.c' || echo './'`src/decoder/vorbis_decoder_plugin.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-flac_decoder_plugin.o `test -f 'src/decoder/flac_decoder_plugin.c' || echo './'`src/decoder/flac_decoder_plugin.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-audiofile_decoder_plugin.o `test -f 'src/decoder/audiofile_decoder_plugin.c' || echo './'`src/decoder/audiofile_decoder_plugin.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-ffmpeg_metadata.o `test -f 'src/decoder/ffmpeg_metadata.c' || echo './'`src/decoder/ffmpeg_metadata.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I./src -pthread -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"'   -I/usr/include                -O2 -fPIC -D_GNU_SOURCE -Wall -Wextra -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -c -o src/decoder/libdecoder_plugins_a-ffmpeg_decoder_plugin.o `test -f 'src/decoder/ffmpeg_decoder_plugin.c' || echo './'`src/decoder/ffmpeg_decoder_plugin.c
src/decoder/ffmpeg_decoder_plugin.c: In function 'ffmpeg_send_packet':
src/decoder/ffmpeg_decoder_plugin.c:288:26: error: 'AVCODEC_MAX_AUDIO_FRAME_SIZE' undeclared (first use in this function)
  uint8_t aligned_buffer[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16];
                          ^
src/decoder/ffmpeg_decoder_plugin.c:288:26: note: each undeclared identifier is reported only once for each function it appears in
src/decoder/ffmpeg_decoder_plugin.c:288:10: warning: unused variable 'aligned_buffer' [-Wunused-variable]
  uint8_t aligned_buffer[(AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2 + 16];
          ^
make[1]: *** [src/decoder/libdecoder_plugins_a-ffmpeg_decoder_plugin.o] Error 1
make[1]: Leaving directory `/tmp/SBo/mpd-0.17.1'
make: *** [all] Error 2
I already installed faad2 from slackbuilds for 14.1, so I am curious about this "pragma message" requesting that I update the include...

I also already installed slackbuild for ffmpeg, along with all it's dependencies and options...

Not sure if this error is related to faad2 or ffmpeg, and am seeking suggestions for helping troubleshoot this build failure...

Here is a list of all the slackbuilds I have installed since a clean full install of slackware64-14.1, starting with most recent, and proceeding in reverse chronological order:

Code:
darkstar% cd /var/log/packages
darkstar% ls -t | more
sonata-1.6.2.1-x86_64-2_SBo
python-mpd-0.3.0-x86_64-1_SBo
libmpdclient-2.7-x86_64-2_SBo
libmpd-0.20.0-x86_64-1_SBo
fluidsynth-1.1.6-x86_64-1_SBo
lash-0.6.0.594-x86_64-3_SBo
pulseaudio-2.0-x86_64-1_SBo
json-c-0.11-x86_64-1_SBo
jack-audio-connection-kit-0.121.3-x86_64-2_SBo
libffado-2.1.0-x86_64-1_SBo
libxml++-2.36.0-x86_64-1_SBo
mm-common-0.9.6-noarch-1_SBo
glibmm-2.36.2-x86_64-1_SBo
libsigc++-2.2.11-x86_64-1_SBo
libconfig-1.4.9-x86_64-1_SBo
scons-2.3.0-x86_64-1_SBo
cowbell-0.2.7.1-x86_64-2_SBo
gtk-sharp-2.12.10-x86_64-1_SBo
mono-2.11.4-x86_64-1_SBo
libgdiplus-2.10.9-x86_64-2_SBo
cinelerra-cv_2.2-x86_64-2_SBo
mjpegtools-2.1.0-x86_64-1_SBo
SDL_gfx-2.0.25-x86_64-1_SBo
imlib2-1.4.5-x86_64-1_SBo
openshot-1.4.3-x86_64-1_SBo
libquicktime-1.2.4-x86_64-2_SBo
pyxdg-0.25-x86_64-1_SBo
libdv-1.0.0-x86_64-1_SBo
pygoocanvas-0.14.1-x86_64-2_SBo
goocanvas-0.15-x86_64-1_SBo
libreoffice-4.1.3-x86_64-1_SBo
flashrom-0.9.7-x86_64-1_SBo
libflashsupport-20080328-x86_64-1_SBo
flashplayer-plugin-11.2.202.327-x86_64-1_SBo
jdk-7u45-x86_64-1_SBo
vlc-2.1.1-x86_64-1_SBo
ffmpeg-2.1-x86_64_custom-1_SBo
libvpx-1.2.0-x86_64-1_SBo
opus-1.0.3-x86_64-1_SBo
rtmpdump-20131007_a9f353c-x86_64-1_SBo
xvidcore-1.3.2-x86_64-1_SBo
opencore-amr-0.1.3-x86_64-1_SBo
OpenAL-1.15.1-x86_64-1_SBo
lame-3.99.5-x86_64-1_SBo
ladspa_sdk-1.13-x86_64-4_SBo
openjpeg-1.5.1-x86_64-1_SBo
libilbc-git20131002-x86_64-1_SBo
libiec61883-1.2.0-x86_64-2_SBo
gsm-1.0.13-x86_64-2_SBo
frei0r-1.4-x86_64-1_SBo
celt-0.11.3-x86_64-1_SBo
a52dec-0.7.4-x86_64-1_SBo
faac-1.28-x86_64-3_SBo
faad2-2.7-x86_64-2_SBo
libass-0.10.2-x86_64-1_SBo
libavc1394-0.5.4-x86_64-1_SBo
libdc1394-2.2.1-x86_64-1_SBo
libdca-0.0.5-x86_64-1_SBo
libdvbpsi-1.1.1-x86_64-1_SBo
libdvdcss-1.2.13-x86_64-1_SBo
libdvdnav-4.2.0-x86_64-1_SBo
libmatroska-1.3.0-x86_64-1_SBo
libmodplug-0.8.8.4-x86_64-1_SBo
libmpeg2-0.5.1-x86_64-1_SBo
libshout-2.3.1-x86_64-1_SBo
libupnp-1.6.17-x86_64-1_SBo
live555-2011.12.23-x86_64-1_SBo
lua-5.1.5-x86_64-1_SBo
musepack-tools-r475-x86_64-2_SBo
portaudio-V19-x86_64-2_SBo
schroedinger-1.0.11-x86_64-1_SBo
vcdimager-0.7.24-x86_64-1_SBo
speex-1.2rc1-x86_64-3_SBo
twolame-0.3.13-x86_64-1_SBo
x264-20131101-x86_64-1_SBo
orc-0.4.18-x86_64-1_SBo
libreplaygain-r475-x86_64-1_SBo
libmp4v2-2.0.0-x86_64-1_SBo
libebml-1.2.2-x86_64-1_SBo
libcuefile-r475-x86_64-1_SBo
Thanks in advance for any recommendations...
 
Old 12-03-2013, 12:54 PM   #2
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 14.1
Posts: 67

Rep: Reputation: 7
I would recommend you try another distro, preferably Slackware based again, but at least closer to deps you just posted. I have seen a few distros here in people's signatures like mate, microlinux, or studioware or whatever, with which you will have an easier ride.

I do know programs that I like and if they require a lib or two on top of stock Slackware, it is OK; anything more, I do not use it.[COLOR="Silver"]

---------- Post added 12-03-13 at 09:54 PM ----------

Last edited by arsivci0; 12-03-2013 at 12:56 PM.
 
Old 12-03-2013, 01:02 PM   #3
mancha
Member
 
Registered: Aug 2012
Posts: 279

Rep: Reputation: Disabled
ffmpeg 2.0 obsoletes FF_API_OLD_DECODE_AUDIO so AVCODEC_MAX_AUDIO_FRAME_SIZE is no longer defined. You probably need either a newer mpd or a pre-2.0 ffmpeg.

You might be able to get away with hacking your mpd and replacing AVCODEC_MAX_AUDIO_FRAME_SIZE with MAX_AUDIO_FRAME_SIZE and avcodec_decode_audio3 with avcodec_decode_audio4. If you're the adventurous type try:

Code:
sed -i -e 's|AVCODEC_MAX_AUDIO_FRAME_SIZE|MAX_AUDIO_FRAME_SIZE|' -e 's|avcodec_decode_audio3|avcodec_decode_audio4|' src/decoder/ffmpeg_decoder_plugin.c
--mancha
 
1 members found this post helpful.
Old 12-03-2013, 01:11 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Original Poster
Rep: Reputation: 26
Quote:
I would recommend you try another distro
Traitor!
 
Old 12-03-2013, 01:16 PM   #5
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Original Poster
Rep: Reputation: 26
However, I have solved this problem:

It appears that Alien builds a better ffmpeg than I...

I replaced the ffmpeg that slackbuild for 14.1 made (I think I had too many options enabled), with the ffmpeg Alien build for slackware64.14.0, from http://www.slackware.com/~alien/slac...eg/pkg64/14.0/, and then re-executed the slackbuild script for mpd, and it finished without errors...

So thanks for the suggestion to use an earlier ffmpeg Mancha

Last edited by slac-in-the-box; 12-03-2013 at 01:18 PM. Reason: type-o
 
Old 12-03-2013, 01:45 PM   #6
mancha
Member
 
Registered: Aug 2012
Posts: 279

Rep: Reputation: Disabled
For others who might experience this issue, I don't recommend the OP's solution. It uses ffmpeg 1.2 (known to have several vulnerabilities). At the very least if you're sticking to the 1.2 branch, use 1.2.4.

Also, if any SBo admins read this, the OP's problem is due to incompatibilities between the versions of ffmpeg and mpd offered by SBo for 14.1. Seems to me the best approach here is bumping mpd's version.

--mancha
 
3 members found this post helpful.
Old 12-03-2013, 02:02 PM   #7
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 14.1
Posts: 67

Rep: Reputation: 7
Quote:
Originally Posted by slac-in-the-box View Post
Traitor!
LOL...
 
Old 12-03-2013, 02:51 PM   #8
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Original Poster
Rep: Reputation: 26
Mancha is correct! It is better to get new mpd than to get old ffmpeg. I removed older ffmpeg, and put the 2.1 version made by slackbuild back on, and then I downloaded newest mpd here, and put it in the slackbuild directory for mpd, edited the slackbuild script accordingly (for version and correct decompression), and voila, I have up-to-date mpd and ffmpeg. Thanks Mancha again!
 
Old 12-03-2013, 03:04 PM   #9
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,530

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Quote:
Originally Posted by arsivci0 View Post
I would recommend you try another distro, preferably Slackware based again, but at least closer to deps you just posted. I have seen a few distros here in people's signatures like mate, microlinux, or studioware or whatever, with which you will have an easier ride.
Allow a bit of clarification here. MATE is a desktop environment forked from GNOME 2. Microlinux is my company, and MLED is its repository for additional Slackware packages, meant to be installed on Slackware. Studioware is another repository with packages for audio production.
 
Old 12-03-2013, 03:10 PM   #10
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Quote:
Originally Posted by mancha View Post
Also, if any SBo admins read this, the OP's problem is due to incompatibilities between the versions of ffmpeg and mpd offered by SBo for 14.1. Seems to me the best approach here is bumping mpd's version.
thanks mancha: done in my branch.
 
Old 12-03-2013, 03:59 PM   #11
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 14.1
Posts: 67

Rep: Reputation: 7
Quote:
Originally Posted by kikinovak View Post
Allow a bit of clarification here. MATE is a desktop environment forked from GNOME 2. Microlinux is my company, and MLED is its repository for additional Slackware packages, meant to be installed on Slackware. Studioware is another repository with packages for audio production.
I am aware of all, a passing knowledge, let's say. OP's dependencies seemed not easily manageable to me if he started with a stock Slackware. The more you deviate, the harder it gets to manage. Sooner or later something will break and nobody will be able to help. OP might have a less bumpy ride if he starts say maybe MLED (I did not check) or another Slack derivative carrying at least half or more of those extra packages.
 
Old 12-03-2013, 05:07 PM   #12
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: ElementaryOS, Ubuntu LTS, Slackware
Posts: 1,530

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
If you want to build MPD with all functionalities, compile in that order:
  • faad2
  • lame
  • libcuefile
  • libmms
  • libmp4v2
  • libreplaygain
  • speex
  • twolame
  • faac
  • ffmpeg
  • musepack-tools
  • libshout
  • mpd

All available on SBo, so with sbopkg it should all be done in no more than 20 minutes.

Cheers,

Niki
 
  


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
[SOLVED] MPD - Does this Actually Work or What? thund3rstruck Linux - Software 5 04-15-2013 03:42 AM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
Ampache or MPD hosler Debian 1 09-29-2009 11:07 PM
mpd on a server iwtbf Linux - Software 0 07-06-2009 11:09 PM
about mpd Chocolate Linux - Networking 0 12-11-2006 02:31 AM


All times are GMT -5. The time now is 01:59 PM.

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