Date: Thu, 01 Mar 2007 22:22:40 +0100 From: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> To: freebsd-multimedia@freebsd.org Subject: Re: pvrxxx port Message-ID: <20070301222240.3a38cebe.torfinn.ingolfsen@broadpark.no> In-Reply-To: <c39ec84c0703011223p6c950a65o819b204d1cba4adb@mail.gmail.com> References: <45E45A43.1010600@aem.umn.edu> <c39ec84c0702270857x1ab31064of5b6af705322ef4e@mail.gmail.com> <45E49F16.5010305@aem.umn.edu> <c39ec84c0702271323t3dde04fdv89ad50b474a5ee7e@mail.gmail.com> <20070301191035.3d2c9e8e.torfinn.ingolfsen@broadpark.no> <c39ec84c0703011223p6c950a65o819b204d1cba4adb@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 01 Mar 2007 21:23:03 +0100 usleepless@gmail.com wrote: > there needs to be added "const" before "struct firmware" where > appriopiate. Ok, I'll try that. (a little later), ok I got a few of them, but when it stops here, I don't know what to do next: root@kg-fil# make ===> Building for pvrxxx-20060822 cd /usr/ports/multimedia/pvrxxx/work/modules/cxm; make ===> cxm (all) Warning: Object directory not changed from original /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I../../.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c fbsd-compat.c cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I../../.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c cx25840-core.c cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I../../.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c cx25840-audio.c cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I../../.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c cx25840-firmware.c cx25840-firmware.c: In function `cx25840_loadfw_hp': cx25840-firmware.c:146: warning: cast discards qualifiers from pointer target type cx25840-firmware.c:146: warning: passing arg 1 of `request_firmware' from incompatible pointer type *** Error code 1 Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm. *** Error code 1 Stop in /usr/ports/multimedia/pvrxxx/work/modules/cxm. *** Error code 1 Stop in /usr/ports/multimedia/pvrxxx. I changed 'struct firmware ...' in line 141 of ./work/modules/cxm/cxm/cx25840-firmware.c into 'const struct firmware...' but the cast in line 146 I don't know how to fix. Line 146 looks like this: if (request_firmware((void**)&fw, firmware, (int)FWDEV(client)) != 0) { cx25840_err("unable to open firmware %s\n", firmware); return -EINVAL; } Ok, I'll call it a night. > did you have any luck building your /usr/src with patch-iicbb? i > fooled around a little on my box, and it does compile now. Sort of - I cheated. I just dowloaded the previous version of the changed files in ../iicbus (there were 8) and put them in place. After that, both patching ('make patch-iicbb') and buliding a new kernel works. > did your "make buildkernel" cleanup before it started? ( this was > about the error in iiconf.c ) I don't know; I didn't look at it while it was working. -- Regards, Torfinn Ingolfsen, Norway
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070301222240.3a38cebe.torfinn.ingolfsen>