Subject: Re: ogle on 1.5.x -- tester needed
To: None <tech-pkg@netbsd.org>
From: Chris Lloyd <strawberry@toth.org.uk>
List: tech-pkg
Date: 05/21/2002 22:24:24
On Tue, May 21, 2002 at 02:00:30PM -0700, Jeremy C. Reed wrote:
> On Tue, 21 May 2002, Bernd Ernesti wrote:
> 
> cc -I../../include -I../../extras
> -I/usr/local/pkgsrc/my-packages/libdvdcss/work/.buildlink/include -O2
> -DSYS_NETBSDELF -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98   -Iinclude -Iextras
> -I/usr/local/include -Wall -Winline -pipe -D_REENTRANT -D_GNU_SOURCE
> -pthread -O3 -ffast-math -funroll-loops -fomit-frame-pointer
> -march=pentium -mcpu=pentium  -fPIC -c -o ioctl.o ioctl.c
> cc: unrecognized option `-pthread'

I don't think I got this, I'm using lang/gcc and devel/binutils from current
pkgsrc (about a week old)

> ioctl.c: In function `ioctl_ReportRPC':
> ioctl.c:1188: `DVD_LU_SEND_RPC_STATE' undeclared (first use in this
> function)
> 
>  I added to extras/libdvdcss/ioctl.h:
> 
>  #define DVD_LU_SEND_RPC_STATE     10
> 
> ioctl.c:1188: (Each undeclared identifier is reported only once
> ioctl.c:1188: for each function it appears in.)
> ioctl.c:1192: union has no member named `lrpcs'
> ioctl.c:1193: union has no member named `lrpcs'
> ioctl.c:1194: union has no member named `lrpcs'
> gmake[1]: *** [ioctl.o] Error 1
> 
> So I edited some more. And had to define DVD_REPORT_RPC.
> 
> Also, I can't find DVDIOCREPORTKEY defined anywhere.

I grabbed the latest dvdio.h from my current sources and just put that in place
of the stock 1.5.2 one.

> Does anyone use this under 1.5.2?

Nope, what I got compiled didn't actually work for me - although my IDE bus
is Very flaky so I thought it might be that. I get:

blade:~/ 0% ogle
Note[ogle_ctrl]: ogle 0.8.2
Debug[ogle_ctrl]: Started /usr/pkg/lib/ogle/ogle_cli with pid 1073
Debug[ogle_ctrl]: Started /usr/pkg/lib/ogle/ogle_nav with pid 1074
Debug[ogle_ctrl]: Started /usr/pkg/lib/ogle/ogle_mpeg_ps with pid 1075
Debug[ogle_ctrl]: Started /usr/pkg/lib/ogle/ogle_vout with pid 1076
libdvdcss debug: GetASF not authenticated (ASF=0)
libdvdcss debug: requesting AGID
libdvdcss error: ioctl_ReportAgid failed
libdvdcss debug: invalidating AGID 0
libdvdcss debug: requesting AGID
libdvdcss error: ioctl_ReportAgid failed
libdvdcss debug: invalidating AGID 1
libdvdcss debug: requesting AGID
libdvdcss error: ioctl_ReportAgid failed
libdvdcss debug: invalidating AGID 2
libdvdcss debug: requesting AGID
libdvdcss error: ioctl_ReportAgid failed
libdvdcss debug: invalidating AGID 3
libdvdcss debug: requesting AGID
libdvdcss error: ioctl_SendChallenge failed
libdvdcss debug: fatal error in CSS Init
libdvdread: Can't open /dev/rcd1d for reading.
vm: faild to open/read the DVD
Debug[ogle_ctrl]: pid: 1074 exited with status: 1
Debug[ogle_ctrl]: pid: 1076 terminated on signal: 2
Debug[ogle_ctrl]: slaying child: 1073
Debug[ogle_ctrl]: slaying child: 1075
Debug[ogle_ctrl]: removing shmid: 41418754
Note[ogle_ctrl]: exiting

I get the same output as root.

This seems to indicate that /dev/rcd1d isn't readable though, it's currently
crw-rw-rw-  1 root  operator  15, 11 May 10 14:23 /dev/rcd1d

ogle used to work with -current though, when that machine was running 1.5ZC
+ current userland.

 - Chris

--
strawberry@toth.org.uk
http://www.toth.org.uk/~strawberry