LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackbuild failure for mpd (https://www.linuxquestions.org/questions/slackware-14/slackbuild-failure-for-mpd-4175486718/)

slac-in-the-box 12-03-2013 12:23 PM

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...

arsivci0 12-03-2013 12:54 PM

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 ----------

mancha 12-03-2013 01:02 PM

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

slac-in-the-box 12-03-2013 01:11 PM

Quote:

I would recommend you try another distro
Traitor!

slac-in-the-box 12-03-2013 01:16 PM

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 :)

mancha 12-03-2013 01:45 PM

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

arsivci0 12-03-2013 02:02 PM

Quote:

Originally Posted by slac-in-the-box (Post 5074769)
Traitor!

LOL...

slac-in-the-box 12-03-2013 02:51 PM

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!

kikinovak 12-03-2013 03:04 PM

Quote:

Originally Posted by arsivci0 (Post 5074754)
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.

ponce 12-03-2013 03:10 PM

Quote:

Originally Posted by mancha (Post 5074793)
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.

arsivci0 12-03-2013 03:59 PM

Quote:

Originally Posted by kikinovak (Post 5074845)
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.

kikinovak 12-03-2013 05:07 PM

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


All times are GMT -5. The time now is 01:39 AM.