From owner-freebsd-multimedia@FreeBSD.ORG Fri May 21 08:38:27 2010 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 031F9106567A for ; Fri, 21 May 2010 08:38:27 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id B13B28FC1B for ; Fri, 21 May 2010 08:38:26 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ignis-smin.broadpark.no ([unknown] [80.202.8.11]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTP id <0L2R000R3HBZ2C40@thalia-smout.broadpark.no> for freebsd-multimedia@FreeBSD.org; Fri, 21 May 2010 10:38:23 +0200 (CEST) Received: from kg-v2.kg4.no ([unknown] [80.203.92.186]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with SMTP id <0L2R004S6HBZMH20@ignis-smin.broadpark.no> for freebsd-multimedia@FreeBSD.org; Fri, 21 May 2010 10:38:23 +0200 (CEST) Date: Fri, 21 May 2010 10:38:23 +0200 From: Torfinn Ingolfsen To: freebsd-multimedia@FreeBSD.org Message-id: <20100521103823.752c07b1.torfinn.ingolfsen@broadpark.no> In-reply-to: <201005210935.16291.shoesoft@gmx.net> References: <20100513233437.GR27722@danbala.tuwien.ac.at> <201005202145.31750.shoesoft@gmx.net> <20100520215235.9960d8be.torfinn.ingolfsen@broadpark.no> <201005210935.16291.shoesoft@gmx.net> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; amd64-portbld-freebsd8.0) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Cc: Subject: Re: multimedia/pvr250 port doesn't compile on FreeBSD 8 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2010 08:38:27 -0000 On Fri, 21 May 2010 09:35:16 +0200 Stefan Ehmann wrote: > On Thursday 20 May 2010 21:52:35 Torfinn Ingolfsen wrote: > > > > Hmm, cxm_i2c.c already contains that line. > > root@kg-fil# grep DRIVER ./work/dev/cxm/cxm_i2c.c > > DRIVER_MODULE(cxm_iic, cxm, cxm_iic_driver, cxm_iic_devclass, 0, 0); > > root@kg-fil# uname -a > > FreeBSD kg-fil.kg4.no 8.0-STABLE FreeBSD 8.0-STABLE #3: Thu Dec 31 00:34:23 > > CET 2009 root@kg-fil.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 > > > > Do I also need to "hack" minor? > > These lines are not the same. You need them both: > > --- pvrxxx.orig/dev/cxm/cxm_i2c.c 2009-12-05 13:31:54.000000000 +0100 > +++ pvrxxx/work/dev/cxm/cxm_i2c.c 2009-12-01 08:52:29.000000000 +0100 > @@ -131,6 +131,7 @@ > #endif > MODULE_VERSION(cxm_iic, 1); > DRIVER_MODULE(cxm_iic, cxm, cxm_iic_driver, cxm_iic_devclass, 0, 0); > +DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); Doh! That's what I get for trying to work with this so late. Sorry about that. Anyway, now I have fixed it: root@kg-fil# grep DRIVER work/dev/cxm/cxm_i2c.c DRIVER_MODULE(cxm_iic, cxm, cxm_iic_driver, cxm_iic_devclass, 0, 0); DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0); But still it fails: root@kg-fil# make ===> Configuring for pvrxxx-09042008 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-09042008 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/amd64/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 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I../../.. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -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 -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_open': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2484: error: invalid operands to binary & /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function 'cxm_close': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2517: error: invalid operands to binary & /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function 'cxm_read': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2565: error: invalid operands to binary & /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function 'cxm_ioctl': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:2679: error: invalid operands to binary & /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In function 'cxm_poll': /usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:3266: error: invalid operands to binary & *** 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. Any hints? -- Torfinn