From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 14 17:03:34 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 B0FC81065672 for ; Thu, 14 Jan 2010 17:03:34 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 46EA48FC16 for ; Thu, 14 Jan 2010 17:03:33 +0000 (UTC) Received: by fxm27 with SMTP id 27so1042879fxm.3 for ; Thu, 14 Jan 2010 09:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=y5h+Kmx36mU9DfkkMOIfL+zUuv9aO63Z84C70gc+r9A=; b=UusMlUihQQ9PpMTlTdZ1V1QlkKMgZ4oxdadCv+R6n9RXAStS7qsBuMoU+jYJo0Mfi0 gamrZ405ZU6a6cvq30Wi4XFLnqS8usuu6EANwvibr8Ddr0UPBdjqlOqZ1t72rxOZIq8Z V6MlyWc2/+Amt4gX2J6c4sho4aiAXUpKPvd5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dTI9VrLvgGyc+q/1dIISy+BJ8yV4BQmiNr3EKXBgCLCgLE6DFYy4t4gUi7YuJQL1B8 3ZSc45c+zH4BN/xKtccPP0C1S34P2jhLRrwRS1MXingVHaeUHdpZd0igVNF4p3VrGQoV Qbo6QD7/UiSh1yXTZfPh0j8CB16n8VD/b0ynE= MIME-Version: 1.0 Received: by 10.223.76.142 with SMTP id c14mr1264652fak.92.1263488610715; Thu, 14 Jan 2010 09:03:30 -0800 (PST) In-Reply-To: <2d1264631001140859o5555f937l2c207e45b628b581@mail.gmail.com> References: <4B4F42ED.3070805@googlemail.com> <2d1264631001140859o5555f937l2c207e45b628b581@mail.gmail.com> Date: Thu, 14 Jan 2010 11:03:30 -0600 Message-ID: <2d1264631001140903j739cc3f7m9609f31a1d0ff57a@mail.gmail.com> From: Jason Harmening To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Fwd: cx88 driver for FreeBSD 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: Thu, 14 Jan 2010 17:03:34 -0000 I'm forwarding this to the list as a heads-up...cx88 build is broken on 8-STABLE as of a few days ago (and is already marked broken on 9-CURRENT for the same reason). The fix is included below. Hopefully the newbus locking changes will come back shortly, at which point I'll do a new release w/ a fix. Sorry for the inconvenience. ---------- Forwarded message ---------- From: Jason Harmening Date: Thu, Jan 14, 2010 at 10:59 AM Subject: Re: cx88 driver for FreeBSD To: R J Thompson On Thu, Jan 14, 2010 at 10:14 AM, R J Thompson wro= te: > Hi Jason > > First of all, thankyou for taking the time to write this driver, I am > looking to use it on a FreeBSD MythTV backend server with a Hauppauge Nov= a-T > PCI card. =A0The system is running 8-STABLE (built from the source tree a= s of > today), however when I compile cx88 from the ports I have an error as > follows: > > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdin= c > =A0-I../common -I../iicdev -I. -I@ -I@/contrib/altq -finline-limit=3D8000 > --param inline-unit-growth=3D100 --param large-function-growth=3D1000 > -fno-common =A0-mno-align-long-strings -mpreferred-stack-boundary=3D2 =A0= -mno-mmx > -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector > -std=3Diso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-ex= terns > -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c cx88_i2c.= c > cc1: warnings being treated as errors > cx88_i2c.c: In function 'cx88_i2c_lock_devtree': > cx88_i2c.c:194: warning: implicit declaration of function 'newbus_xlock' > cx88_i2c.c:194: warning: nested extern declaration of 'newbus_xlock' > cx88_i2c.c: In function 'cx88_i2c_unlock_devtree': > cx88_i2c.c:203: warning: implicit declaration of function 'newbus_xunlock= ' > cx88_i2c.c:203: warning: nested extern declaration of 'newbus_xunlock' > *** Error code 1 > > Stop in /usr/ports/multimedia/cx88/work/cx88-1.2.1/i2c. > *** Error code 1 > > Stop in /usr/ports/multimedia/cx88/work/cx88-1.2.1. > *** Error code 1 > > Stop in /usr/ports/multimedia/cx88. > > Not sure what this means? =A0Any information or advice welcome. > > Cheers > > Richard > > Back in August, newbus_x[un]lock() was added briefly to 8-CURRENT, and so I added a __FreeBSD_version check to determine whether to use the new functions or do locking the old way w/ Giant. =A0Then they decided to remove the new functions for 8.0-RELEASE, but supposedly they'll be coming back shortly. =A0I'm waiting for that to happen before I release a new version w/ the correct __FreeBSD_version check. =A0In the meantime, you can edit cx88_i2c.c and remove the check so that it just uses Giant. Sorry for the inconvenience, Jason