Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27340 - MPD from ABS won't build

Attached to Project: Arch Linux
Opened by Matthew Lawson (the_vorpal_blade) - Wednesday, 30 November 2011, 04:28 GMT
Last edited by Andrea Scarpino (BaSh) - Thursday, 19 January 2012, 19:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

MPD will not compile.

To reproduce:

cp -r /var/abs/extra/mpd ~/builds
cd ~/builds/mpd
mkpkg -s

Result:
src/decoder/src_mpd-mpcdec_decoder_plugin.o: In function `mpcdec_get_file_duration':
mpcdec_decoder_plugin.c:(.text+0x93): undefined reference to `mpc_demux_init'
mpcdec_decoder_plugin.c:(.text+0xb0): undefined reference to `mpc_demux_get_info'
mpcdec_decoder_plugin.c:(.text+0xb8): undefined reference to `mpc_demux_exit'
src/decoder/src_mpd-mpcdec_decoder_plugin.o: In function `mpcdec_decode':
mpcdec_decoder_plugin.c:(.text+0x1f9): undefined reference to `mpc_demux_init'
mpcdec_decoder_plugin.c:(.text+0x215): undefined reference to `mpc_demux_get_info'
mpcdec_decoder_plugin.c:(.text+0x3ef): undefined reference to `mpc_demux_decode'
mpcdec_decoder_plugin.c:(.text+0x4bb): undefined reference to `mpc_demux_seek_sample'
mpcdec_decoder_plugin.c:(.text+0x4f6): undefined reference to `mpc_demux_exit'
mpcdec_decoder_plugin.c:(.text+0x56a): undefined reference to `mpc_demux_exit'
collect2: ld returned 1 exit status
make[1]: *** [src/mpd] Error 1
make[1]: Leaving directory `/home/matthew/builds/mpd/src/mpd-0.16.5'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Thursday, 19 January 2012, 19:56 GMT
Reason for closing:  Not a bug
Comment by Gaetan Bisson (vesath) - Wednesday, 30 November 2011, 05:59 GMT
It builds fine for me. What is that "mkpkg" command you are using? Is your system completely up to date? Are you using custom flags/make options?
Comment by Matthew Lawson (the_vorpal_blade) - Wednesday, 30 November 2011, 06:08 GMT
Sorry, I meant makepkg.
My system is completly up to date. I'm using standard flags:
CFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
Comment by Gaetan Bisson (vesath) - Wednesday, 30 November 2011, 06:24 GMT
Could you use `makepkg --log` to produce a full log file for the build and upload it somewhere?
Comment by Matthew Lawson (the_vorpal_blade) - Wednesday, 30 November 2011, 06:29 GMT
Sure!
Comment by Gaetan Bisson (vesath) - Wednesday, 30 November 2011, 07:02 GMT
What is the output of `pacman -Qo /usr/include/mpc/mpcdec.h`?
Comment by Gaetan Bisson (vesath) - Wednesday, 30 November 2011, 07:05 GMT
Also, it looks like you have MAKEFLAGS='-j2' (or more) enabled in your makepkg.conf; please try without that.
Comment by Gaetan Bisson (vesath) - Wednesday, 30 November 2011, 07:12 GMT
I take that last comment back, but it seems however that you do not use the standard CFLAGS (-march=x86-64 -mtune=generic, etc.); could you try and see if that could be the problem?
Comment by Matthew Lawson (the_vorpal_blade) - Wednesday, 30 November 2011, 07:33 GMT
$ pacman -Qo /usr/include/mpc/mpcdec.h
/usr/include/mpc/mpcdec.h is owned by musepack-tools 475-1


With -march=x86-64 -mtune=generic rather than -march=native I get the same build error, same for removing the concurrency flag (-j3)
Comment by Gaetan Bisson (vesath) - Wednesday, 30 November 2011, 08:25 GMT
So musepack-tools is the problem: remove it and mpd will build just fine. (We devs never ran into that problem because we always build in clean chroots.)
I am not sure who exactly of musepack-tools and mpd is at fault here: their header files just do not interact well with each others...
Comment by Matthew Lawson (the_vorpal_blade) - Thursday, 01 December 2011, 03:42 GMT
That does indeed allow the build to procede. So, no musepack support then?
Comment by Gaetan Bisson (vesath) - Thursday, 01 December 2011, 03:52 GMT
Well, mpd supports musepack (through ffmpeg) by default (you don't need musepack-tools for that).
Comment by Jelle van der Waa (jelly) - Thursday, 12 January 2012, 20:50 GMT
So the bug is resolved now?
Comment by Gaetan Bisson (vesath) - Sunday, 15 January 2012, 06:29 GMT
Yes. (Or, if there is a bug, let's say it's a musepack-tools bug. :P )

Loading...