#160 metadata.c failing with avformat_close_input

open
nobody
None
5
2012-10-14
2012-10-14
John B
No

I tried compiling using the v1.0.25 tarball, but ended up getting the avformat_close_input check failure as reported in bug #3549925. I applied the patch that was provided and verified that it changed the source code; however, compilation continued to fail at the same location. Having read that you incorporated the fix into the CVS version, I just tried to compile using the CVS tarball as of 14 Oct 2012, but the compilation is still failing as shown below.

make all-recursive
make[1]: Entering directory `/var/tmp/minidlna/minidlna'
Making all in po
make[2]: Entering directory `/var/tmp/minidlna/minidlna/po'
make[2]: Leaving directory `/var/tmp/minidlna/minidlna/po'
make[2]: Entering directory `/var/tmp/minidlna/minidlna'
gcc -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -o minidlnad 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 inotify.o tivo_utils.o tivo_beacon.o tivo_commands.o textutils.o misc.o tagutils.o playlist.o image_utils.o albumart.o log.o -ljpeg -lid3tag -lsqlite3 -lavformat -lavutil -lexif -lpthread -lFLAC -logg -lvorbis -lpthread
metadata.o: In function `lav_close':
/var/tmp/minidlna/minidlna/metadata.c:115: undefined reference to `avformat_close_input'
/var/tmp/minidlna/minidlna/metadata.c:115: undefined reference to `avformat_close_input'
collect2: ld returned 1 exit status
make[2]: *** [minidlnad] Error 1
make[2]: Leaving directory `/var/tmp/minidlna/minidlna'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/minidlna/minidlna'
make: *** [all] Error 2

I am using Ubuntu 11/04 (x64), fully patched and updated, with kernel 3.0.0-26. The version of libavformat53 that's installed is listed below.

||/ Name Version Description
ii libavformat53 4:0.7.6-0ubuntu0.11.10.1 Libav file format library

Discussion