Date: Mon, 07 Feb 2011 10:36:30 +0100 From: Mark Stapper <stark@mapper.nl> To: freebsd-multimedia@freebsd.org Subject: Port miniDLNA 2010.12.12 build failes due to warning in scanner.c Message-ID: <4D4FBD1E.4030003@mapper.nl>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1PvSIACgkQN9xNqOOVnWAgZgCbBBPsYH2uZ2dTyvuujQptKdHs I2UAn0pfsp7UVJG8T5cS1JvvGoP9xD18 =t+h6 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D4FBD1E.4030003>
