pvrxxx port
Matt Stegmeir
steg0044 at aem.umn.edu
Tue Feb 27 21:24:12 UTC 2007
The recently updated pvrxxx port from usleepless as-supplied failed to
build for me out of the box. firmware_get was returning a const struct
firmware* and the compiler didn't like that. I modified
modules/cxm/cxm/@/kern/subr_firmware.c and
modules/cxm/cxm/@/sys/firmware.h to omit const and the port then built
and installed successfully. I was able to load the module and cat
/dev/cxm0 as well. Output from make follows:
===> Patching for pvrxxx-20060822
===> Applying FreeBSD patches for pvrxxx-20060822
/usr/bin/sed -i.bak -e 's/tuner0/cxm0/'
/usr/ports/multimedia/pvrxxx/work/pvr250-1.2/setchannel.c
===> Configuring for pvrxxx-20060822
cd /usr/ports/multimedia/pvrxxx/work/modules/cxm; cd cxm_cx25840fw; tar
xzf /usr/ports/distfiles//firmware.tar.gz v4l-cx25840.fw; cd
../cxm_decfw; tar xzf /usr/ports/distfiles//firmware.tar.gz
v4l-cx2341x-dec.fw; cd ../cxm_encfw; tar xzf
/usr/ports/distfiles//firmware.tar.gz v4l-cx2341x-enc.fw
===> 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
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
:> opt_cxm.h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/dev/iicbus/iicbb_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I- -I../../.. -I. -I@ -I@/contrib/altq -I@/../include
-I/usr/include -finline-limit=8000 -fno-common -mno-align-long-strings
-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -fformat-extensions -std=c99 -c
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:
In function `cxm_download_firmware':
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:741:
warning: assignment discards qualifiers from pointer target type
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:762:
warning: assignment discards qualifiers from pointer target 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.
mattsteg|/usr/ports/multimedia/pvrxxx% uname
-a
|myth.mattsteg|02/27/07|14:51
FreeBSD myth.mattsteg 6.2-STABLE FreeBSD 6.2-STABLE #4: Sun Feb 25
12:46:41 CST 2007 root at myth.mattsteg:/usr/obj/usr/src/sys/MYTH i386
More information about the freebsd-multimedia
mailing list