Raspbian Package Auto-Building

Build log for minidlna (1.0.24+dfsg-1+b1) on armhf

minidlna1.0.24+dfsg-1+b1armhf → 2013-10-11 13:26:28

sbuild (Debian sbuild) 0.63.2 (18 Aug 2012) on testwandboard

╔══════════════════════════════════════════════════════════════════════════════╗
║ minidlna 1.0.24+dfsg-1+b1 (armhf)                          11 Oct 2013 13:21 ║
╚══════════════════════════════════════════════════════════════════════════════╝

Package: minidlna
Version: 1.0.24+dfsg-1+b1
Source Version: 1.0.24+dfsg-1
Distribution: jessie-staging
Machine Architecture: armhf
Host Architecture: armhf
Build Architecture: armhf

I: NOTICE: Log filtering will replace 'build/minidlna-mCelA3/minidlna-1.0.24+dfsg' with '«PKGBUILDDIR»'
I: NOTICE: Log filtering will replace 'build/minidlna-mCelA3' with '«BUILDDIR»'
I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/jessie-staging-armhf-sbuild-d089a1b0-42dd-4e09-94d4-1dded263a970' with '«CHROOT»'

┌──────────────────────────────────────────────────────────────────────────────┐
│ Update chroot                                                                │
└──────────────────────────────────────────────────────────────────────────────┘

Get:1 http://172.17.0.1 jessie-staging InRelease [11.3 kB]
Get:2 http://172.17.0.1 jessie-staging/main Sources [6938 kB]
Get:3 http://172.17.0.1 jessie-staging/main armhf Packages [8056 kB]
Ign http://172.17.0.1 jessie-staging/main Translation-en
Fetched 15.0 MB in 43s (342 kB/s)
Reading package lists...

┌──────────────────────────────────────────────────────────────────────────────┐
│ Fetch source files                                                           │
└──────────────────────────────────────────────────────────────────────────────┘


Check APT
─────────

Checking available source versions...

Download source files with APT
──────────────────────────────

Reading package lists...
Building dependency tree...
Reading state information...
NOTICE: 'minidlna' packaging is maintained in the 'Git' version control system at:
git://gitorious.org/debian-pkg/minidlna.git
Need to get 213 kB of source archives.
Get:1 http://172.17.0.1/private/ jessie-staging/main minidlna 1.0.24+dfsg-1 (dsc) [2015 B]
Get:2 http://172.17.0.1/private/ jessie-staging/main minidlna 1.0.24+dfsg-1 (tar) [182 kB]
Get:3 http://172.17.0.1/private/ jessie-staging/main minidlna 1.0.24+dfsg-1 (diff) [28.8 kB]
Fetched 213 kB in 1s (186 kB/s)
Download complete and in download only mode

Check arch
──────────

Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/«BUILDDIR»/resolver-k86l8V/apt_archive/sbuild-build-depends-core-dummy.deb'.
OK
Reading package lists...

┌──────────────────────────────────────────────────────────────────────────────┐
│ Install core build dependencies (apt-based resolver)                         │
└──────────────────────────────────────────────────────────────────────────────┘

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  sbuild-build-depends-core-dummy
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 0 B/704 B of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package sbuild-build-depends-core-dummy.
(Reading database ... 12149 files and directories currently installed.)
Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ...
Setting up sbuild-build-depends-core-dummy (0.invalid.0) ...
Merged Build-Depends: base-files, base-passwd, bash, bsdutils, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit, sysvinit-utils, tar, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 9), libavcodec-dev, libavformat-dev, libavutil-dev, libexif-dev, libflac-dev, libid3tag0-dev, libjpeg-dev, libogg-dev, libsqlite3-dev, libvorbis-dev
Filtered Build-Depends: base-files, base-passwd, bash, bsdutils, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit, sysvinit-utils, tar, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 9), libavcodec-dev, libavformat-dev, libavutil-dev, libexif-dev, libflac-dev, libid3tag0-dev, libjpeg-dev, libogg-dev, libsqlite3-dev, libvorbis-dev
dpkg-deb: building package `sbuild-build-depends-minidlna-dummy' in `/«BUILDDIR»/resolver-W5iS6m/apt_archive/sbuild-build-depends-minidlna-dummy.deb'.
OK
Reading package lists...

┌──────────────────────────────────────────────────────────────────────────────┐
│ Install minidlna build dependencies (apt-based resolver)                     │
└──────────────────────────────────────────────────────────────────────────────┘

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  bsdmainutils debhelper file gettext gettext-base groff-base intltool-debian
  libasprintf0c2 libavcodec-dev libavcodec54 libavformat-dev libavformat54
  libavutil-dev libavutil52 libcroco3 libexif-dev libexif12 libffi6
  libflac-dev libflac8 libgcrypt11 libglib2.0-0 libgnutls26 libgpg-error0
  libgsm1 libid3tag0 libid3tag0-dev libjpeg8 libjpeg8-dev libjs-jquery
  libmagic1 libmp3lame0 libogg-dev libogg0 libopencore-amrnb0
  libopencore-amrwb0 libopenjpeg2 libopus0 liborc-0.4-0 libp11-kit0
  libpipeline1 libpopt0 librtmp0 libschroedinger-1.0-0 libspeex1 libsqlite3-0
  libsqlite3-dev libtasn1-3 libtheora0 libunistring0 libva1 libvo-aacenc0
  libvo-amrwbenc0 libvorbis-dev libvorbis0a libvorbisenc2 libvorbisfile3
  libvpx1 libx264-123 libxml2 libxvidcore4 man-db pkg-config po-debconf
  zlib1g-dev
Suggested packages:
  wamerican wordlist whois vacation dh-make gettext-doc groff libdc1394-22-dev
  libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev
  libx11-dev libxext-dev rng-tools opus-tools speex sqlite3-doc less
  www-browser libmail-box-perl
Recommended packages:
  curl wget lynx-cur autopoint libasprintf-dev libgettextpo-dev
  libglib2.0-data shared-mime-info javascript-common xml-core
  libmail-sendmail-perl
The following NEW packages will be installed:
  bsdmainutils debhelper file gettext gettext-base groff-base intltool-debian
  libasprintf0c2 libavcodec-dev libavcodec54 libavformat-dev libavformat54
  libavutil-dev libavutil52 libcroco3 libexif-dev libexif12 libffi6
  libflac-dev libflac8 libgcrypt11 libglib2.0-0 libgnutls26 libgpg-error0
  libgsm1 libid3tag0 libid3tag0-dev libjpeg8 libjpeg8-dev libjs-jquery
  libmagic1 libmp3lame0 libogg-dev libogg0 libopencore-amrnb0
  libopencore-amrwb0 libopenjpeg2 libopus0 liborc-0.4-0 libp11-kit0
  libpipeline1 libpopt0 librtmp0 libschroedinger-1.0-0 libspeex1 libsqlite3-0
  libsqlite3-dev libtasn1-3 libtheora0 libunistring0 libva1 libvo-aacenc0
  libvo-amrwbenc0 libvorbis-dev libvorbis0a libvorbisenc2 libvorbisfile3
  libvpx1 libx264-123 libxml2 libxvidcore4 man-db pkg-config po-debconf
  sbuild-build-depends-minidlna-dummy zlib1g-dev
0 upgraded, 66 newly installed, 0 to remove and 23 not upgraded.
Need to get 22.6 MB/22.6 MB of archives.
After this operation, 59.8 MB of additional disk space will be used.
Get:1 http://172.17.0.1/private/ jessie-staging/main libpipeline1 armhf 1.2.4-1 [36.9 kB]
Get:2 http://172.17.0.1/private/ jessie-staging/main libpopt0 armhf 1.16-7 [56.5 kB]
Get:3 http://172.17.0.1/private/ jessie-staging/main groff-base armhf 1.22.2-3 [666 kB]
Get:4 http://172.17.0.1/private/ jessie-staging/main bsdmainutils armhf 9.0.5 [206 kB]
Get:5 http://172.17.0.1/private/ jessie-staging/main man-db armhf 2.6.5-2 [949 kB]
Get:6 http://172.17.0.1/private/ jessie-staging/main libasprintf0c2 armhf 0.18.3.1-1 [29.4 kB]
Get:7 http://172.17.0.1/private/ jessie-staging/main libgpg-error0 armhf 1.12-0.2 [78.9 kB]
Get:8 http://172.17.0.1/private/ jessie-staging/main libgcrypt11 armhf 1.5.3-2 [296 kB]
Get:9 http://172.17.0.1/private/ jessie-staging/main libp11-kit0 armhf 0.18.5-3 [110 kB]
Get:10 http://172.17.0.1/private/ jessie-staging/main libtasn1-3 armhf 2.14-3 [64.1 kB]
Get:11 http://172.17.0.1/private/ jessie-staging/main libgnutls26 armhf 2.12.23-7 [596 kB]
Get:12 http://172.17.0.1/private/ jessie-staging/main libmagic1 armhf 1:5.14-2 [213 kB]
Get:13 http://172.17.0.1/private/ jessie-staging/main libsqlite3-0 armhf 3.8.0.2-1 [397 kB]
Get:14 http://172.17.0.1/private/ jessie-staging/main libxml2 armhf 2.9.1+dfsg1-3 [836 kB]
Get:15 http://172.17.0.1/private/ jessie-staging/main libavutil52 armhf 6:9.8-2+rpi1 [110 kB]
Get:16 http://172.17.0.1/private/ jessie-staging/main libgsm1 armhf 1.0.13-4 [30.9 kB]
Get:17 http://172.17.0.1/private/ jessie-staging/main libmp3lame0 armhf 3.99.5+repack1-3 [384 kB]
Get:18 http://172.17.0.1/private/ jessie-staging/main libopencore-amrnb0 armhf 0.1.3-2 [94.6 kB]
Get:19 http://172.17.0.1/private/ jessie-staging/main libopencore-amrwb0 armhf 0.1.3-2 [48.0 kB]
Get:20 http://172.17.0.1/private/ jessie-staging/main libopenjpeg2 armhf 1.3+dfsg-4.6 [75.9 kB]
Get:21 http://172.17.0.1/private/ jessie-staging/main libopus0 armhf 1.1~beta-3 [158 kB]
Get:22 http://172.17.0.1/private/ jessie-staging/main liborc-0.4-0 armhf 1:0.4.18-1 [172 kB]
Get:23 http://172.17.0.1/private/ jessie-staging/main libschroedinger-1.0-0 armhf 1.0.11-2 [299 kB]
Get:24 http://172.17.0.1/private/ jessie-staging/main libspeex1 armhf 1.2~rc1-7 [61.7 kB]
Get:25 http://172.17.0.1/private/ jessie-staging/main libogg0 armhf 1.3.1-1 [18.2 kB]
Get:26 http://172.17.0.1/private/ jessie-staging/main libtheora0 armhf 1.1.1+dfsg.1-3.1 [368 kB]
Get:27 http://172.17.0.1/private/ jessie-staging/main libva1 armhf 1.1.1-3 [37.1 kB]
Get:28 http://172.17.0.1/private/ jessie-staging/main libvo-aacenc0 armhf 0.1.3-1 [71.1 kB]
Get:29 http://172.17.0.1/private/ jessie-staging/main libvo-amrwbenc0 armhf 0.1.3-1 [67.3 kB]
Get:30 http://172.17.0.1/private/ jessie-staging/main libvorbis0a armhf 1.3.2-1.3 [102 kB]
Get:31 http://172.17.0.1/private/ jessie-staging/main libvorbisenc2 armhf 1.3.2-1.3 [120 kB]
Get:32 http://172.17.0.1/private/ jessie-staging/main libvpx1 armhf 1.2.0-2+rpi1 [209 kB]
Get:33 http://172.17.0.1/private/ jessie-staging/main libx264-123 armhf 2:0.123.2189+git35cf912-1+rpi1 [456 kB]
Get:34 http://172.17.0.1/private/ jessie-staging/main libxvidcore4 armhf 2:1.3.2-9 [311 kB]
Get:35 http://172.17.0.1/private/ jessie-staging/main libavcodec54 armhf 6:9.8-2+rpi1 [2293 kB]
Get:36 http://172.17.0.1/private/ jessie-staging/main librtmp0 armhf 2.4+20121230.gitdf6c518-1 [58.1 kB]
Get:37 http://172.17.0.1/private/ jessie-staging/main libavformat54 armhf 6:9.8-2+rpi1 [474 kB]
Get:38 http://172.17.0.1/private/ jessie-staging/main libffi6 armhf 3.0.13-4 [19.8 kB]
Get:39 http://172.17.0.1/private/ jessie-staging/main libglib2.0-0 armhf 2.36.4-1 [1907 kB]
Get:40 http://172.17.0.1/private/ jessie-staging/main libcroco3 armhf 0.6.8-2 [119 kB]
Get:41 http://172.17.0.1/private/ jessie-staging/main libexif12 armhf 0.6.21-1 [669 kB]
Get:42 http://172.17.0.1/private/ jessie-staging/main libflac8 armhf 1.3.0-2 [95.0 kB]
Get:43 http://172.17.0.1/private/ jessie-staging/main libjpeg8 armhf 8d-1 [132 kB]
Get:44 http://172.17.0.1/private/ jessie-staging/main libunistring0 armhf 0.9.3-5 [408 kB]
Get:45 http://172.17.0.1/private/ jessie-staging/main libvorbisfile3 armhf 1.3.2-1.3 [24.2 kB]
Get:46 http://172.17.0.1/private/ jessie-staging/main file armhf 1:5.14-2 [53.8 kB]
Get:47 http://172.17.0.1/private/ jessie-staging/main gettext-base armhf 0.18.3.1-1 [136 kB]
Get:48 http://172.17.0.1/private/ jessie-staging/main gettext armhf 0.18.3.1-1 [1837 kB]
Get:49 http://172.17.0.1/private/ jessie-staging/main intltool-debian all 0.35.0+20060710.1 [29.8 kB]
Get:50 http://172.17.0.1/private/ jessie-staging/main po-debconf all 1.0.16+nmu2 [223 kB]
Get:51 http://172.17.0.1/private/ jessie-staging/main debhelper all 9.20130921 [688 kB]
Get:52 http://172.17.0.1/private/ jessie-staging/main libavutil-dev armhf 6:9.8-2+rpi1 [150 kB]
Get:53 http://172.17.0.1/private/ jessie-staging/main libavcodec-dev armhf 6:9.8-2+rpi1 [2539 kB]
Get:54 http://172.17.0.1/private/ jessie-staging/main libavformat-dev armhf 6:9.8-2+rpi1 [568 kB]
Get:55 http://172.17.0.1/private/ jessie-staging/main libjs-jquery all 1.7.2+dfsg-3 [96.9 kB]
Get:56 http://172.17.0.1/private/ jessie-staging/main libexif-dev armhf 0.6.21-1 [401 kB]
Get:57 http://172.17.0.1/private/ jessie-staging/main libogg-dev armhf 1.3.1-1 [209 kB]
Get:58 http://172.17.0.1/private/ jessie-staging/main libflac-dev armhf 1.3.0-2 [166 kB]
Get:59 http://172.17.0.1/private/ jessie-staging/main libid3tag0 armhf 0.15.1b-10 [34.6 kB]
Get:60 http://172.17.0.1/private/ jessie-staging/main pkg-config armhf 0.26-1 [56.9 kB]
Get:61 http://172.17.0.1/private/ jessie-staging/main zlib1g-dev armhf 1:1.2.8.dfsg-1 [212 kB]
Get:62 http://172.17.0.1/private/ jessie-staging/main libid3tag0-dev armhf 0.15.1b-10 [42.1 kB]
Get:63 http://172.17.0.1/private/ jessie-staging/main libjpeg8-dev armhf 8d-1 [238 kB]
Get:64 http://172.17.0.1/private/ jessie-staging/main libsqlite3-dev armhf 3.8.0.2-1 [512 kB]
Get:65 http://172.17.0.1/private/ jessie-staging/main libvorbis-dev armhf 1.3.2-1.3 [455 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 22.6 MB in 32s (701 kB/s)
Selecting previously unselected package libpipeline1:armhf.
(Reading database ... 12149 files and directories currently installed.)
Unpacking libpipeline1:armhf (from .../libpipeline1_1.2.4-1_armhf.deb) ...
Selecting previously unselected package libpopt0:armhf.
Unpacking libpopt0:armhf (from .../libpopt0_1.16-7_armhf.deb) ...
Selecting previously unselected package groff-base.
Unpacking groff-base (from .../groff-base_1.22.2-3_armhf.deb) ...
Selecting previously unselected package bsdmainutils.
Unpacking bsdmainutils (from .../bsdmainutils_9.0.5_armhf.deb) ...
Selecting previously unselected package man-db.
Unpacking man-db (from .../man-db_2.6.5-2_armhf.deb) ...
Selecting previously unselected package libasprintf0c2:armhf.
Unpacking libasprintf0c2:armhf (from .../libasprintf0c2_0.18.3.1-1_armhf.deb) ...
Selecting previously unselected package libgpg-error0:armhf.
Unpacking libgpg-error0:armhf (from .../libgpg-error0_1.12-0.2_armhf.deb) ...
Selecting previously unselected package libgcrypt11:armhf.
Unpacking libgcrypt11:armhf (from .../libgcrypt11_1.5.3-2_armhf.deb) ...
Selecting previously unselected package libp11-kit0:armhf.
Unpacking libp11-kit0:armhf (from .../libp11-kit0_0.18.5-3_armhf.deb) ...
Selecting previously unselected package libtasn1-3:armhf.
Unpacking libtasn1-3:armhf (from .../libtasn1-3_2.14-3_armhf.deb) ...
Selecting previously unselected package libgnutls26:armhf.
Unpacking libgnutls26:armhf (from .../libgnutls26_2.12.23-7_armhf.deb) ...
Selecting previously unselected package libmagic1:armhf.
Unpacking libmagic1:armhf (from .../libmagic1_1%3a5.14-2_armhf.deb) ...
Selecting previously unselected package libsqlite3-0:armhf.
Unpacking libsqlite3-0:armhf (from .../libsqlite3-0_3.8.0.2-1_armhf.deb) ...
Selecting previously unselected package libxml2:armhf.
Unpacking libxml2:armhf (from .../libxml2_2.9.1+dfsg1-3_armhf.deb) ...
Selecting previously unselected package libavutil52:armhf.
Unpacking libavutil52:armhf (from .../libavutil52_6%3a9.8-2+rpi1_armhf.deb) ...
Selecting previously unselected package libgsm1:armhf.
Unpacking libgsm1:armhf (from .../libgsm1_1.0.13-4_armhf.deb) ...
Selecting previously unselected package libmp3lame0:armhf.
Unpacking libmp3lame0:armhf (from .../libmp3lame0_3.99.5+repack1-3_armhf.deb) ...
Selecting previously unselected package libopencore-amrnb0:armhf.
Unpacking libopencore-amrnb0:armhf (from .../libopencore-amrnb0_0.1.3-2_armhf.deb) ...
Selecting previously unselected package libopencore-amrwb0:armhf.
Unpacking libopencore-amrwb0:armhf (from .../libopencore-amrwb0_0.1.3-2_armhf.deb) ...
Selecting previously unselected package libopenjpeg2:armhf.
Unpacking libopenjpeg2:armhf (from .../libopenjpeg2_1.3+dfsg-4.6_armhf.deb) ...
Selecting previously unselected package libopus0.
Unpacking libopus0 (from .../libopus0_1.1~beta-3_armhf.deb) ...
Selecting previously unselected package liborc-0.4-0:armhf.
Unpacking liborc-0.4-0:armhf (from .../liborc-0.4-0_1%3a0.4.18-1_armhf.deb) ...
Selecting previously unselected package libschroedinger-1.0-0:armhf.
Unpacking libschroedinger-1.0-0:armhf (from .../libschroedinger-1.0-0_1.0.11-2_armhf.deb) ...
Selecting previously unselected package libspeex1:armhf.
Unpacking libspeex1:armhf (from .../libspeex1_1.2~rc1-7_armhf.deb) ...
Selecting previously unselected package libogg0:armhf.
Unpacking libogg0:armhf (from .../libogg0_1.3.1-1_armhf.deb) ...
Selecting previously unselected package libtheora0:armhf.
Unpacking libtheora0:armhf (from .../libtheora0_1.1.1+dfsg.1-3.1_armhf.deb) ...
Selecting previously unselected package libva1:armhf.
Unpacking libva1:armhf (from .../libva1_1.1.1-3_armhf.deb) ...
Selecting previously unselected package libvo-aacenc0:armhf.
Unpacking libvo-aacenc0:armhf (from .../libvo-aacenc0_0.1.3-1_armhf.deb) ...
Selecting previously unselected package libvo-amrwbenc0:armhf.
Unpacking libvo-amrwbenc0:armhf (from .../libvo-amrwbenc0_0.1.3-1_armhf.deb) ...
Selecting previously unselected package libvorbis0a:armhf.
Unpacking libvorbis0a:armhf (from .../libvorbis0a_1.3.2-1.3_armhf.deb) ...
Selecting previously unselected package libvorbisenc2:armhf.
Unpacking libvorbisenc2:armhf (from .../libvorbisenc2_1.3.2-1.3_armhf.deb) ...
Selecting previously unselected package libvpx1:armhf.
Unpacking libvpx1:armhf (from .../libvpx1_1.2.0-2+rpi1_armhf.deb) ...
Selecting previously unselected package libx264-123:armhf.
Unpacking libx264-123:armhf (from .../libx264-123_2%3a0.123.2189+git35cf912-1+rpi1_armhf.deb) ...
Selecting previously unselected package libxvidcore4:armhf.
Unpacking libxvidcore4:armhf (from .../libxvidcore4_2%3a1.3.2-9_armhf.deb) ...
Selecting previously unselected package libavcodec54:armhf.
Unpacking libavcodec54:armhf (from .../libavcodec54_6%3a9.8-2+rpi1_armhf.deb) ...
Selecting previously unselected package librtmp0:armhf.
Unpacking librtmp0:armhf (from .../librtmp0_2.4+20121230.gitdf6c518-1_armhf.deb) ...
Selecting previously unselected package libavformat54:armhf.
Unpacking libavformat54:armhf (from .../libavformat54_6%3a9.8-2+rpi1_armhf.deb) ...
Selecting previously unselected package libffi6:armhf.
Unpacking libffi6:armhf (from .../libffi6_3.0.13-4_armhf.deb) ...
Selecting previously unselected package libglib2.0-0:armhf.
Unpacking libglib2.0-0:armhf (from .../libglib2.0-0_2.36.4-1_armhf.deb) ...
Selecting previously unselected package libcroco3:armhf.
Unpacking libcroco3:armhf (from .../libcroco3_0.6.8-2_armhf.deb) ...
Selecting previously unselected package libexif12:armhf.
Unpacking libexif12:armhf (from .../libexif12_0.6.21-1_armhf.deb) ...
Selecting previously unselected package libflac8:armhf.
Unpacking libflac8:armhf (from .../libflac8_1.3.0-2_armhf.deb) ...
Selecting previously unselected package libjpeg8:armhf.
Unpacking libjpeg8:armhf (from .../libjpeg8_8d-1_armhf.deb) ...
Selecting previously unselected package libunistring0:armhf.
Unpacking libunistring0:armhf (from .../libunistring0_0.9.3-5_armhf.deb) ...
Selecting previously unselected package libvorbisfile3:armhf.
Unpacking libvorbisfile3:armhf (from .../libvorbisfile3_1.3.2-1.3_armhf.deb) ...
Selecting previously unselected package file.
Unpacking file (from .../file_1%3a5.14-2_armhf.deb) ...
Selecting previously unselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.18.3.1-1_armhf.deb) ...
Selecting previously unselected package gettext.
Unpacking gettext (from .../gettext_0.18.3.1-1_armhf.deb) ...
Selecting previously unselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ...
Selecting previously unselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ...
Selecting previously unselected package debhelper.
Unpacking debhelper (from .../debhelper_9.20130921_all.deb) ...
Selecting previously unselected package libavutil-dev.
Unpacking libavutil-dev (from .../libavutil-dev_6%3a9.8-2+rpi1_armhf.deb) ...
Selecting previously unselected package libavcodec-dev.
Unpacking libavcodec-dev (from .../libavcodec-dev_6%3a9.8-2+rpi1_armhf.deb) ...
Selecting previously unselected package libavformat-dev.
Unpacking libavformat-dev (from .../libavformat-dev_6%3a9.8-2+rpi1_armhf.deb) ...
Selecting previously unselected package libjs-jquery.
Unpacking libjs-jquery (from .../libjs-jquery_1.7.2+dfsg-3_all.deb) ...
Selecting previously unselected package libexif-dev.
Unpacking libexif-dev (from .../libexif-dev_0.6.21-1_armhf.deb) ...
Selecting previously unselected package libogg-dev:armhf.
Unpacking libogg-dev:armhf (from .../libogg-dev_1.3.1-1_armhf.deb) ...
Selecting previously unselected package libflac-dev:armhf.
Unpacking libflac-dev:armhf (from .../libflac-dev_1.3.0-2_armhf.deb) ...
Selecting previously unselected package libid3tag0.
Unpacking libid3tag0 (from .../libid3tag0_0.15.1b-10_armhf.deb) ...
Selecting previously unselected package pkg-config.
Unpacking pkg-config (from .../pkg-config_0.26-1_armhf.deb) ...
Selecting previously unselected package zlib1g-dev:armhf.
Unpacking zlib1g-dev:armhf (from .../zlib1g-dev_1%3a1.2.8.dfsg-1_armhf.deb) ...
Selecting previously unselected package libid3tag0-dev.
Unpacking libid3tag0-dev (from .../libid3tag0-dev_0.15.1b-10_armhf.deb) ...
Selecting previously unselected package libjpeg8-dev:armhf.
Unpacking libjpeg8-dev:armhf (from .../libjpeg8-dev_8d-1_armhf.deb) ...
Selecting previously unselected package libsqlite3-dev:armhf.
Unpacking libsqlite3-dev:armhf (from .../libsqlite3-dev_3.8.0.2-1_armhf.deb) ...
Selecting previously unselected package libvorbis-dev:armhf.
Unpacking libvorbis-dev:armhf (from .../libvorbis-dev_1.3.2-1.3_armhf.deb) ...
Selecting previously unselected package sbuild-build-depends-minidlna-dummy.
Unpacking sbuild-build-depends-minidlna-dummy (from .../sbuild-build-depends-minidlna-dummy.deb) ...
Setting up libpipeline1:armhf (1.2.4-1) ...
Setting up libpopt0:armhf (1.16-7) ...
Setting up groff-base (1.22.2-3) ...
Setting up bsdmainutils (9.0.5) ...
update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode
update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode
Setting up man-db (2.6.5-2) ...
Not building database; man-db/auto-update is not 'true'.
Setting up libasprintf0c2:armhf (0.18.3.1-1) ...
Setting up libgpg-error0:armhf (1.12-0.2) ...
Setting up libgcrypt11:armhf (1.5.3-2) ...
Setting up libp11-kit0:armhf (0.18.5-3) ...
Setting up libtasn1-3:armhf (2.14-3) ...
Setting up libgnutls26:armhf (2.12.23-7) ...
Setting up libmagic1:armhf (1:5.14-2) ...
Setting up libsqlite3-0:armhf (3.8.0.2-1) ...
Setting up libxml2:armhf (2.9.1+dfsg1-3) ...
Setting up libavutil52:armhf (6:9.8-2+rpi1) ...
Setting up libgsm1:armhf (1.0.13-4) ...
Setting up libmp3lame0:armhf (3.99.5+repack1-3) ...
Setting up libopencore-amrnb0:armhf (0.1.3-2) ...
Setting up libopencore-amrwb0:armhf (0.1.3-2) ...
Setting up libopenjpeg2:armhf (1.3+dfsg-4.6) ...
Setting up libopus0 (1.1~beta-3) ...
Setting up liborc-0.4-0:armhf (1:0.4.18-1) ...
Setting up libschroedinger-1.0-0:armhf (1.0.11-2) ...
Setting up libspeex1:armhf (1.2~rc1-7) ...
Setting up libogg0:armhf (1.3.1-1) ...
Setting up libtheora0:armhf (1.1.1+dfsg.1-3.1) ...
Setting up libva1:armhf (1.1.1-3) ...
Setting up libvo-aacenc0:armhf (0.1.3-1) ...
Setting up libvo-amrwbenc0:armhf (0.1.3-1) ...
Setting up libvorbis0a:armhf (1.3.2-1.3) ...
Setting up libvorbisenc2:armhf (1.3.2-1.3) ...
Setting up libvpx1:armhf (1.2.0-2+rpi1) ...
Setting up libx264-123:armhf (2:0.123.2189+git35cf912-1+rpi1) ...
Setting up libxvidcore4:armhf (2:1.3.2-9) ...
Setting up libavcodec54:armhf (6:9.8-2+rpi1) ...
Setting up librtmp0:armhf (2.4+20121230.gitdf6c518-1) ...
Setting up libavformat54:armhf (6:9.8-2+rpi1) ...
Setting up libffi6:armhf (3.0.13-4) ...
Setting up libglib2.0-0:armhf (2.36.4-1) ...
No schema files found: doing nothing.
Setting up libcroco3:armhf (0.6.8-2) ...
Setting up libexif12:armhf (0.6.21-1) ...
Setting up libflac8:armhf (1.3.0-2) ...
Setting up libjpeg8:armhf (8d-1) ...
Setting up libunistring0:armhf (0.9.3-5) ...
Setting up libvorbisfile3:armhf (1.3.2-1.3) ...
Setting up file (1:5.14-2) ...
Setting up gettext-base (0.18.3.1-1) ...
Setting up gettext (0.18.3.1-1) ...
Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.16+nmu2) ...
Setting up debhelper (9.20130921) ...
Setting up libavutil-dev (6:9.8-2+rpi1) ...
Setting up libavcodec-dev (6:9.8-2+rpi1) ...
Setting up libavformat-dev (6:9.8-2+rpi1) ...
Setting up libjs-jquery (1.7.2+dfsg-3) ...
Setting up libexif-dev (0.6.21-1) ...
Setting up libogg-dev:armhf (1.3.1-1) ...
Setting up libflac-dev:armhf (1.3.0-2) ...
Setting up libid3tag0 (0.15.1b-10) ...
Setting up pkg-config (0.26-1) ...
Setting up zlib1g-dev:armhf (1:1.2.8.dfsg-1) ...
Setting up libid3tag0-dev (0.15.1b-10) ...
Setting up libjpeg8-dev:armhf (8d-1) ...
Setting up libsqlite3-dev:armhf (3.8.0.2-1) ...
Setting up libvorbis-dev:armhf (1.3.2-1.3) ...
Setting up sbuild-build-depends-minidlna-dummy (0.invalid.0) ...
Processing triggers for libc-bin ...

┌──────────────────────────────────────────────────────────────────────────────┐
│ Build environment                                                            │
└──────────────────────────────────────────────────────────────────────────────┘

Kernel: Linux 3.11.0-armv7-x13 armhf (armv7l)
Toolchain package versions: binutils_2.23.52.20130828-1 dpkg-dev_1.16.10 g++-4.6_4.6.4-4+rpi1 g++-4.8_4.8.1-6+rpi1 gcc-4.6_4.6.4-4+rpi1 gcc-4.8_4.8.1-6+rpi1 libc6-dev_2.17-92+rpi1 libstdc++-4.8-dev_4.8.1-6+rpi1 libstdc++6_4.8.1-6+rpi1 libstdc++6-4.6-dev_4.6.4-4+rpi1 linux-libc-dev_3.10.1-1+rpi1+b2
Package versions: apt_0.9.11.4+rpi1 base-files_7.2+rpi1 base-passwd_3.5.28 bash_4.2+dfsg-1 binutils_2.23.52.20130828-1 bsdmainutils_9.0.5 bsdutils_1:2.20.1-5.5 build-essential_11.6 bzip2_1.0.6-5 coreutils_8.21-1 cpio_2.11+dfsg-1 cpp_4:4.8.1-3 cpp-4.6_4.6.4-4+rpi1 cpp-4.8_4.8.1-6+rpi1 dash_0.5.7-3 debconf_1.5.51 debfoster_2.7-1.2 debhelper_9.20130921 debianutils_4.4 diffutils_1:3.3-1 dpkg_1.16.10 dpkg-dev_1.16.10 e2fslibs_1.42.8-1 e2fsprogs_1.42.8-1 fakeroot_1.18.4-2 file_1:5.14-2 findutils_4.4.2-6 g++_4:4.8.1-3 g++-4.6_4.6.4-4+rpi1 g++-4.8_4.8.1-6+rpi1 gcc_4:4.8.1-3 gcc-4.5-base_4.5.3-12+rpi1 gcc-4.6_4.6.4-4+rpi1 gcc-4.6-base_4.6.4-4+rpi1 gcc-4.7-base_4.7.3-4+rpi1 gcc-4.8_4.8.1-6+rpi1 gcc-4.8-base_4.8.1-6+rpi1 gettext_0.18.3.1-1 gettext-base_0.18.3.1-1 gnupg_1.4.14-1 gpgv_1.4.14-1 grep_2.14-3 groff-base_1.22.2-3 gzip_1.6-2 hostname_3.14 initramfs-tools_0.113 initscripts_2.88dsf-43 insserv_1.14.0-5 intltool-debian_0.35.0+20060710.1 klibc-utils_2.0.1-3.1+rpi1 kmod_9-3 libacl1_2.2.52-1 libapt-pkg4.12_0.9.11.4+rpi1 libarchive-extract-perl_0.68-1 libasan0_4.8.1-6+rpi1 libasprintf0c2_0.18.3.1-1 libatomic1_4.8.1-6+rpi1 libattr1_1:2.4.47-1 libavcodec-dev_6:9.8-2+rpi1 libavcodec54_6:9.8-2+rpi1 libavformat-dev_6:9.8-2+rpi1 libavformat54_6:9.8-2+rpi1 libavutil-dev_6:9.8-2+rpi1 libavutil52_6:9.8-2+rpi1 libblkid1_2.20.1-5.5 libbz2-1.0_1.0.6-5 libc-bin_2.17-92+rpi1 libc-dev-bin_2.17-92+rpi1 libc6_2.17-92+rpi1 libc6-dev_2.17-92+rpi1 libcap2_1:2.22-1.2 libclass-isa-perl_0.36-5 libcloog-isl4_0.18.0-2 libcomerr2_1.42.8-1 libcroco3_0.6.8-2 libdb5.1_5.1.29-6 libdbus-1-3_1.6.14-1 libdpkg-perl_1.16.10 libexif-dev_0.6.21-1 libexif12_0.6.21-1 libffi6_3.0.13-4 libflac-dev_1.3.0-2 libflac8_1.3.0-2 libgc1c2_1:7.2d-5 libgcc-4.8-dev_4.8.1-6+rpi1 libgcc1_1:4.8.1-6+rpi1 libgcrypt11_1.5.3-2 libgdbm3_1.8.3-12 libglib2.0-0_2.36.4-1 libgmp10_2:5.1.2+dfsg-3 libgnutls26_2.12.23-7 libgomp1_4.8.1-6+rpi1 libgpg-error0_1.12-0.2 libgsm1_1.0.13-4 libid3tag0_0.15.1b-10 libid3tag0-dev_0.15.1b-10 libisl10_0.11.2-1 libjpeg8_8d-1 libjpeg8-dev_8d-1 libjs-jquery_1.7.2+dfsg-3 libklibc_2.0.1-3.1+rpi1 libkmod2_9-3 liblzma5_5.1.1alpha+20120614-2 libmagic1_1:5.14-2 libmodule-pluggable-perl_4.8-1 libmount1_2.20.1-5.5 libmp3lame0_3.99.5+repack1-3 libmpc3_1.0.1-1 libmpfr4_3.1.1-2 libncurses5_5.9+20130608-1 libncursesw5_5.9+20130608-1 libnih-dbus1_1.0.3-4.1+b1 libnih1_1.0.3-4.1+b1 libogg-dev_1.3.1-1 libogg0_1.3.1-1 libopencore-amrnb0_0.1.3-2 libopencore-amrwb0_0.1.3-2 libopenjpeg2_1.3+dfsg-4.6 libopus0_1.1~beta-3 liborc-0.4-0_1:0.4.18-1 libp11-kit0_0.18.5-3 libpam-modules_1.1.3-9 libpam-modules-bin_1.1.3-9 libpam-runtime_1.1.3-9 libpam0g_1.1.3-9 libpcre3_1:8.31-2 libpipeline1_1.2.4-1 libpod-latex-perl_0.61-1 libpopt0_1.16-7 libprocps0_1:3.3.4-2 libreadline6_6.2+dfsg-0.1 librtmp0_2.4+20121230.gitdf6c518-1 libschroedinger-1.0-0_1.0.11-2 libselinux1_2.1.13-2 libsemanage-common_2.1.10-2 libsemanage1_2.1.10-2 libsepol1_2.1.9-2 libslang2_2.2.4-15 libspeex1_1.2~rc1-7 libsqlite3-0_3.8.0.2-1 libsqlite3-dev_3.8.0.2-1 libss2_1.42.8-1 libstdc++-4.8-dev_4.8.1-6+rpi1 libstdc++6_4.8.1-6+rpi1 libstdc++6-4.6-dev_4.6.4-4+rpi1 libswitch-perl_2.16-2 libtasn1-3_2.14-3 libterm-ui-perl_0.36-1 libtheora0_1.1.1+dfsg.1-3.1 libtimedate-perl_1.2000-1 libtinfo5_5.9+20130608-1 libudev0_175-7.2 libudev1_204-5 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-23.2 libustr-1.0-1_1.0.4-3 libuuid1_2.20.1-5.5 libva1_1.1.1-3 libvo-aacenc0_0.1.3-1 libvo-amrwbenc0_0.1.3-1 libvorbis-dev_1.3.2-1.3 libvorbis0a_1.3.2-1.3 libvorbisenc2_1.3.2-1.3 libvorbisfile3_1.3.2-1.3 libvpx1_1.2.0-2+rpi1 libx264-123_2:0.123.2189+git35cf912-1+rpi1 libxml2_2.9.1+dfsg1-3 libxvidcore4_2:1.3.2-9 linux-libc-dev_3.10.1-1+rpi1+b2 login_1:4.1.5.1-1 lsb-base_4.1+Debian8+rpi1 make_3.81-8.2 makedev_2.3.1-93 man-db_2.6.5-2 mawk_1.3.3-17 mount_2.20.1-5.5 mountall_2.51 multiarch-support_2.17-92+rpi1 ncurses-base_5.9+20130608-1 ncurses-bin_5.9+20130608-1 passwd_1:4.1.5.1-1 patch_2.7.1-3 perl_5.18.1-4 perl-base_5.18.1-4 perl-modules_5.18.1-4 pkg-config_0.26-1 plymouth_0.8.8-6+deb8u1 po-debconf_1.0.16+nmu2 procps_1:3.3.4-2 raspbian-archive-keyring_20120528.2 readline-common_6.2+dfsg-0.1 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-minidlna-dummy_0.invalid.0 sed_4.2.2-2 sensible-utils_0.0.9 sysv-rc_2.88dsf-43 sysvinit_2.88dsf-43 sysvinit-utils_2.88dsf-43 tar_1.26+dfsg-8 tzdata_2013d-1 udev_204-5 util-linux_2.20.1-5.5 xz-utils_5.1.1alpha+20120614-2 zlib1g_1:1.2.8.dfsg-1 zlib1g-dev_1:1.2.8.dfsg-1

┌──────────────────────────────────────────────────────────────────────────────┐
│ Build                                                                        │
└──────────────────────────────────────────────────────────────────────────────┘


Unpack source
─────────────

gpgv: keyblock resource `/sbuild-nonexistent/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made Thu Mar  1 18:46:19 2012 UTC using RSA key ID DD347DC8
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./minidlna_1.0.24+dfsg-1.dsc
dpkg-source: info: extracting minidlna in minidlna-1.0.24+dfsg
dpkg-source: info: unpacking minidlna_1.0.24+dfsg.orig.tar.gz
dpkg-source: info: unpacking minidlna_1.0.24+dfsg-1.debian.tar.gz
dpkg-source: info: applying 0001-Install-minidlna-in-usr-bin-and-the-DB-file-in-var-l.patch
dpkg-source: info: applying 0002-Add-a-separate-option-log_dir-for-the-log-directory.patch
dpkg-source: info: applying 0003-Add-required-dependencies-to-INSTALL.patch
dpkg-source: info: applying 0004-Recognize-WebM-in-Matroska-container.patch
dpkg-source: info: applying 0005-Fix-FTBFS-by-linking-to-libogg-closes-618067.patch
dpkg-source: info: applying 0006-Identify-Matroska-regardless-of-its-content.patch
dpkg-source: info: applying 0007-Don-t-let-genconfig.sh-fail-on-kFreeBSD-and-Hurd.patch
dpkg-source: info: applying 0008-Remove-FreeBSD-version-test-in-genconfig.sh.patch
dpkg-source: info: applying 0009-Include-linux-limits.h-on-Linux-only.patch
dpkg-source: info: applying 0010-Make-inotify-support-optional.patch
dpkg-source: info: applying 0011-Compile-inotify-support-on-Linux-only.patch
dpkg-source: info: applying 0012-Use-SYS_clock_gettime-instead-of-__NR_clock_gettime.patch
dpkg-source: info: applying 0013-Define-MSG_MORE-if-it-doesn-t-exist.patch
dpkg-source: info: applying 0014-Get-IP-and-MAC-addresses-in-a-non-Linux-specific-way.patch
dpkg-source: info: applying 0015-Do-not-use-sendfile-if-it-s-not-implemented.patch
dpkg-source: info: applying 0016-Do-not-let-make_dir-fail-on-EISDIR.patch
dpkg-source: info: applying 0017-Link-to-libavutil.patch
dpkg-source: info: applying 0018-Add-a-comment-about-listening_ip-in-minidlna.conf.patch
dpkg-source: info: applying 0019-Improve-the-default-configuration-file.patch
dpkg-source: info: applying 0020-Update-the-default-configuration-file.patch
dpkg-source: info: applying 0021-Use-run-instead-of-var-run-to-store-runtime-files.patch

Check disc space
────────────────

Sufficient free space for build

Hack binNMU version
───────────────────

Created changelog entry for binNMU version 1.0.24+dfsg-1+b1

User Environment
────────────────

APT_CONFIG=/var/lib/sbuild/apt.conf
DEB_BUILD_OPTIONS=parallel=4
HOME=/sbuild-nonexistent
LANG=en_GB.UTF-8
LC_ALL=POSIX
LOGNAME=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/root
SCHROOT_ALIAS_NAME=jessie-staging-armhf-sbuild
SCHROOT_CHROOT_NAME=jessie-staging-armhf-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=109
SCHROOT_GROUP=buildd
SCHROOT_SESSION_ID=jessie-staging-armhf-sbuild-d089a1b0-42dd-4e09-94d4-1dded263a970
SCHROOT_UID=104
SCHROOT_USER=buildd
SHELL=/bin/sh
SHLVL=1
SSH_CLIENT=192.168.1.2 56144 22
SSH_CONNECTION=192.168.1.2 56144 192.168.1.46 22
SSH_TTY=/dev/pts/0
TERM=xterm
USER=root
_=/etc/init.d/buildd

dpkg-buildpackage
─────────────────

dpkg-buildpackage: source package minidlna
dpkg-buildpackage: source version 1.0.24+dfsg-1+b1
 dpkg-source --before-build minidlna-1.0.24+dfsg
dpkg-buildpackage: host architecture armhf
 fakeroot debian/rules clean
dh clean 
   dh_testdir
   dh_auto_clean
make[1]: Entering directory `/«BUILDDIR»/minidlna-1.0.24+dfsg'
rm -f minidlna.o upnphttp.o upnpdescgen.o upnpsoap.o upnpreplyparse.o minixml.o getifaddr.o daemonize.o upnpglobalvars.o options.o minissdp.o uuid.o upnpevents.o sql.o utils.o metadata.o scanner.o tivo_utils.o tivo_beacon.o tivo_commands.o tagutils/textutils.o tagutils/misc.o tagutils/tagutils.o playlist.o image_utils.o albumart.o log.o inotify.o 
rm -f minidlna testupnpdescgen
rm -f testupnpdescgen.o
rm -f config.h
make[1]: Leaving directory `/«BUILDDIR»/minidlna-1.0.24+dfsg'
   dh_clean
 debian/rules build-arch
dh build-arch 
   dh_testdir -a
   dh_auto_configure -a
   dh_auto_build -a
make[1]: Entering directory `/«BUILDDIR»/minidlna-1.0.24+dfsg'
./genconfig.sh
Compiling minidlna.c
In file included from /usr/include/fcntl.h:68:0,
                 from minidlna.c:58:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnpglobalvars.h:54:0,
                 from minidlna.c:74:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from minidlna.c:74:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
minidlna.c: In function 'set_startup_time':
minidlna.c:165:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
  startup_time = time(NULL);
  ^
minidlna.c: In function 'main':
minidlna.c:866:2: error: unknown type name 'time_t'
  time_t lastupdatetime = 0;
  ^
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 minidlna.o -c minidlna.c
Compiling upnphttp.c
In file included from /usr/include/fcntl.h:68:0,
                 from minidlna.c:58:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from upnphttp.c:58:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnphttp.c:58:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from minidlna.c:74:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from minidlna.c:74:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from upnphttp.h:55:0,
                 from upnphttp.c:67:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
minidlna.c: In function 'set_startup_time':
minidlna.c:165:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
  startup_time = time(NULL);
  ^
In file included from upnphttp.c:72:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnphttp.c: In function 'SearchClientCache':
upnphttp.c:142:4: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
    if( (time(NULL) - clients[i].age) > 3600 )
    ^
minidlna.c: In function 'main':
minidlna.c:866:2: error: unknown type name 'time_t'
  time_t lastupdatetime = 0;
  ^
upnphttp.c: In function 'BuildHeader_upnphttp':
upnphttp.c:1129:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1168:2: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1168:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
upnphttp.c:1168:2: warning: implicit declaration of function 'gmtime' [-Wimplicit-function-declaration]
upnphttp.c:1168:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1168:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_icon':
upnphttp.c:1310:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1347:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1347:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1347:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_albumArt':
upnphttp.c:1371:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1407:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1407:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1407:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_caption':
upnphttp.c:1435:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1460:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1460:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1460:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_thumbnail':
upnphttp.c:1485:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1527:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1527:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1527:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_resizedimg':
upnphttp.c:1559:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1696:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1696:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1696:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_dlnafile':
upnphttp.c:1786:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1985:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1985:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1985:2: note: expected 'const void *' but argument is of type 'int'
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 upnphttp.o -c upnphttp.c
Compiling upnpdescgen.c
In file included from upnpglobalvars.h:54:0,
                 from upnpdescgen.c:37:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnpdescgen.c:37:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from upnphttp.c:58:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnphttp.c:58:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnphttp.h:55:0,
                 from upnphttp.c:67:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
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 upnpdescgen.o -c upnpdescgen.c
Compiling upnpsoap.c
In file included from upnphttp.c:72:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnphttp.c: In function 'SearchClientCache':
upnphttp.c:142:4: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
    if( (time(NULL) - clients[i].age) > 3600 )
    ^
In file included from upnpglobalvars.h:54:0,
                 from upnpdescgen.c:37:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
upnphttp.c: In function 'BuildHeader_upnphttp':
upnphttp.c:1129:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1168:2: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1168:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
upnphttp.c:1168:2: warning: implicit declaration of function 'gmtime' [-Wimplicit-function-declaration]
upnphttp.c:1168:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1168:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_icon':
upnphttp.c:1310:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
In file included from upnpdescgen.c:37:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnphttp.c:1347:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1347:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1347:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_albumArt':
upnphttp.c:1371:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1407:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1407:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1407:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_caption':
upnphttp.c:1435:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1460:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1460:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1460:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_thumbnail':
upnphttp.c:1485:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1527:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1527:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1527:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_resizedimg':
upnphttp.c:1559:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
upnphttp.c:1696:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1696:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1696:2: note: expected 'const void *' but argument is of type 'int'
upnphttp.c: In function 'SendResp_dlnafile':
upnphttp.c:1786:2: error: unknown type name 'time_t'
  time_t curtime = time(NULL);
  ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from upnpsoap.c:55:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnpsoap.c:55:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
upnphttp.c:1985:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
  strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
  ^
upnphttp.c:1985:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
upnphttp.c:1985:2: note: expected 'const void *' but argument is of type 'int'
In file included from upnpglobalvars.h:54:0,
                 from upnpsoap.c:63:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnpsoap.c:63:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
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 upnpsoap.o -c upnpsoap.c
Compiling upnpreplyparse.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from upnpsoap.c:55:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnpsoap.c:55:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from upnpsoap.c:63:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnpsoap.c:63:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
Compiling minixml.c
Compiling getifaddr.c
Compiling daemonize.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from daemonize.c:30:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from daemonize.c:30:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
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 daemonize.o -c daemonize.c
Compiling upnpglobalvars.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from daemonize.c:30:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from daemonize.c:30:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from upnpglobalvars.c:58:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnpglobalvars.c:58:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnpglobalvars.c:65:1: error: unknown type name 'time_t'
 time_t startup_time = 0;
 ^
upnpglobalvars.c:99:35: error: 'NULL' undeclared here (not in a function)
 struct media_dir_s * media_dirs = NULL;
                                   ^
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 upnpglobalvars.o -c upnpglobalvars.c
Compiling options.c
In file included from upnpglobalvars.h:54:0,
                 from upnpglobalvars.c:58:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnpglobalvars.c:58:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnpglobalvars.c:65:1: error: unknown type name 'time_t'
 time_t startup_time = 0;
 ^
upnpglobalvars.c:99:35: error: 'NULL' undeclared here (not in a function)
 struct media_dir_s * media_dirs = NULL;
                                   ^
In file included from upnpglobalvars.h:54:0,
                 from options.c:35:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from options.c:35:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
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 options.o -c options.c
Compiling minissdp.c
In file included from upnpglobalvars.h:54:0,
                 from options.c:35:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnphttp.h:55:0,
                 from minissdp.c:46:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from options.c:35:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from minissdp.c:47:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
minissdp.c: In function '_usleep':
minissdp.c:240:18: error: storage size of 'sleep_time' isn't known
  struct timespec sleep_time;
                  ^
minissdp.c:244:2: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
  nanosleep(&sleep_time, NULL);
  ^
minissdp.c:240:18: warning: unused variable 'sleep_time' [-Wunused-variable]
  struct timespec sleep_time;
                  ^
minissdp.c: In function 'SendSSDPAnnounce2':
minissdp.c:263:2: error: unknown type name 'time_t'
  time_t tTime = time(NULL);
  ^
minissdp.c:263:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
minissdp.c:264:2: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
  strftime(szTime, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&tTime));
  ^
minissdp.c:264:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
minissdp.c:264:2: warning: implicit declaration of function 'gmtime' [-Wimplicit-function-declaration]
minissdp.c:264:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
minissdp.c:264:2: note: expected 'const void *' but argument is of type 'int'
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 minissdp.o -c minissdp.c
Compiling uuid.c
In file included from /usr/include/fcntl.h:68:0,
                 from uuid.c:29:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnphttp.h:55:0,
                 from minissdp.c:46:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from minissdp.c:47:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
minissdp.c: In function '_usleep':
minissdp.c:240:18: error: storage size of 'sleep_time' isn't known
  struct timespec sleep_time;
                  ^
minissdp.c:244:2: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
  nanosleep(&sleep_time, NULL);
  ^
minissdp.c:240:18: warning: unused variable 'sleep_time' [-Wunused-variable]
  struct timespec sleep_time;
                  ^
minissdp.c: In function 'SendSSDPAnnounce2':
minissdp.c:263:2: error: unknown type name 'time_t'
  time_t tTime = time(NULL);
  ^
minissdp.c:263:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
minissdp.c:264:2: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
  strftime(szTime, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&tTime));
  ^
minissdp.c:264:2: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
minissdp.c:264:2: warning: implicit declaration of function 'gmtime' [-Wimplicit-function-declaration]
minissdp.c:264:2: warning: passing argument 4 of 'strftime' makes pointer from integer without a cast [enabled by default]
minissdp.c:264:2: note: expected 'const void *' but argument is of type 'int'
uuid.c: In function 'monotonic_us':
uuid.c:52:18: error: storage size of 'ts' isn't known
  struct timespec ts;
                  ^
uuid.c:54:29: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
  syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &ts);
                             ^
uuid.c:54:29: note: each undeclared identifier is reported only once for each function it appears in
uuid.c:52:18: warning: unused variable 'ts' [-Wunused-variable]
  struct timespec ts;
                  ^
uuid.c: In function 'generate_uuid':
uuid.c:127:18: error: storage size of 'ts' isn't known
  struct timespec ts;
                  ^
uuid.c:165:29: error: 'CLOCK_REALTIME' undeclared (first use in this function)
  syscall(SYS_clock_gettime, CLOCK_REALTIME, &ts);
                             ^
uuid.c:127:18: warning: unused variable 'ts' [-Wunused-variable]
  struct timespec ts;
                  ^
uuid.c: In function 'monotonic_us':
uuid.c:56:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
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 uuid.o -c uuid.c
Compiling upnpevents.c
In file included from /usr/include/fcntl.h:68:0,
                 from uuid.c:29:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
uuid.c: In function 'monotonic_us':
uuid.c:52:18: error: storage size of 'ts' isn't known
  struct timespec ts;
                  ^
uuid.c:54:29: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
  syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &ts);
                             ^
uuid.c:54:29: note: each undeclared identifier is reported only once for each function it appears in
uuid.c:52:18: warning: unused variable 'ts' [-Wunused-variable]
  struct timespec ts;
                  ^
uuid.c: In function 'generate_uuid':
uuid.c:127:18: error: storage size of 'ts' isn't known
  struct timespec ts;
                  ^
uuid.c:165:29: error: 'CLOCK_REALTIME' undeclared (first use in this function)
  syscall(SYS_clock_gettime, CLOCK_REALTIME, &ts);
                             ^
uuid.c:127:18: warning: unused variable 'ts' [-Wunused-variable]
  struct timespec ts;
                  ^
uuid.c: In function 'monotonic_us':
uuid.c:56:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from /usr/include/fcntl.h:68:0,
                 from upnpevents.c:60:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnpglobalvars.h:54:0,
                 from upnpevents.c:66:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from upnpevents.c:66:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnpevents.c:75:2: error: unknown type name 'time_t'
  time_t timeout;
  ^
upnpevents.c: In function 'upnpevents_addSubscriber':
upnpevents.c:156:3: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   tmp->timeout = time(NULL) + timeout;
   ^
upnpevents.c: In function 'upnpevents_processfds':
upnpevents.c:453:2: error: unknown type name 'time_t'
  time_t curtime;
  ^
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
Compiling sql.c
In file included from upnpglobalvars.h:54:0,
                 from sql.c:23:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from sql.c:23:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from /usr/include/fcntl.h:68:0,
                 from upnpevents.c:60:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from upnpglobalvars.h:54:0,
                 from upnpevents.c:66:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
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 sql.o -c sql.c
Compiling utils.c
In file included from upnpevents.c:66:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
upnpevents.c:75:2: error: unknown type name 'time_t'
  time_t timeout;
  ^
upnpevents.c: In function 'upnpevents_addSubscriber':
upnpevents.c:156:3: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   tmp->timeout = time(NULL) + timeout;
   ^
upnpevents.c: In function 'upnpevents_processfds':
upnpevents.c:453:2: error: unknown type name 'time_t'
  time_t curtime;
  ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from utils.c:27:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from utils.c:27:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from sql.c:23:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from sql.c:23:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from utils.c:34:0:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from utils.c:35:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
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 utils.o -c utils.c
Compiling metadata.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from utils.c:27:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from metadata.c:22:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from utils.c:27:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from metadata.c:22:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from utils.c:34:0:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from utils.c:35:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from upnpglobalvars.h:54:0,
                 from metadata.c:38:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from metadata.c:38:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
metadata.c: In function 'GetVideoMetadata':
metadata.c:713:2: warning: implicit declaration of function 'av_find_stream_info' [-Wimplicit-function-declaration]
  av_find_stream_info(ctx);
  ^
metadata.c:735:3: warning: 'av_close_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
   av_close_input_file(ctx);
   ^
metadata.c:755:3: warning: implicit declaration of function 'localtime' [-Wimplicit-function-declaration]
   modtime = localtime(&file.st_mtime);
   ^
metadata.c:756:3: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
   strftime(m.date, 20, "%FT%T", modtime);
   ^
metadata.c:756:3: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
metadata.c:1517:4: error: unknown type name 'AVMetadataTag'
    AVMetadataTag *tag = NULL;
    ^
metadata.c:1520:4: warning: implicit declaration of function 'av_metadata_get' [-Wimplicit-function-declaration]
    while( (tag = av_metadata_get(ctx->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)) )
    ^
metadata.c:1520:58: error: 'AV_METADATA_IGNORE_SUFFIX' undeclared (first use in this function)
    while( (tag = av_metadata_get(ctx->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)) )
                                                          ^
metadata.c:1520:58: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1524:35: error: request for member 'value' in something not a structure or union
      m.title = escape_tag(trim(tag->value), 1);
                                   ^
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1526:35: error: request for member 'value' in something not a structure or union
      m.genre = escape_tag(trim(tag->value), 1);
                                   ^
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1528:36: error: request for member 'value' in something not a structure or union
      m.artist = escape_tag(trim(tag->value), 1);
                                    ^
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1530:37: error: request for member 'value' in something not a structure or union
      m.comment = escape_tag(trim(tag->value), 1);
                                     ^
metadata.c:1537:2: warning: 'av_close_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
  av_close_input_file(ctx);
  ^
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 metadata.o -c metadata.c
Compiling scanner.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from metadata.c:22:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from metadata.c:22:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from scanner.c:26:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from scanner.c:26:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from scanner.c:37:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from scanner.c:37:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
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 scanner.o -c scanner.c
Compiling tivo_utils.c
In file included from upnpglobalvars.h:54:0,
                 from metadata.c:38:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from metadata.c:38:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
metadata.c: In function 'GetVideoMetadata':
metadata.c:713:2: warning: implicit declaration of function 'av_find_stream_info' [-Wimplicit-function-declaration]
  av_find_stream_info(ctx);
  ^
Compiling tivo_beacon.c
metadata.c:735:3: warning: 'av_close_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
   av_close_input_file(ctx);
   ^
metadata.c:755:3: warning: implicit declaration of function 'localtime' [-Wimplicit-function-declaration]
   modtime = localtime(&file.st_mtime);
   ^
metadata.c:756:3: warning: implicit declaration of function 'strftime' [-Wimplicit-function-declaration]
   strftime(m.date, 20, "%FT%T", modtime);
   ^
metadata.c:756:3: warning: incompatible implicit declaration of built-in function 'strftime' [enabled by default]
Compiling tivo_commands.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from scanner.c:26:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from scanner.c:26:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
metadata.c:1517:4: error: unknown type name 'AVMetadataTag'
    AVMetadataTag *tag = NULL;
    ^
metadata.c:1520:4: warning: implicit declaration of function 'av_metadata_get' [-Wimplicit-function-declaration]
    while( (tag = av_metadata_get(ctx->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)) )
    ^
metadata.c:1520:58: error: 'AV_METADATA_IGNORE_SUFFIX' undeclared (first use in this function)
    while( (tag = av_metadata_get(ctx->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)) )
                                                          ^
metadata.c:1520:58: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1523:19: error: request for member 'key' in something not a structure or union
     if( strcmp(tag->key, "title") == 0 )
                   ^
metadata.c:1524:35: error: request for member 'value' in something not a structure or union
      m.title = escape_tag(trim(tag->value), 1);
                                   ^
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1525:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "genre") == 0 )
                        ^
metadata.c:1526:35: error: request for member 'value' in something not a structure or union
      m.genre = escape_tag(trim(tag->value), 1);
                                   ^
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
In file included from upnpglobalvars.h:54:0,
                 from scanner.c:37:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
In file included from scanner.c:37:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1527:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "artist") == 0 )
                        ^
metadata.c:1528:36: error: request for member 'value' in something not a structure or union
      m.artist = escape_tag(trim(tag->value), 1);
                                    ^
In file included from /usr/include/string.h:633:0,
                 from metadata.c:20:
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1529:24: error: request for member 'key' in something not a structure or union
     else if( strcmp(tag->key, "comment") == 0 )
                        ^
metadata.c:1530:37: error: request for member 'value' in something not a structure or union
      m.comment = escape_tag(trim(tag->value), 1);
                                     ^
metadata.c:1537:2: warning: 'av_close_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
  av_close_input_file(ctx);
  ^
Compiling tagutils/textutils.c
Compiling tagutils/misc.c
Compiling tagutils/tagutils.c
In file included from /usr/include/fcntl.h:68:0,
                 from tagutils/tagutils.c:30:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from tagutils/tagutils.h:32:0,
                 from tagutils/tagutils.c:45:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from tagutils/tagutils.c:106:0:
tagutils/tagutils-aac.h:26:1: error: unknown type name 'time_t'
 static time_t _mac_to_unix_time(int t) __attribute__((unused));
 ^
In file included from tagutils/tagutils.c:143:0:
tagutils/tagutils-aac.c:29:1: error: unknown type name 'time_t'
 _mac_to_unix_time(int t)
 ^
In file included from tagutils/tagutils.c:146:0:
tagutils/tagutils-asf.c: In function '_asf_load_string':
tagutils/tagutils-asf.c:254:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     wc = *(__s16*)&data[j];
     ^
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 tagutils/tagutils.o -c tagutils/tagutils.c
Compiling playlist.c
In file included from /usr/include/fcntl.h:68:0,
                 from tagutils/tagutils.c:30:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from playlist.c:21:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from playlist.c:21:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from playlist.c:32:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from playlist.c:32:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
In file included from tagutils/tagutils.h:32:0,
                 from tagutils/tagutils.c:45:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
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 playlist.o -c playlist.c
Compiling image_utils.c
In file included from tagutils/tagutils.c:106:0:
tagutils/tagutils-aac.h:26:1: error: unknown type name 'time_t'
 static time_t _mac_to_unix_time(int t) __attribute__((unused));
 ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from playlist.c:21:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from playlist.c:21:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from tagutils/tagutils.c:143:0:
tagutils/tagutils-aac.c:29:1: error: unknown type name 'time_t'
 _mac_to_unix_time(int t)
 ^
In file included from upnpglobalvars.h:54:0,
                 from playlist.c:32:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from tagutils/tagutils.c:146:0:
tagutils/tagutils-asf.c: In function '_asf_load_string':
tagutils/tagutils-asf.c:254:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     wc = *(__s16*)&data[j];
     ^
In file included from playlist.c:32:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
Compiling albumart.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from albumart.c:23:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from albumart.c:23:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from albumart.c:31:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from albumart.c:31:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
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 albumart.o -c albumart.c
Compiling log.c
log.c: In function 'log_err':
log.c:127:2: error: unknown type name 'time_t'
  time_t t;
  ^
log.c:147:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
  t = time(NULL);
  ^
log.c:148:2: warning: implicit declaration of function 'localtime' [-Wimplicit-function-declaration]
  tm = localtime(&t);
  ^
log.c:148:5: warning: assignment makes pointer from integer without a cast [enabled by default]
  tm = localtime(&t);
     ^
log.c:150:12: error: dereferencing pointer to incomplete type
          tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
            ^
log.c:150:30: error: dereferencing pointer to incomplete type
          tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
                              ^
log.c:150:44: error: dereferencing pointer to incomplete type
          tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
                                            ^
log.c:151:12: error: dereferencing pointer to incomplete type
          tm->tm_hour, tm->tm_min, tm->tm_sec);
            ^
log.c:151:25: error: dereferencing pointer to incomplete type
          tm->tm_hour, tm->tm_min, tm->tm_sec);
                         ^
log.c:151:37: error: dereferencing pointer to incomplete type
          tm->tm_hour, tm->tm_min, tm->tm_sec);
                                     ^
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 log.o -c log.c
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from albumart.c:23:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
Compiling inotify.c
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from albumart.c:23:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from albumart.c:31:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from albumart.c:31:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
log.c: In function 'log_err':
log.c:127:2: error: unknown type name 'time_t'
  time_t t;
  ^
log.c:147:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
  t = time(NULL);
  ^
log.c:148:2: warning: implicit declaration of function 'localtime' [-Wimplicit-function-declaration]
  tm = localtime(&t);
  ^
log.c:148:5: warning: assignment makes pointer from integer without a cast [enabled by default]
  tm = localtime(&t);
     ^
log.c:150:12: error: dereferencing pointer to incomplete type
          tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
            ^
log.c:150:30: error: dereferencing pointer to incomplete type
          tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
                              ^
log.c:150:44: error: dereferencing pointer to incomplete type
          tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
                                            ^
log.c:151:12: error: dereferencing pointer to incomplete type
          tm->tm_hour, tm->tm_min, tm->tm_sec);
            ^
log.c:151:25: error: dereferencing pointer to incomplete type
          tm->tm_hour, tm->tm_min, tm->tm_sec);
                         ^
log.c:151:37: error: dereferencing pointer to incomplete type
          tm->tm_hour, tm->tm_min, tm->tm_sec);
                                     ^
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from inotify.c:28:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from inotify.c:28:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from inotify.c:39:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from inotify.c:39:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
inotify.c:64:1: error: unknown type name 'time_t'
 static time_t next_pl_fill = 0;
 ^
inotify.c: In function 'inotify_insert_file':
inotify.c:411:4: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
    next_pl_fill = time(NULL) + 120; // Schedule a playlist scan for 2 minutes from now.
    ^
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 inotify.o -c inotify.c
Linking minidlna
gcc: error: minidlna.o: No such file or directory
gcc: error: upnphttp.o: No such file or directory
gcc: error: upnpdescgen.o: No such file or directory
gcc: error: upnpsoap.o: No such file or directory
gcc: error: daemonize.o: No such file or directory
gcc: error: upnpglobalvars.o: No such file or directory
gcc: error: options.o: No such file or directory
gcc: error: minissdp.o: No such file or directory
gcc: error: uuid.o: No such file or directory
gcc: error: upnpevents.o: No such file or directory
gcc: error: sql.o: No such file or directory
gcc: error: utils.o: No such file or directory
gcc: error: metadata.o: No such file or directory
gcc: error: scanner.o: No such file or directory
gcc: error: tagutils/tagutils.o: No such file or directory
gcc: error: playlist.o: No such file or directory
gcc: error: albumart.o: No such file or directory
gcc: error: log.o: No such file or directory
gcc: error: inotify.o: No such file or directory
make[1]: *** [minidlna] Error 1
make[1]: Leaving directory `/«BUILDDIR»/minidlna-1.0.24+dfsg'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:106:0,
                 from inotify.c:28:
/usr/include/arm-linux-gnueabihf/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from inotify.c:28:0:
/usr/include/arm-linux-gnueabihf/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/arm-linux-gnueabihf/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from upnpglobalvars.h:54:0,
                 from inotify.c:39:
minidlnatypes.h:106:2: error: unknown type name 'time_t'
  time_t age;
  ^
In file included from inotify.c:39:0:
upnpglobalvars.h:182:1: error: unknown type name 'time_t'
 extern time_t startup_time;
 ^
inotify.c:64:1: error: unknown type name 'time_t'
 static time_t next_pl_fill = 0;
 ^
inotify.c: In function 'inotify_insert_file':
inotify.c:411:4: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
    next_pl_fill = time(NULL) + 120; // Schedule a playlist scan for 2 minutes from now.
    ^
────────────────────────────────────────────────────────────────────────────────
Build finished at 20131011-1327

Finished
────────

E: Build failure (dpkg-buildpackage died)

┌──────────────────────────────────────────────────────────────────────────────┐
│ Cleanup                                                                      │
└──────────────────────────────────────────────────────────────────────────────┘

Purging /«BUILDDIR»
Not cleaning session: cloned chroot in use

┌──────────────────────────────────────────────────────────────────────────────┐
│ Summary                                                                      │
└──────────────────────────────────────────────────────────────────────────────┘

Build Architecture: armhf
Build-Space: 1696
Build-Time: 24
Distribution: jessie-staging
Fail-Stage: build
Host Architecture: armhf
Install-Time: 257
Job: minidlna_1.0.24+dfsg-1
Machine Architecture: armhf
Package: minidlna
Package-Time: 348
Source-Version: 1.0.24+dfsg-1
Space: 1696
Status: attempted
Version: 1.0.24+dfsg-1+b1
────────────────────────────────────────────────────────────────────────────────
Finished at 20131011-1327
Build needed 00:05:48, 1696k disc space