You are here: Home » Reply » Reply To: The case for reviving Firefly

Reply To: The case for reviving Firefly


Ok, after about 2h of fixing the dependency issues I got it and what an amazingly long lib list:

-rwxr-xr-x 1 root root 1175053 16. Mar 16:05 forked-daapd
sprinter sbin # ldd -r forked-daapd => (0xb7783000) => /usr/lib/ (0xb7767000) => /usr/lib/ (0xb772d000) => /usr/lib/ (0xb7720000) => /lib/ (0xb771c000) => /usr/lib/ (0xb7653000) => /lib/ (0xb7639000) => /usr/lib/ (0xb6d7c000) => /usr/lib/ (0xb6cd0000) => /usr/lib/ (0xb6ca2000) => /usr/lib/ (0xb6c8f000) => /usr/lib/ (0xb6c83000) => /usr/lib/ (0xb6c49000) => /usr/lib/ (0xb6c42000) => /lib/ (0xb6c1c000) => /usr/lib/ (0xb6c17000) => /usr/lib/ (0xb6b7f000) => /usr/lib/ (0xb6b75000) => /lib/ (0xb6b5d000) => /lib/ (0xb6b54000) => /lib/ (0xb6b3f000) => /usr/local/lib/ (0xb6b3c000) => /usr/lib/ (0xb6b26000) => /usr/lib/ (0xb6ab0000) => /usr/lib/ (0xb6aaa000) => /lib/ (0xb6960000)
/lib/ (0xb7784000) => /lib/ (0xb694c000) => /usr/lib/ (0xb68d7000) => /usr/lib/ (0xb68b9000) => /usr/lib/ (0xb68a1000) => /usr/lib/ (0xb67a7000) => /usr/lib/ (0xb677d000) => /usr/lib/ (0xb6707000) => /usr/lib/ (0xb661c000) => /lib/ (0xb6609000) => /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/ (0xb651d000) => /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/ (0xb650f000)

Was quite a nightmare to get this to compile on gentoo-linux. Except installing the antlr3 packages it was required to

1. Manually download the avl-0.3.5 source, compile it and install it manually as the makefile of this old package seems to be not compatible with a modern Make version really. Sorry, such old, outdated stuff should not be used any more. Theres likely a reason that no gentoo ebuilt exists for this. I bet it will give trouble in other distributions as well.

2. Manually downloading and installing the runtime/C stuff and headers as the existing antl3 package from gentoo didn’t seem to include the headers from the C runtime. Also nasty but I am blaming gentoo here. Seems theit antlr3 isn’t a real developer package.

I haven’t yet found time to really test the forked-mtdaapd executable, but in order to use it as a substitute or starting point for new development I think that it would be necessary to rework the code from forked-daapd to not use antlr and avl as I foresee otherwise problems also with other distributions.
And we would likely want something that at least runs on the Top10 linux distributions without too many troubles of portability.
It would also not be a bad thing to remove eventually some of the dependencies, as the list is mighty long.

Just compare to the old mt-daapd version, which is also half the size of the binary:

sprinter sbin # ldd -r /usr/sbin/mt-daapd => (0xb7868000) => /usr/lib/ (0xb7850000) => /usr/lib/ (0xb783f000) => /lib/ (0xb783b000) => /lib/ (0xb7822000) => /usr/lib/ (0xb7810000) => /lib/ (0xb77fc000) => /usr/lib/ (0xb7732000) => /usr/lib/ (0xb772b000) => /usr/lib/ (0xb7701000) => /usr/lib/ (0xb76f8000) => /usr/lib/ (0xb76bf000) => /lib/ (0xb7575000) => /usr/lib/ (0xb753a000)
/lib/ (0xb7869000) => /lib/ (0xb7514000)

So in short, why is this fork – after stripping some functions out – using soo many libraries?