Created attachment 149658 [details] patch containing the update --Replace readline with libedit --Replace @ symlink with SYSDIR for kld builds, fixes build on -CURRENT --strip binaries for non-DEBUG builds --Remove deprecated json-c calls --Minor usability improvements
This does not build on 9.3/i386 with HAL option enabled: cc -pipe -g -fno-strict-aliasing -D_DIAGNOSTIC=0x7f -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c cx88_common.c cc1: warnings being treated as errors cx88_common.c: In function 'cx88_write_addr64': cx88_common.c:2320: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'bus_addr_t' [-Wformat] cx88_common.c: In function 'cx88_write_addr32': cx88_common.c:2328: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'bus_addr_t' [-Wformat] *** [cx88_common.o] Error code 1
Created attachment 149757 [details] update w/ format warning fixes
(In reply to jason.harmening from comment #2) > Created attachment 149757 [details] > update w/ format warning fixes This patch is identical to the previous version :-)
(In reply to Thomas Zander from comment #3) > (In reply to jason.harmening from comment #2) > > Created attachment 149757 [details] > > update w/ format warning fixes > > This patch is identical to the previous version :-) The patches are not identical. The fix for the compile warning is in the tarball, so the distinfo checksums are different between the patches.
My mistake. Does not solve the issue, though. Now the error occurs in a different file (9.3 i386, HAL enabled): cc -pipe -g -fno-strict-aliasing -D_DIAGNOSTIC=0x7f -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I../common -I../i2c -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c cx88_mpeg.c cc1: warnings being treated as errors cx88_mpeg.c: In function 'cx88_mpeg_configure': cx88_mpeg.c:280: warning: format '%ld' expects type 'long int', but argument 2 has type 'size_t' [-Wformat] *** [cx88_mpeg.o] Error code 1
Created attachment 149767 [details] more format warning fixes Looks like these failures come from building w/ DEBUG + -Werror + i386 + 9-STABLE. I haven't seen any warnings w/ 10-STABLE and -CURRENT (i386 or amd64) and no longer have 9-STABLE, so I'm shooting in the dark. Grepping through all the code, it looks like that was the only other printf that would have a warning, so let's hope this fixes it.
A commit references this bug: Author: riggs Date: Tue Nov 25 19:49:58 UTC 2014 New revision: 373429 URL: https://svnweb.freebsd.org/changeset/ports/373429 Log: Update to version 1.4.11 PR: 195236 Submitted by: jason.harmening@gmail.com (maintainer) Changes: head/multimedia/cx88/Makefile head/multimedia/cx88/distinfo head/multimedia/cx88/pkg-plist
Committed, thanks for taking care of the warnings!