Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2008 13:57:03 -0500
From:      Chess Griffin <chess@chessgriffin.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: Brasero and Linux SG Driver
Message-ID:  <20080103185703.GA2305@localhost>
In-Reply-To: <1199381447.64371.23.camel@shumai.marcuscom.com>
References:  <20080103151054.GA1719@localhost> <1199381447.64371.23.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Joe Marcus Clarke <marcus@marcuscom.com> [2008-01-03 12:30:47]:

> 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.  The
> default mode is 0600, so you will need to allow read-write access if you
> are going to run brasero as a non-root user.
>=20

Ok, thanks.  I am running into some issues with this on two separate
machines, both running 7.0-RC1 on i386. =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.

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:

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

Stop in /a/ports/sysutils/brasero.

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.

Chess

--=20
Chess Griffin
GPG Public Key:  0x0C7558C3
http://www.chessgriffin.com

--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHfS/+Kzd9mAx1WMMRAkmdAJ9B85pAoSU2wdsvxay3vr6Zrad4eQCcDqLC
y06zr34qvYRI2nhTvqcBuC0=
=difr
-----END PGP SIGNATURE-----

--J/dobhs11T7y2rNN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080103185703.GA2305>