jasonmc / forked-daapd

A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
http://blog.technologeek.org/2009/06/12/217
GNU General Public License v2.0
328 stars 45 forks source link

GPERF issue on FreeBSD #72

Closed hukl closed 12 years ago

hukl commented 12 years ago

Hey I got it as far as:

gmake[1]: Entering directory /usr/local/src/forked-daapd/forked-daapd/src' antlr3 -depend DAAP2SQL.g > DAAP2SQL.u antlr3 -depend DAAP.g > DAAP.u antlr3 -depend RSP2SQL.g > RSP2SQL.u antlr3 -depend RSP.g > RSP.u gmake[1]: Leaving directory/usr/local/src/forked-daapd/forked-daapd/src' gmake[1]: Entering directory /usr/local/src/forked-daapd/forked-daapd/src' antlr3 DAAP.g antlr3 RSP.g if gperf daap_query.gperf > daap_query_hash.c.tmp; then \ mv daap_query_hash.c.tmp daap_query_hash.c; \ elif gperf --version >/dev/null 2>&1; then \ rm daap_query_hash.c.tmp; \ exit 1; \ else \ rm daap_query_hash.c.tmp; \ touch daap_query_hash.c; \ fi internal error, l != '{' on line 129 in file /usr/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/key-list.ccgmake[1]: *** [daap_query_hash.c] Error 1 gmake[1]: Leaving directory/usr/local/src/forked-daapd/forked-daapd/src' gmake: *\ [install-recursive] Error 1

Any ideas?

pipian commented 12 years ago

Provided that you have the latest gperf built out of your ports tree (should be 3.0.3), you just need to specify the environment variable GPERF="/usr/local/bin/gperf" at configure-time. Otherwise you'll be building with the default system gperf (2.7.2).

hukl commented 12 years ago

Okay I got a whole lot further but now it is complaining about:

forked_daapd-main.o: In function main': main.c:(.text+0x43b): undefined reference toregister_ffmpeg_evbuffer_url_protocol' clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: * [forked-daapd] Error 1 gmake[2]: Leaving directory `/usr/local/src/forked-daapd/forked-daapd/src' gmake[1]: * [install] Error 2 gmake[1]: Leaving directory`/usr/local/src/forked-daapd/forked-daapd/src' gmake: *\ [install-recursive] Error 1

hukl commented 12 years ago

hah i did it - never mind - thnx

pipian commented 12 years ago

Did you end up patching the build system (e.g. as I did in https://github.com/pipian/forked-daapd/commit/420cb1c8c10fbff23148e0c8b18dab8ccebe5733) or just the Makefile?

catslab commented 12 years ago

I have the same trouble, installed ffmepg-devel and patched the configure.in, no way, still stuck on forked_daapd-main.o: In function main': main.c:(.text+0x4e5): undefined reference toregister_ffmpeg_evbuffer_url_protocol' clang: error: linker command failed with exit code 1 (use -v to see invocation)

Commented out in main.c and went trhu

chave commented 12 years ago

i'm having the same issue as well. Anyone care elaborate on fixing the issue?

hukl commented 12 years ago

I just installed ffmpeg-dev if i remember correctly. but hey - forked-daapd is really not worth the effort - i'm back on the latest patch of firefly daapd and it works good enough and doesn't come with an entire desktop linux as dependency. Compared to this dependency mess, writing your own streaming server should be really easy ;)