[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Resolved [and more questions] (was: Re: Perl ioctl/cdio problems)
On Wed, Jul 04, 2001 at 10:36:12AM +0200, Nikolay Sturm wrote:
> * Jeff Bachtel <jeff@cepheid.org> [2001-07-04]:
> > I'm attempting to write a perl script that uses the CDDB library with
> > the data gathered from a live cd in the drive. It appears that the
>
> Ah, reinventing the wheel. :-) Have a look at
>
> http://www.liacs.nl/~jvhemert/disc-cover/
In a sense, but what I really wanted was /usr/ports/audo/p5-CDDB_get
(which my tree didn't have until I started tracking HEAD about an hour
ago). And, after some careful checking I've found what has been
causing my problems.
I'll file a more specific bugrep in a bit, but shortly:
/usr/libdata/perl5/site_perl/i386-openbsd/sys/cdio.ph calls _IOR for
CDIOREADTOCHEADER with "struct ioc_read_toc_header" for the t (type)
parameter. It does not seem likely that _IOR's sizeof call is
returning the proper value (4) to pass onto _IOC. It appears that the
%sizeof array is not being generated as a global symbol, at least on
my OpenBSD install. It looks like I can get around this by putting
specific sizeof defines in cdio.ph, but is there a more preferred way
to do this?
jeff