Error compiling minidlna

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Error compiling minidlna

Postby Japers » Sat Oct 27, 2012 1:15 pm

I have tried compiling minidlna but am having errors. I first installed minidlna using "pacman -Sy minidlna jack" as per the FAQ to ensure all dependencies are installed. minidlna runs fine, I then delete the executable and untar the sourcecode to a temp folder. After I type "make" I get the following errors:

$this->bbcode_second_pass_quote('', 'C')ompiling minidlna.c
In file included from /usr/include/fcntl.h:62:0, from minidlna.c:58:
/usr/include/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
/usr/include/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:120: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:163:2: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
minidlna.c: In function 'main':
minidlna.c:854: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] Error 1


Any ideas how to resolve the problem?

I need to be able to compile the source code manually so I can then apply some patches...
Japers
 
Posts: 3
Joined: Wed Oct 13, 2010 7:56 pm

Re: Error compiling minidlna

Postby pepedog » Sat Oct 27, 2012 5:36 pm

Install and run abs (you might have to take multilib out of /etc/abs.conf)
cd /var/abs/community/minidlna
edit PKGBUILD
pacman -As --asroot
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Error compiling minidlna

Postby Japers » Sun Oct 28, 2012 12:03 pm

Thanks very much pepedog, I followed your procedure (although I used "makepkg -As --asroot" rather than "pacman -As --asroot") and the problem remains the same - exactly the same errors returned.

In this instance I tried the standard 1.0.25 and PKGBULD file before tinkering so the problem is not me playing with the source code.

Any other ideas?
Japers
 
Posts: 3
Joined: Wed Oct 13, 2010 7:56 pm

Re: Error compiling minidlna

Postby Japers » Wed Oct 31, 2012 10:45 pm

I somehow think this problem is related to ffmpeg, has anyone else got the same bug? I am very keen to resolve it!
Japers
 
Posts: 3
Joined: Wed Oct 13, 2010 7:56 pm

Re: Error compiling minidlna

Postby mrrobrob » Tue Nov 20, 2012 10:17 pm

I ran into this too, but on sheevaplug. Basically - i took the -I include directories out of the Makefile and changed the include lines that complained to include the directory in /usr the headers were in. No idea why it works, but ;-)

I tried attaching my patch, but it won't let me (apparently i can't attach a .patch or a .txt file....) so pastebin: http://pastebin.com/SWPauy23

Cheers, Rob.
mrrobrob
 
Posts: 1
Joined: Tue Nov 20, 2012 9:09 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 2 guests