Menu

#313 log rotation kills minidlna service

v1.0 (example)
closed-fixed
None
5
2018-01-24
2017-11-19
Stefan
No

Running service minidlna rotate kills the minidlna service reproducible on my Ubuntu 16.04 server.
I've build minidlna from the sources available here on sourceforge and even rebuild it again today to see if it makes any difference:

roots@mediadump ~/downloads $ tar xvzf minidlna-1.2.1.tar.gz
minidlna-1.2.1/
minidlna-1.2.1/.gitignore
minidlna-1.2.1/AUTHORS
minidlna-1.2.1/COPYING
minidlna-1.2.1/ChangeLog
minidlna-1.2.1/LICENCE.miniupnpd
minidlna-1.2.1/Makefile.am
minidlna-1.2.1/NEWS
minidlna-1.2.1/README
minidlna-1.2.1/TODO
minidlna-1.2.1/albumart.c
minidlna-1.2.1/albumart.h
minidlna-1.2.1/autogen.sh
minidlna-1.2.1/avahi.c
minidlna-1.2.1/avahi.h
minidlna-1.2.1/clients.c
minidlna-1.2.1/clients.h
minidlna-1.2.1/codelength.h
minidlna-1.2.1/configure.ac
minidlna-1.2.1/containers.c
minidlna-1.2.1/containers.h
minidlna-1.2.1/getifaddr.c
minidlna-1.2.1/getifaddr.h
minidlna-1.2.1/icons.c
minidlna-1.2.1/image_utils.c
minidlna-1.2.1/image_utils.h
minidlna-1.2.1/libav.h
minidlna-1.2.1/linux/
minidlna-1.2.1/linux/inotify-syscalls.h
minidlna-1.2.1/linux/inotify.h
minidlna-1.2.1/linux/minidlna.init.d.script.tmpl
minidlna-1.2.1/log.c
minidlna-1.2.1/log.h
minidlna-1.2.1/metadata.c
minidlna-1.2.1/metadata.h
minidlna-1.2.1/minidlna.c
minidlna-1.2.1/minidlna.conf
minidlna-1.2.1/minidlna.conf.5
minidlna-1.2.1/minidlnad.8
minidlna-1.2.1/minidlnapath.h
minidlna-1.2.1/minidlnatypes.h
minidlna-1.2.1/minissdp.c
minidlna-1.2.1/minissdp.h
minidlna-1.2.1/minixml.c
minidlna-1.2.1/minixml.h
minidlna-1.2.1/monitor.c
minidlna-1.2.1/monitor.h
minidlna-1.2.1/options.c
minidlna-1.2.1/options.h
minidlna-1.2.1/playlist.c
minidlna-1.2.1/playlist.h
minidlna-1.2.1/po/
minidlna-1.2.1/po/LINGUAS
minidlna-1.2.1/po/Makevars
minidlna-1.2.1/po/POTFILES.in
minidlna-1.2.1/po/da.po
minidlna-1.2.1/po/de.po
minidlna-1.2.1/po/es.po
minidlna-1.2.1/po/fr.po
minidlna-1.2.1/po/it.po
minidlna-1.2.1/po/ja.po
minidlna-1.2.1/po/ko.po
minidlna-1.2.1/po/minidlna.pot
minidlna-1.2.1/po/nb.po
minidlna-1.2.1/po/nl.po
minidlna-1.2.1/po/pl.po
minidlna-1.2.1/po/ru.po
minidlna-1.2.1/po/sl.po
minidlna-1.2.1/po/sv.po
minidlna-1.2.1/po/Makefile.in.in
minidlna-1.2.1/po/Makevars.template
minidlna-1.2.1/po/Rules-quot
minidlna-1.2.1/po/boldquot.sed
minidlna-1.2.1/po/en@boldquot.header
minidlna-1.2.1/po/en@quot.header
minidlna-1.2.1/po/insert-header.sin
minidlna-1.2.1/po/quot.sed
minidlna-1.2.1/po/remove-potcdate.sin
minidlna-1.2.1/process.c
minidlna-1.2.1/process.h
minidlna-1.2.1/scanner.c
minidlna-1.2.1/scanner.h
minidlna-1.2.1/scanner_sqlite.h
minidlna-1.2.1/sendfile.h
minidlna-1.2.1/sql.c
minidlna-1.2.1/sql.h
minidlna-1.2.1/tagutils/
minidlna-1.2.1/tagutils/tagutils-aac.c
minidlna-1.2.1/tagutils/tagutils-aac.h
minidlna-1.2.1/tagutils/tagutils-asf.c
minidlna-1.2.1/tagutils/tagutils-asf.h
minidlna-1.2.1/tagutils/tagutils-flc.c
minidlna-1.2.1/tagutils/tagutils-flc.h
minidlna-1.2.1/tagutils/tagutils-misc.c
minidlna-1.2.1/tagutils/tagutils-mp3.c
minidlna-1.2.1/tagutils/tagutils-mp3.h
minidlna-1.2.1/tagutils/tagutils-ogg.c
minidlna-1.2.1/tagutils/tagutils-ogg.h
minidlna-1.2.1/tagutils/tagutils-pcm.c
minidlna-1.2.1/tagutils/tagutils-pcm.h
minidlna-1.2.1/tagutils/tagutils-plist.c
minidlna-1.2.1/tagutils/tagutils-wav.c
minidlna-1.2.1/tagutils/tagutils-wav.h
minidlna-1.2.1/tagutils/tagutils.c
minidlna-1.2.1/tagutils/tagutils.h
minidlna-1.2.1/testupnpdescgen.c
minidlna-1.2.1/tivo_beacon.c
minidlna-1.2.1/tivo_beacon.h
minidlna-1.2.1/tivo_commands.c
minidlna-1.2.1/tivo_commands.h
minidlna-1.2.1/tivo_utils.c
minidlna-1.2.1/tivo_utils.h
minidlna-1.2.1/upnpdescgen.c
minidlna-1.2.1/upnpdescgen.h
minidlna-1.2.1/upnpevents.c
minidlna-1.2.1/upnpevents.h
minidlna-1.2.1/upnpglobalvars.c
minidlna-1.2.1/upnpglobalvars.h
minidlna-1.2.1/upnphttp.c
minidlna-1.2.1/upnphttp.h
minidlna-1.2.1/upnpreplyparse.c
minidlna-1.2.1/upnpreplyparse.h
minidlna-1.2.1/upnpsoap.c
minidlna-1.2.1/upnpsoap.h
minidlna-1.2.1/utils.c
minidlna-1.2.1/utils.h
minidlna-1.2.1/uuid.c
minidlna-1.2.1/uuid.h
minidlna-1.2.1/ABOUT-NLS
minidlna-1.2.1/config.rpath
minidlna-1.2.1/m4/
minidlna-1.2.1/m4/codeset.m4
minidlna-1.2.1/m4/fcntl-o.m4
minidlna-1.2.1/m4/gettext.m4
minidlna-1.2.1/m4/glibc2.m4
minidlna-1.2.1/m4/glibc21.m4
minidlna-1.2.1/m4/iconv.m4
minidlna-1.2.1/m4/intdiv0.m4
minidlna-1.2.1/m4/intl.m4
minidlna-1.2.1/m4/intldir.m4
minidlna-1.2.1/m4/intlmacosx.m4
minidlna-1.2.1/m4/intmax.m4
minidlna-1.2.1/m4/inttypes-pri.m4
minidlna-1.2.1/m4/inttypes_h.m4
minidlna-1.2.1/m4/lcmessage.m4
minidlna-1.2.1/m4/lib-ld.m4
minidlna-1.2.1/m4/lib-link.m4
minidlna-1.2.1/m4/lib-prefix.m4
minidlna-1.2.1/m4/lock.m4
minidlna-1.2.1/m4/longlong.m4
minidlna-1.2.1/m4/nls.m4
minidlna-1.2.1/m4/po.m4
minidlna-1.2.1/m4/printf-posix.m4
minidlna-1.2.1/m4/progtest.m4
minidlna-1.2.1/m4/size_max.m4
minidlna-1.2.1/m4/stdint_h.m4
minidlna-1.2.1/m4/threadlib.m4
minidlna-1.2.1/m4/uintmax_t.m4
minidlna-1.2.1/m4/visibility.m4
minidlna-1.2.1/m4/wchar_t.m4
minidlna-1.2.1/m4/wint_t.m4
minidlna-1.2.1/m4/xsize.m4
minidlna-1.2.1/aclocal.m4
minidlna-1.2.1/configure
minidlna-1.2.1/config.h.in
minidlna-1.2.1/compile
minidlna-1.2.1/config.guess
minidlna-1.2.1/config.sub
minidlna-1.2.1/install-sh
minidlna-1.2.1/missing
minidlna-1.2.1/INSTALL
minidlna-1.2.1/depcomp
minidlna-1.2.1/Makefile.in
roots@mediadump ~/downloads $ cd minidlna-1.2.1/
roots@mediadump ~/downloads/minidlna-1.2.1 $ ls
total 1.8M
drwxr-xr-x 6 roots roots 4.0K Aug 24 20:56 .
drwxrwxr-x 4 roots roots 4.0K Nov 19 12:41 ..
-rw-r--r-- 1 roots roots  94K Aug 24 20:56 ABOUT-NLS
-rw-r--r-- 1 roots roots  43K Aug 24 20:56 aclocal.m4
-rw-r--r-- 1 roots roots 8.7K Aug 24 19:28 albumart.c
-rw-r--r-- 1 roots roots 1010 Aug 24 19:28 albumart.h
-rw-r--r-- 1 roots roots   48 Aug 24 19:28 AUTHORS
-rwxr-xr-x 1 roots roots 1.6K Aug 24 19:28 autogen.sh
-rw-r--r-- 1 roots roots 6.7K Aug 24 19:28 avahi.c
-rw-r--r-- 1 roots roots  257 Aug 24 19:28 avahi.h
-rw-r--r-- 1 roots roots    0 Aug 24 19:28 ChangeLog
-rw-r--r-- 1 roots roots 7.4K Aug 24 19:28 clients.c
-rw-r--r-- 1 roots roots 2.7K Aug 24 19:28 clients.h
-rw-r--r-- 1 roots roots  843 Aug 24 19:28 codelength.h
-rwxr-xr-x 1 roots roots 7.2K Aug 24 20:56 compile
-rwxr-xr-x 1 roots roots  42K Aug 24 20:56 config.guess
-rw-r--r-- 1 roots roots  15K Aug 24 20:56 config.h.in
-rwxr-xr-x 1 roots roots  19K Aug 24 20:56 config.rpath
-rwxr-xr-x 1 roots roots  35K Aug 24 20:56 config.sub
-rwxr-xr-x 1 roots roots 352K Aug 24 20:56 configure
-rw-r--r-- 1 roots roots  22K Aug 24 19:28 configure.ac
-rw-r--r-- 1 roots roots 5.9K Aug 24 19:28 containers.c
-rw-r--r-- 1 roots roots 1.2K Aug 24 19:28 containers.h
-rw-r--r-- 1 roots roots  18K Aug 24 19:28 COPYING
-rwxr-xr-x 1 roots roots  24K Aug 24 20:56 depcomp
-rw-r--r-- 1 roots roots  10K Aug 24 19:28 getifaddr.c
-rw-r--r-- 1 roots roots 2.1K Aug 24 19:28 getifaddr.h
-rw-r--r-- 1 roots roots  456 Aug 24 19:28 .gitignore
-rw-r--r-- 1 roots roots 305K Aug 24 19:28 icons.c
-rw-r--r-- 1 roots roots  21K Aug 24 19:28 image_utils.c
-rw-r--r-- 1 roots roots 1.6K Aug 24 19:28 image_utils.h
-rw-r--r-- 1 roots roots  16K Aug 24 20:56 INSTALL
-rwxr-xr-x 1 roots roots  15K Aug 24 20:56 install-sh
-rw-r--r-- 1 roots roots 6.4K Aug 24 19:28 libav.h
-rw-r--r-- 1 roots roots 1.5K Aug 24 19:28 LICENCE.miniupnpd
drwxr-xr-x 2 roots roots 4.0K Aug 24 19:28 linux
-rw-r--r-- 1 roots roots 3.7K Aug 24 19:28 log.c
-rw-r--r-- 1 roots roots 1.6K Aug 24 19:28 log.h
drwxr-xr-x 2 roots roots 4.0K Aug 24 20:56 m4
-rw-r--r-- 1 roots roots 2.3K Aug 24 19:28 Makefile.am
-rw-r--r-- 1 roots roots  36K Aug 24 20:56 Makefile.in
-rw-r--r-- 1 roots roots  44K Aug 24 19:28 metadata.c
-rw-r--r-- 1 roots roots 3.1K Aug 24 19:28 metadata.h
-rw-r--r-- 1 roots roots  36K Aug 24 19:28 minidlna.c
-rw-r--r-- 1 roots roots 3.5K Aug 24 19:28 minidlna.conf
-rw-r--r-- 1 roots roots 5.8K Aug 24 19:28 minidlna.conf.5
-rw-r--r-- 1 roots roots 2.1K Aug 24 19:28 minidlnad.8
-rw-r--r-- 1 roots roots 2.4K Aug 24 19:28 minidlnapath.h
-rw-r--r-- 1 roots roots 3.1K Aug 24 19:28 minidlnatypes.h
-rw-r--r-- 1 roots roots  23K Aug 24 19:28 minissdp.c
-rw-r--r-- 1 roots roots 2.0K Aug 24 19:28 minissdp.h
-rw-r--r-- 1 roots roots 4.8K Aug 24 19:28 minixml.c
-rw-r--r-- 1 roots roots 2.5K Aug 24 19:28 minixml.h
-rwxr-xr-x 1 roots roots 6.8K Aug 24 20:56 missing
-rw-r--r-- 1 roots roots  19K Aug 24 19:28 monitor.c
-rw-r--r-- 1 roots roots  222 Aug 24 19:28 monitor.h
-rw-r--r-- 1 roots roots 8.6K Aug 24 19:28 NEWS
-rw-r--r-- 1 roots roots 5.3K Aug 24 19:28 options.c
-rw-r--r-- 1 roots roots 3.6K Aug 24 19:28 options.h
-rw-r--r-- 1 roots roots 6.8K Aug 24 19:28 playlist.c
-rw-r--r-- 1 roots roots  968 Aug 24 19:28 playlist.h
drwxr-xr-x 2 roots roots 4.0K Aug 24 20:56 po
-rw-r--r-- 1 roots roots 4.4K Aug 24 19:28 process.c
-rw-r--r-- 1 roots roots 3.0K Aug 24 19:28 process.h
-rw-r--r-- 1 roots roots 1008 Aug 24 19:28 README
-rw-r--r-- 1 roots roots  30K Aug 24 19:28 scanner.c
-rw-r--r-- 1 roots roots 2.3K Aug 24 19:28 scanner.h
-rw-r--r-- 1 roots roots 2.7K Aug 24 19:28 scanner_sqlite.h
-rw-r--r-- 1 roots roots 1.6K Aug 24 19:28 sendfile.h
-rw-r--r-- 1 roots roots 6.2K Aug 24 19:28 sql.c
-rw-r--r-- 1 roots roots 1.5K Aug 24 19:28 sql.h
drwxr-xr-x 2 roots roots 4.0K Aug 24 19:28 tagutils
-rw-r--r-- 1 roots roots 3.9K Aug 24 19:28 testupnpdescgen.c
-rw-r--r-- 1 roots roots 8.4K Aug 24 19:28 tivo_beacon.c
-rw-r--r-- 1 roots roots 1.3K Aug 24 19:28 tivo_beacon.h
-rw-r--r-- 1 roots roots  21K Aug 24 19:28 tivo_commands.c
-rw-r--r-- 1 roots roots  930 Aug 24 19:28 tivo_commands.h
-rw-r--r-- 1 roots roots 3.4K Aug 24 19:28 tivo_utils.c
-rw-r--r-- 1 roots roots 1.3K Aug 24 19:28 tivo_utils.h
-rw-r--r-- 1 roots roots  155 Aug 24 19:28 TODO
-rw-r--r-- 1 roots roots  21K Aug 24 19:28 upnpdescgen.c
-rw-r--r-- 1 roots roots 3.3K Aug 24 19:28 upnpdescgen.h
-rw-r--r-- 1 roots roots  14K Aug 24 19:28 upnpevents.c
-rw-r--r-- 1 roots roots 3.1K Aug 24 19:28 upnpevents.h
-rw-r--r-- 1 roots roots 3.6K Aug 24 19:28 upnpglobalvars.c
-rw-r--r-- 1 roots roots 9.6K Aug 24 19:28 upnpglobalvars.h
-rw-r--r-- 1 roots roots  52K Aug 24 19:28 upnphttp.c
-rw-r--r-- 1 roots roots 5.4K Aug 24 19:28 upnphttp.h
-rw-r--r-- 1 roots roots 4.2K Aug 24 19:28 upnpreplyparse.c
-rw-r--r-- 1 roots roots 2.7K Aug 24 19:28 upnpreplyparse.h
-rw-r--r-- 1 roots roots  66K Aug 24 19:28 upnpsoap.c
-rw-r--r-- 1 roots roots 1.5K Aug 24 19:28 upnpsoap.h
-rw-r--r-- 1 roots roots  11K Aug 24 19:28 utils.c
-rw-r--r-- 1 roots roots 2.9K Aug 24 19:28 utils.h
-rw-r--r-- 1 roots roots 6.2K Aug 24 19:28 uuid.c
-rw-r--r-- 1 roots roots 1.1K Aug 24 19:28 uuid.h
roots@mediadump ~/downloads/minidlna-1.2.1 $ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uint8_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ssize_t... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking for struct stat.st_blocks... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether byte ordering is bigendian... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat correctly handles trailing slash... yes
checking for gethostname... yes
checking for getifaddrs... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for realpath... yes
checking for select... yes
checking for sendfile... yes
checking for setlocale... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for struct ip_mreqn... yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking mach/mach_time.h usability... no
checking mach/mach_time.h presence... no
checking for mach/mach_time.h... no
checking for __NR_clock_gettime syscall... yes
checking for linux/netlink.h... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking ffmpeg/libavutil/avutil.h usability... no
checking ffmpeg/libavutil/avutil.h presence... no
checking for ffmpeg/libavutil/avutil.h... no
checking libav/libavutil/avutil.h usability... no
checking libav/libavutil/avutil.h presence... no
checking for libav/libavutil/avutil.h... no
checking avutil.h usability... no
checking avutil.h presence... no
checking for avutil.h... no
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libav/avutil.h usability... no
checking libav/avutil.h presence... no
checking for libav/avutil.h... no
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking ffmpeg/libavcodec/avcodec.h usability... no
checking ffmpeg/libavcodec/avcodec.h presence... no
checking for ffmpeg/libavcodec/avcodec.h... no
checking libav/libavcodec/avcodec.h usability... no
checking libav/libavcodec/avcodec.h presence... no
checking for libav/libavcodec/avcodec.h... no
checking avcodec.h usability... no
checking avcodec.h presence... no
checking for avcodec.h... no
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libav/avcodec.h usability... no
checking libav/avcodec.h presence... no
checking for libav/avcodec.h... no
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking ffmpeg/libavformat/avformat.h usability... no
checking ffmpeg/libavformat/avformat.h presence... no
checking for ffmpeg/libavformat/avformat.h... no
checking libav/libavformat/avformat.h usability... no
checking libav/libavformat/avformat.h presence... no
checking for libav/libavformat/avformat.h... no
checking avformat.h usability... no
checking avformat.h presence... no
checking for avformat.h... no
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libav/avformat.h usability... no
checking libav/avformat.h presence... no
checking for libav/avformat.h... no
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking libexif/exif-loader.h usability... yes
checking libexif/exif-loader.h presence... yes
checking for libexif/exif-loader.h... yes
checking id3tag.h usability... yes
checking id3tag.h presence... yes
checking for id3tag.h... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking vorbis/codec.h usability... yes
checking vorbis/codec.h presence... yes
checking for vorbis/codec.h... yes
checking FLAC/metadata.h usability... yes
checking FLAC/metadata.h presence... yes
checking for FLAC/metadata.h... yes
checking if we should use the daemon() libc function... yes
checking if scandir declaration requires const char cast... yes
checking for linux sendfile support... yes
checking for darwin sendfile support... no
checking for freebsd sendfile support... no
checking for jpeg_set_defaults in -ljpeg... yes
checking for exif_data_new_from_file in -lexif... yes
checking for id3_file_open in -lid3tag... yes
checking for sqlite3_open in -lsqlite3... yes
checking for sqlite3_malloc in -lsqlite3... yes
checking for sqlite3_prepare_v2 in -lsqlite3... yes
checking for av_open_input_file in -lavformat... no
checking for avformat_open_input in -lavformat... yes
checking for av_rescale_q in -lavutil ... yes
checking for pthread_create in -lpthread... yes
checking for ov_open_callbacks in -lvorbisfile... yes
checking vorbis/vorbisfile.h usability... yes
checking vorbis/vorbisfile.h presence... yes
checking for vorbis/vorbisfile.h... yes
checking for FLAC__stream_decoder_init_stream in -lFLAC... yes
checking FLAC/all.h usability... yes
checking FLAC/all.h presence... yes
checking for FLAC/all.h... yes
checking for FLAC__stream_decoder_init_ogg_stream in -lFLAC... yes
checking for vorbis_comment_query in -lvorbisfile... no
checking for avahi_threaded_poll_new in -lavahi-client... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking asm/unistd.h usability... yes
checking asm/unistd.h presence... yes
checking for asm/unistd.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for inotify_init... yes
checking whether to enable TiVo support... no
checking whether to enable generic NETGEAR device support... no
checking whether to enable NETGEAR ReadyNAS support... no
checking whether to build a static binary executable... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating po/Makefile.in
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
roots@mediadump ~/downloads/minidlna-1.2.1 $ make
make  all-recursive
make[1]: Entering directory '/home/roots/downloads/minidlna-1.2.1'
Making all in po
make[2]: Entering directory '/home/roots/downloads/minidlna-1.2.1/po'
test ! -f ./minidlna.pot || \
  test -z "da.gmo de.gmo es.gmo fr.gmo it.gmo ja.gmo ko.gmo nb.gmo nl.gmo pl.gmo ru.gmo sl.gmo sv.gmo" || make da.gmo de.gmo es.gmo fr.gmo it.gmo ja.gmo ko.gmo nb.gmo nl.gmo pl.gmo ru.gmo sl.gmo sv.gmo
make[3]: Entering directory '/home/roots/downloads/minidlna-1.2.1/po'
rm -f da.gmo && /usr/bin/msgfmt -c --statistics --verbose -o da.gmo da.po
da.po: 23 translated messages.
rm -f de.gmo && /usr/bin/msgfmt -c --statistics --verbose -o de.gmo de.po
de.po: 23 translated messages.
rm -f es.gmo && /usr/bin/msgfmt -c --statistics --verbose -o es.gmo es.po
es.po: 23 translated messages.
rm -f fr.gmo && /usr/bin/msgfmt -c --statistics --verbose -o fr.gmo fr.po
fr.po: 23 translated messages.
rm -f it.gmo && /usr/bin/msgfmt -c --statistics --verbose -o it.gmo it.po
it.po: 23 translated messages.
rm -f ja.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ja.gmo ja.po
ja.po: 23 translated messages.
rm -f ko.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ko.gmo ko.po
ko.po: 23 translated messages.
rm -f nb.gmo && /usr/bin/msgfmt -c --statistics --verbose -o nb.gmo nb.po
nb.po: 23 translated messages.
rm -f nl.gmo && /usr/bin/msgfmt -c --statistics --verbose -o nl.gmo nl.po
nl.po: 23 translated messages.
rm -f pl.gmo && /usr/bin/msgfmt -c --statistics --verbose -o pl.gmo pl.po
pl.po: 23 translated messages.
rm -f ru.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ru.gmo ru.po
ru.po: 22 translated messages, 1 untranslated message.
rm -f sl.gmo && /usr/bin/msgfmt -c --statistics --verbose -o sl.gmo sl.po
sl.po: 23 translated messages.
rm -f sv.gmo && /usr/bin/msgfmt -c --statistics --verbose -o sv.gmo sv.po
sv.po: 23 translated messages.
make[3]: Leaving directory '/home/roots/downloads/minidlna-1.2.1/po'
touch stamp-po
make[2]: Leaving directory '/home/roots/downloads/minidlna-1.2.1/po'
make[2]: Entering directory '/home/roots/downloads/minidlna-1.2.1'
  CC       minidlna.o
  CC       upnphttp.o
  CC       upnpdescgen.o
  CC       upnpsoap.o
  CC       upnpreplyparse.o
  CC       minixml.o
  CC       clients.o
  CC       getifaddr.o
  CC       process.o
  CC       upnpglobalvars.o
  CC       options.o
  CC       minissdp.o
  CC       uuid.o
  CC       upnpevents.o
  CC       sql.o
  CC       utils.o
  CC       metadata.o
  CC       scanner.o
  CC       monitor.o
monitor.c: In function ‘raise_watch_limit’:
monitor.c:106:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
   fscanf(max_watches, "%u", &limit);
   ^
  CC       tivo_utils.o
  CC       tivo_beacon.o
  CC       tivo_commands.o
  CC       playlist.o
  CC       image_utils.o
  CC       albumart.o
  CC       log.o
  CC       containers.o
  CC       avahi.o
  CC       tagutils/tagutils.o
  CCLD     minidlnad
sed -e s@:SBINDIR:@/usr/local/sbin@ <linux/minidlna.init.d.script.tmpl >linux/minidlna.init.d.script
make[2]: Leaving directory '/home/roots/downloads/minidlna-1.2.1'
make[1]: Leaving directory '/home/roots/downloads/minidlna-1.2.1'
roots@mediadump ~/downloads/minidlna-1.2.1 $ sudo make install
Making install in po
make[1]: Entering directory '/home/roots/downloads/minidlna-1.2.1/po'
installing da.gmo as /usr/local/share/locale/da/LC_MESSAGES/minidlna.mo
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/minidlna.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/minidlna.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/minidlna.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/minidlna.mo
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/minidlna.mo
installing ko.gmo as /usr/local/share/locale/ko/LC_MESSAGES/minidlna.mo
installing nb.gmo as /usr/local/share/locale/nb/LC_MESSAGES/minidlna.mo
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/minidlna.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/minidlna.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/minidlna.mo
installing sl.gmo as /usr/local/share/locale/sl/LC_MESSAGES/minidlna.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/minidlna.mo
if test "minidlna" = "gettext-tools"; then \
  /bin/mkdir -p /usr/local/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
    /usr/bin/install -c -m 644 ./$file \
                    /usr/local/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /usr/local/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory '/home/roots/downloads/minidlna-1.2.1/po'
make[1]: Entering directory '/home/roots/downloads/minidlna-1.2.1'
make[2]: Entering directory '/home/roots/downloads/minidlna-1.2.1'
 /bin/mkdir -p '/usr/local/sbin'
  /usr/bin/install -c minidlnad '/usr/local/sbin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/roots/downloads/minidlna-1.2.1'
make[1]: Leaving directory '/home/roots/downloads/minidlna-1.2.1'

Interestingly enough the daemon reports version 1.2.1 while the logfile shows version 1.2.0:

roots@mediadump /var/log $ minidlnad -V
Version 1.2.1
[2017/11/19 12:42:08] minidlna.c:1035: warn: Starting MiniDLNA version 1.2.0.

Neither syslog nor the minidlna logfile shows any hints. Let me know if you need any other information to debug this.

Regards,
Stefan

Discussion

  • Justin Maggard

    Justin Maggard - 2018-01-24

    This isn't really our issue. But we can at least make it not abort when using the Debian logrotate script. Here's the relevant commit log (just pushed):

    commit 138d03db194778c92dc7ebee00c7f1c0e937233e
    Author: Justin Maggard jmaggard@netgear.com
    Date: Tue Jan 23 22:01:10 2018 -0800

    Reload log file on SIGHUP
    
    There's a report about a nightly "crash" when users download, compile
    from source, and replace their distro's mindlnad binary.  This is because
    the Debian package includes a patch that uses SIGUSR2 to reopen the log
    file and sends SIGUSR2 from logrotate instead of just using the
    "copytruncate" logrotate option.  Then logrotate sends SIGUSR2 at 6:25AM,
    which causes us to abort due to the unhandled signal.
    
    I don't want to sacrifice SIGUSR2 just for log rotation, especially when
    we already do some reload operations on SIGHUP.  So to avoid this
    Debian/Ubuntu issue, we'll explicitly ignore SIGUSR2, and add log file
    reopening to the SIGHUP handler.  Then hopefully a future Debian package
    version will remove the SIGUSR2 patch and use SIGHUP instead (or
    copytruncate).
    
     
  • Justin Maggard

    Justin Maggard - 2018-01-24
    • status: open --> closed-fixed
    • assigned_to: Justin Maggard
     

Log in to post a comment.