Package Details: forked-daapd 27.1-2

Git Clone URL: (read-only, click to copy)
Package Base: forked-daapd
Description: iTunes-compatible media server, originally intended as a rewrite of Firefly Media Server (mt-daapd).
Upstream URL:
Licenses: GPL
Submitter: jmsq
Maintainer: jmsq
Last Packager: jmsq
Votes: 7
Popularity: 0.049004
First Submitted: 2016-06-06 00:51
Last Updated: 2020-05-24 06:11

Dependencies (15)

Required by (0)

Sources (4)

Latest Comments

1 2 Next › Last »

sozialarbeiter commented on 2020-05-19 20:39

Finally I found at least a workaround, just in case someone else is facing similar issues. Added this linker flag to the PKGBUILD configure: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-itunes --enable-chromecast --enable-lastfm --with-libwebsockets --sbindir=/usr/bin LDFLAGS="-Wl,--allow-multiple-definition"

sozialarbeiter commented on 2020-05-19 16:39

@jmsq, another update: I just took the forked-daapd from GitHub and built it with the same options as they are by default in your AUR: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-itunes --enable-chromecast --enable-lastfm --with-libwebsockets --sbindir=/usr/bin

Same result, linking fails. So no problem with your package. Still I don't know what's going wrong on my two systems, but nothing wrong with your PKGBUILD.


sozialarbeiter commented on 2020-05-19 16:34

@jmsq thank's that you tried it out for me.

I took now a different system that is used for completely different purposes, and shouldn't have similar changes in system configurations. After doing there a full system upgrade and trying to makepkg forked-daapd I get the exact same errors from the linker at that point shown below.

That's really strange. Did you also do a 'pacman -Suy' before? I wonder what else could be different in our systems. Btw., I'm building version 27.1 of forked-daapd.

/bin/sh ../libtool --tag=CC --mode=link gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o forked-daapd main.o db.o db_init.o db_upgrade.o logger.o conffile.o cache.o library/filescanner.o library/filescanner_ffmpeg.o library/filescanner_playlist.o library/filescanner_smartpl.o library/filescanner_itunes.o library.o mdns_avahi.o remote_pairing.o avio_evbuffer.o httpd.o httpd_rsp.o httpd_daap.o httpd_dacp.o httpd_jsonapi.o httpd_streaming.o httpd_oauth.o httpd_artworkapi.o http.o dmap_common.o transcode.o artwork.o misc.o misc_json.o rng.o rsp_query.o daap_query.o smartpl_query.o player.o worker.o settings.o input.o inputs/file_http.o inputs/pipe.o outputs.o outputs/rtp_common.o outputs/raop.o outputs/raop_verification.o outputs/streaming.o outputs/dummy.o outputs/fifo.o outputs/alsa.o outputs/pulse.o outputs/cast.o outputs/cast_channel.pb-c.o evrtsp/rtsp.o lastfm.o mpd.o listener.o commands.o websocket.o RSPLexer.o RSPParser.o RSP2SQL.o DAAPLexer.o DAAPParser.o DAAP2SQL.o SMARTPLLexer.o SMARTPLParser.o SMARTPL2SQL.o -lavformat -lavcodec -lavutil -lavfilter -lgpg-error -lgcrypt -lantlr3c -ljson-c -levent -lmxml -lpthread -lconfuse -lz -lgnutls -lprotobuf-c -lavahi-common -lavahi-client -levent_pthreads -levent -lplist -lsodium -lwebsockets -lcurl -lpulse -pthread -lasound -lsqlite3 -lunistring -lpthread -lrt

jmsq commented on 2020-05-18 22:20

@sozialarbeiter I think that may be something wrong with your Arch installation, as it looks like you have duplicate library symbols. I just reinstalled forked-daapd on my end and wasn't able to reproduce any compilation errors.

sozialarbeiter commented on 2020-05-18 15:42

Hi, after full system upgrade forked-daapd didn't startup due to: May 18 13:48:55 carrier forked-daapd[2040517]: /usr/sbin/forked-daapd: error while loading shared libraries: cannot open shared object file: No such file or directo>

So I wanted to rebuild it.I started with a clean git clone, and the build breaks here. Any thoughts where to look further?

... /usr/bin/ld: DAAP2SQL.o:(.bss+0x20): multiple definition of output_buffer'; main.o:(.bss+0x20): first defined here /usr/bin/ld: SMARTPL2SQL.o:(.bss+0x0): multiple definition ofoutput_device_list'; main.o:(.bss+0x8): first defined here /usr/bin/ld: SMARTPL2SQL.o:(.bss+0x20): multiple definition of `output_buffer'; main.o:(.bss+0x20): first defined here collect2: error: ld returned 1 exit status make[3]: [Makefile:750: forked-daapd] Error 1 make[3]: Leaving directory '/home/adrian/forked-daapd/src/forked-daapd-27.1/src' make[2]: [Makefile:601: all] Error 2 make[2]: Leaving directory '/home/adrian/forked-daapd/src/forked-daapd-27.1/src' make[1]: [Makefile:626: all-recursive] Error 1 make[1]: Leaving directory '/home/adrian/forked-daapd/src/forked-daapd-27.1' make: [Makefile:468: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

pac commented on 2019-12-03 14:55

I notice the following warning during build:

configure: WARNING: unrecognized options: --with-websockets

I guess it's because the option seems to be named --with-libwebsockets instead (see

i1314925 commented on 2018-04-06 08:50

Could you please add websocket support? Requires libwebsockets as depends and --with-libwebsockets as configure parameter.

i1314925 commented on 2017-09-01 06:17

On my system json-c was missing as dependency.

configure: error: Chromecast support requires json-c
==> ERROR: A failure occurred in build().
:: failed to build forked-daapd package(s)

fuzzy2 commented on 2017-08-20 15:54

Hi, I get a build (well, technically configure) error: "configure: error: Apple TV device verification requires libsodium"

It appears some new features have been added and now libsodium is required. The package is available in community. After installing it manually, building and using the upgraded version of forked-daapd work as expected.

Just adding the dependency should do it. Thanks!

midgard commented on 2017-08-13 10:59

Hi, in the PKGBUILD you should quote variables that can contain spaces. In particular: $PATH on lines 49,55, $OLDPATH on line 59 and $pkgdir and $srcdir on lines 65,66.

On line 52 $srcdir should also be written quoted to antlr3, but it's more complex because you can't know that the variable won't contain apostrophes. I would propose the following:

local safequotedsrcdir="'${srcdir//\'/\'\\\'\'}'" # Converts to '/path/that'\''s a bit/stupid' (incl the '')
echo "exec java -cp ${safequotedsrcdir}/antlr-3.4-complete.jar org.antlr.Tool \"\$@\"" >> antlr3

Also make the other variables that you introduce within build() local, to make sure they cannot interfere with the makepkg internals. NB: if you introduce vars outside of a function, prefix them with _.

Have a nice day and thanks for packaging software!