18 Responses

  1. Thimp
    Thimp at |

    Hello Shantanu
    Thanks for sharing your work, I’ve been looking for updates from 1695. FireFly is a great mediaserver, but there still are some issues …

    I encounter some problems following your instructions , maybe you can give me a hint. I’m a linux noob and compiling has been a daunting task, but your list helped a lot. I’m compiling for the NSLU2 arm platform (synology 207+) and have been able to complete the steps until the make command
    There I encounter an error compiling
    –db.c:122: error: syntax error before “db_rwlock”–
    some warnings follow about — implicit declaration of function `pthread_rwlock_rdlock’–
    All are related to pthread.h
    It is the only file that won’t compile. My impression is that the pthread_rwlock_t struct is not “known” at compile time, though the header file seems to be included.
    maybe you have a suggestion?

    Thanx, Thimp

  2. Thimp
    Thimp at |

    Hello Shantanu,
    I have done some reading through the headerfiles and saw #ifdef __USE_UNIX98 around the decaration of the pthread_rwlock_t struct. I removed that and was able to compile the db.c file.
    That gets me one step further, still going! I’ll let you know if I get there in the end
    Thimp

  3. Thimp
    Thimp at |

    I did use the configure command as you described. I still had to uncomment the __Use_UNIX98 directive. After that it compiled OK, and I got firefly working (YAY!).

    Nearly at the end: it crashes often (using the html management tool), and the bonjour service seems to be stopped, though ITunes finds the server. I’ll be looking into that. There might be some conflicts with old installations.
    If I got it working smoothlessly, I’ll let it know.
    Thanks again, Thimp

  4. Cary Lewis
    Cary Lewis at |

    I am trying to compile this version of firefly on an dLink DNS-323 with ffp 0.5 installed.

    I had to manually edit /ffp/include/features.h and comment out the #undef __USE_UNIX98 line, and then specify CPPFLAGS=”-D__USE_UNIX98″ on the configure line.

    BTW the notes above say CPFLAGS, I think you meant CPPFLAGS.

    Anyway, I hope to modify the source to use the file change notification subsystem to add new files into the DB without having to do a scan.

  5. Thimp
    Thimp at |

    @Cary Adding to the DB without scanning would be awsome, please keep us posted!
    My firefly servers is up and running for a long time now, only the smartplaylist interface brings it to his knees. But I’ve not been able to digg further into that.
    Regards Thimp

  6. Cary Lewis
    Cary Lewis at |

    I was able to build the mt-daapd, but it did not run correctly – it crashed processing the .m3u files.

  7. Andres
    Andres at |

    Firstly, thanks for sharing. I’ve tried several times to compile on OS X (Leopard and Snow Leopard) each time without success.

    After running make a get error msgs such as these:

    make[4]: Nothing to be done for `all’.
    make[4]: Nothing to be done for `all-am’.
    make[3]: Nothing to be done for `all-am’.
    Making all in contrib
    make all-recursive
    Making all in init.d
    make all-am
    make[5]: Nothing to be done for `all-am’.
    make[4]: Nothing to be done for `all-am’.

    Any insight on your part?

    Thanks in advance

  8. DM
    DM at |

    I did use the configure command as you described. I still had to uncomment the __Use_UNIX98 directive. After that it compiled OK, and I got firefly working (YAY!).

    Nearly at the end: it crashes often (using the html management tool), and the bonjour service seems to be stopped, though ITunes finds the server. I’ll be looking into that. There might be some conflicts with old installations.
    If I got it working smoothlessly, I’ll let it know.
    Thanks again, Thimp

  9. Alfredo
    Alfredo at |

    Can anyone share the binary for nslu2 with me?

  10. Prashant
    Prashant at |

    Unfortunately when I run your binary in DD WRT, I get:
    mt-daapd: can’t resolve symbol ‘__ctype_b_loc’

    Any ideas if this is fixable?

  11. fd0
    fd0 at |

    Is your version suitable for FreeBSD? I have been running svn-1696 for a very long time on Gentoo Linux. My migration to FreeBSD 8-Stable gives me a headache with firefly.

    Thanks

  12. SSH Tunneling On Android | Shantanu's Technophilic Musings

    [...] router with custom firmware. For more info about how to set it up, you can check these posts: Latest Firefly server for your router and firefly sqlite error solution.  For android side things, install the “DAAP Client” [...]

  13. Firefly / sqlite error “unable to open database file” Solution | Shantanu's Technophilic Musings

    [...] up but somehow didn’t preserve the firefly server. I rebuilt the server from source using my own guide (Thank God I did it. I wouldn’t have been able to preserve my sanity finding all that out the [...]

  14. TheDrake
    TheDrake at |

    Simply try to add:

    #define _XOPEN_SOURCE 500 /** unix98? pthread_once_t, etc */

    at the beginning of file db.c as of 1696 version like this:


    #ifdef HAVE_CONFIG_H
    #include “config.h”
    #endif

    #define _XOPEN_SOURCE 500 /** unix98? pthread_once_t, etc */

    #include

    No need to use CPPFLAGS during configure process and working on my wl-600g customized firmware.

  15. Jürgen G
    Jürgen G at |

    Hello,

    I am glad I found your blog post. After changing my hardware from NSLU to a router with ar71xx based OpenWRT I look for a version of mt-daapd with working RSP. Does your code or at least the plugins work on my ar71xx based OpenWRT? Can you compile and share an package for me?

    regards
    Jürgen

Comments are closed.