Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

dependencies

Help
Val Malykh
2009-04-03
2013-05-29
  • Val Malykh
    Val Malykh
    2009-04-03

    Hello.

    Can anbody (developer is preferable, of cause) tell me on which libriraies stands project? I've seen some notes in comments, but it cannot be named full documentation.:)

    Ma be I've miss something, it'll be grate if anybody helps me with such obvious FAQ.

     
    • Justin Maggard
      Justin Maggard
      2009-04-05

      Try doing a CVS update and then run make again.  It should try to tell you what libraries may be missing.

       
      • Yes start-stop-daemon is debian-like, there's a start-stop-daemon on SySInit package on RHEL5 for compilation, but there's also the LSB compatibility scripts provided by redhat_lsb package which provide:

        start_daemon / killproc as well as log_success_msg,  log_failure_msg

        that should be on any LSB compliant system

        I can create a patch for your initrd on RPM creation, or try to have your init script 'LSBified' to have it working as-is for more systems

        ¿what do you think about this?

        Regards
        Pablo

         
        • diff  minidlna/linux/minidlna.init.d.script minidlna.init
          19,21c19,20
          < start)  log_daemon_msg "Starting minidlna" "minidlna"
          <         start-stop-daemon --start --quiet --pidfile /var/run/minidlna.pid --startas $MINIDLNA -- $ARGS $LSBNAMES
          <         log_end_msg $?
          ---
          > start)  MSG="Starting minidlna"
          >         start_daemon $MINIDLNA $ARGS $LSBNAMES && log_success_msg $MSG || log_failure_msg $MSG
          23,25c22,23
          < stop)   log_daemon_msg "Stopping minidlna" "minidlna"
          <         start-stop-daemon --stop --quiet --pidfile /var/run/minidlna.pid
          <         log_end_msg $?
          ---
          > stop)   MSG="Stopping minidlna"
          >         killproc $MINIDLNAS && log_success_msg $MSG || log_failure_msg $MSG
          28,31c26,27
          <         log_daemon_msg "Restarting minidlna" "minidlna"
          <         start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/minidlna.pid
          <         start-stop-daemon --start --quiet --pidfile /var/run/minidlna.pid --startas $MINIDLNA -- $ARGS $LSBNAMES
          <         log_end_msg $?
          ---
          >         $0 stop
          >         $0 start

           
    • I'm trying to compile it under RHEL 5.3, and uuid seems to be a problem, it fails with uuid-devel package as well as the one from uuid website:

      (with uuid-devel, it fails as uuid.h is stored at /usr/include/uuid.h instead of /usr/include/uuid/uuid.h, but even renaming that reference it fails):

      sed -i "s#uuid/uuid.h#uuid.h#g" genconfig.sh upnpevents.c

      LANG=C make
      Compiling upnpevents.c
      upnpevents.c: In function 'newSubscriber':
      upnpevents.c:99: error: storage size of 'uuid' isn't known
      upnpevents.c:100: warning: implicit declaration of function 'uuid_generate_time'
      upnpevents.c:101: warning: implicit declaration of function 'uuid_unparse_lower'
      upnpevents.c:99: warning: unused variable 'uuid'
      The following command failed:
      gcc -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/ffmpeg -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -o upnpevents.o -c upnpevents.c
      make: *** [upnpevents.o] Error 1

      I'm trying to get it compiled, so I can buld an RPM as well as a corresponding SPEC file for users convenience

      ¿any hint?

      Regards
      Pablo

       
      • Justin Maggard
        Justin Maggard
        2009-07-01

        Does /usr/include/uuid.h define those functions?  What version of e2fsprogs does RHEL 5.3 run?  Have you installed e2fsprogs-devel?  What about changing "#define HAVE_UUID 1" to "#undef HAVE_UUID" in upnpevents.c?

         
        • Doing cvs update and installing e2fsprogs-devel fixed compilation requirements, going to package it and create and spec and post here the url if you're interested

          Regards
          Pablo

           
    • minidlna.init.d.script should be patched to include:

      #  chkconfig: 345 99 10
      #  description: Startup/shutdown script for MiniDLNA daemon

      for chkconfig compatibility

      I've a working spec once init script is patched for chkconfig compatibility, tested on RHEL 5.3
      Let me know when it's fixed to upload both spec and rpm for you review.

      Regards
      Pablo

       
      • Justin Maggard
        Justin Maggard
        2009-07-02

        That change is checked in now.  So I take it RHEL comes with start-stop-daemon?  I thought that was a debian thing...

         
    • I've uploaded a specfile that creates that compatible initscript on http://alufis35.uv.es/MiniDLNA-SPEC-RPM.html

      There's  an RPM version  of MiniDLNA for x86 systems that has been tested on Red Hat Enterprise Linux 5.3

      Regards
      Pablo