Port miniDLNA 2010.12.12 build failes due to warning in scanner.c

Mark Stapper stark at mapper.nl
Mon Feb 7 09:54:41 UTC 2011


Hi All,

I've been compiling miniDLNA and ran into the following "problem".

==============Begin Code============

cc -O2 -fno-strict-aliasing -pipe -march=athlon64
-I/usr/ports/net/minidlna/files -I/usr/ports/net/minidlna/work
-I/usr/local/include -I/usr/local/include/ffmpeg
-I/usr/local/include/libavutil -DPREFIX='"/usr/local"' -DOS='"FreeBSD"'
-DOSVERSION='"8.0-STABLE"' -Wformat -Werror -std=gnu99 -fstack-protector
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized
-Wno-pointer-sign -c scanner.c
cc1: warnings being treated as errors
scanner.c: In function 'ScanDirectory':
scanner.c:732: warning: passing argument 3 of 'scandir' from
incompatible pointer type
scanner.c:735: warning: passing argument 3 of 'scandir' from
incompatible pointer type
scanner.c:738: warning: passing argument 3 of 'scandir' from
incompatible pointer type
scanner.c:741: warning: passing argument 3 of 'scandir' from
incompatible pointer type
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/net/minidlna.

==============End Code============

I was able to install by cd-ing into the work dir and running the build
command without the "-Werror" option.
Please also note that this flag is specified twice!

==============Begin Code============
FreeBSD yoshi 8.0-STABLE FreeBSD 8.0-STABLE #0: Tue Feb  9 13:34:17 CET
2010     root@:/usr/obj/usr/src/sys/YOSHI  amd64
==============End Code============

Cheers,
Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20110207/6ff101a4/signature.pgp


More information about the freebsd-multimedia mailing list