#173 build fail

open
nobody
None
5
2013-01-23
2013-01-23
Anonymous
No

build fail on a debian wheezy

root@BIGNAS:/opt/minidlna/minidlna-1.0.25# make
Compiling minidlna.c
In file included from /usr/include/fcntl.h:41:0,
from minidlna.c:58:
/usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field ‘st_atim’ has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field ‘st_mtim’ has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field ‘st_ctim’ has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:152:21: error: field ‘st_atim’ has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:153:21: error: field ‘st_mtim’ has incomplete type
/usr/include/x86_64-linux-gnu/bits/stat.h:154:21: error: field ‘st_ctim’ has incomplete type
In file included from upnpglobalvars.h:54:0,
from minidlna.c:74:
minidlnatypes.h:107:2: error: unknown type name ‘time_t’
In file included from minidlna.c:74:0:
upnpglobalvars.h:182:1: error: unknown type name ‘time_t’
minidlna.c: In function ‘set_startup_time’:
minidlna.c:167:2: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
minidlna.c: In function ‘main’:
minidlna.c:1031:2: error: unknown type name ‘time_t’
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
make: *** [minidlna.o] Fehler 1

Discussion