From owner-freebsd-gnome@FreeBSD.ORG Thu Jan 3 19:37:56 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E794716A481 for ; Thu, 3 Jan 2008 19:37:56 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 9F55813C474 for ; Thu, 3 Jan 2008 19:37:56 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.2/8.14.2) with ESMTP id m03JcnpH099213; Thu, 3 Jan 2008 14:38:49 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Chess Griffin In-Reply-To: <20080103185703.GA2305@localhost> References: <20080103151054.GA1719@localhost> <1199381447.64371.23.camel@shumai.marcuscom.com> <20080103185703.GA2305@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-+1sbgahxujm/jihnyoL5" Organization: MarcusCom, Inc. Date: Thu, 03 Jan 2008 14:38:02 -0500 Message-Id: <1199389082.64371.74.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on creme-brulee.marcuscom.com Cc: freebsd-gnome@freebsd.org Subject: Re: Brasero and Linux SG Driver X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 19:37:57 -0000 --=-+1sbgahxujm/jihnyoL5 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-01-03 at 13:57 -0500, Chess Griffin wrote: > * Joe Marcus Clarke [2008-01-03 12:30:47]: >=20 > > This should be all that is required, kernel-wise. However, there will > > be a new device node, /dev/sg0 in most cases, that will be created. Th= e > > default mode is 0600, so you will need to allow read-write access if yo= u > > are going to run brasero as a non-root user. > >=20 >=20 > Ok, thanks. I am running into some issues with this on two separate > machines, both running 7.0-RC1 on i386. =20 It seems more work needs to be done to get sg to play nicely with FreeBSD, and I do not have the time to work on that. Joe >=20 > After recompiling my kernel and rebooting my main workstation, I now > get hard freezes and reboot with coredump when inserting a usb stick. > I have not actually tried building or running brasero yet on this > particular machine. I have hal running with xfce and it's been > working fine before this one change. I will try and rebuild hal with > debugging on tonight and report. >=20 > I also recompiled the kernel on a dedicated build box and did a > brasero build in tinderbox, but it failed with this in the error log: >=20 > scsi-command.o est -f 'scsi/scsi-command.c' || echo > './'csi/scsi-command.c > scsi/scsi-command.c:33:23: error: scsi/scsi.h: No such file or > directory > scsi/scsi-command.c:34:21: error: scsi/sg.h: No such file or directory > scsi/scsi-command.c:82: warning: 'struct sg_io_hdr' declared inside > parameter list > scsi/scsi-command.c:82: warning: its scope is only this definition or > declaration, which is probably not what you want > scsi/scsi-command.c: In function 'brasero_sg_command_setup': > scsi/scsi-command.c:85: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:87: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:89: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:90: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:91: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:92: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:95: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:96: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:99: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:99: error: 'SG_DXFER_FROM_DEV' undeclared (first > use in this function) > scsi/scsi-command.c:99: error: (Each undeclared identifier is reported > only once > scsi/scsi-command.c:99: error: for each function it appears in.) > scsi/scsi-command.c:101: error: dereferencing pointer to incomplete > type > scsi/scsi-command.c:101: error: 'SG_DXFER_TO_DEV' undeclared (first > use in this function) > scsi/scsi-command.c: In function 'brasero_scsi_command_issue_sync': > scsi/scsi-command.c:111: error: storage size of 'transport' isn't > known > scsi/scsi-command.c:126: error: 'SG_IO' undeclared (first use in this > function) > scsi/scsi-command.c:132: error: 'SG_INFO_OK_MASK' undeclared (first > use in this function) > scsi/scsi-command.c:132: error: 'SG_INFO_OK' undeclared (first use in > this function) > scsi/scsi-command.c:135: error: 'CHECK_CONDITION' undeclared (first > use in this function) > scsi/scsi-command.c:111: warning: unused variable 'transport' > scsi/scsi-command.c: In function > 'brasero_scsi_command_issue_immediate': > scsi/scsi-command.c:148: error: storage size of 'transport' isn't > known > scsi/scsi-command.c:162: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:163: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:165: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:170: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:172: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:173: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:175: error: invalid application of 'sizeof' to > incomplete type 'struct sg_io_hdr'=20 > scsi/scsi-command.c:180: error: 'SG_INFO_OK_MASK' undeclared (first > use in this function) > scsi/scsi-command.c:180: error: 'SG_INFO_OK' undeclared (first use in > this function) > scsi/scsi-command.c:183: error: 'CHECK_CONDITION' undeclared (first > use in this function) > scsi/scsi-command.c:148: warning: unused variable 'transport' > gmake[3]: *** [scsi-command.o] Error 1 > gmake[3]: Leaving directory > work/a/ports/sysutils/brasero/work/brasero-0.7.0/src' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory > work/a/ports/sysutils/brasero/work/brasero-0.7.0/src' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > work/a/ports/sysutils/brasero/work/brasero-0.7.0' > gmake: *** [all] Error 2 > *** Error code 2 >=20 > Stop in /a/ports/sysutils/brasero. >=20 > Maybe a dumb question, but this dedicated box does not have a cdrom, > so it appears the /dev/sg* nodes are not being created. Would this > alone stop the brasero build? I would think I could build it even if > I couldn't use it on a box without a cdrom. Anyway, I will try > this one again tonight as well. >=20 > Chess >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-+1sbgahxujm/jihnyoL5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHfTmab2iPiv4Uz4cRArs4AJ9Az02xiXT8wvu9J7wwkvBsqBT82QCff7qY 1n4t6u5SWcdPvsqaefXY0wo= =N6pY -----END PGP SIGNATURE----- --=-+1sbgahxujm/jihnyoL5--