pvrxxx port

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Thu Mar 1 21:22:49 UTC 2007

On Thu, 01 Mar 2007 21:23:03 +0100
usleepless at 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 at 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.
Torfinn Ingolfsen,

More information about the freebsd-multimedia mailing list