You are not logged in.

#1 2012-08-29 07:45:05

minivanman
Member
Registered: 2011-12-06
Posts: 20

libaacs Package Errors (I Want To Watch Bluray!!) (SOLVED)

System is up to date and less than a month old anyway.  Base-devel is installed on the system.

I'm trying to get Bluray setup on my Mythbox.  I need "libaacs" which is available in AUR (libaacs-git).  However, when I unpack it and then "makepkg" it bombs out, and spits out the following code:

keydbcfg-parser.h:132:37: error: unknown type name 'dk_list'
keydbcfg-parser.h:132:54: error: unknown type name 'pk_list'
keydbcfg-parser.h:132:71: error: unknown type name 'cert_list'
keydbcfg-parser.h:132:89: error: unknown type name 'title_entry_list'
keydbcfg-parser.h:132:115: error: unknown type name 'digit_key_pair_list'
keydbcfg-lexer.c: In function 'libaacs_yylex':
keydbcfg-lexer.c:926:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
keydbcfg-lexer.c: In function 'libaacs_yy_scan_bytes':
keydbcfg-lexer.c:1872:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[4]: *** [keydbcfg-lexer.lo] Error 1
make[4]: Leaving directory `/home/myth/AUR/libaacs-0.5.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/myth/AUR/libaacs-0.5.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/myth/AUR/libaacs-0.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myth/AUR/libaacs-0.5.0'
make: *** [all] Error 2

keydbcfg-parser.h:132:54: error: unknown type name 'pk_list'
keydbcfg-parser.h:132:71: error: unknown type name 'cert_list'
keydbcfg-parser.h:132:89: error: unknown type name 'title_entry_list'
keydbcfg-parser.h:132:115: error: unknown type name 'digit_key_pair_list'
keydbcfg-lexer.c: In function 'libaacs_yylex':
keydbcfg-lexer.c:926:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
keydbcfg-lexer.c: In function 'libaacs_yy_scan_bytes':
keydbcfg-lexer.c:1872:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[4]: *** [keydbcfg-lexer.lo] Error 1
make[4]: Leaving directory `/home/myth/AUR/libaacs-0.5.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/myth/AUR/libaacs-0.5.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/myth/AUR/libaacs-0.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myth/AUR/libaacs-0.5.0'
make: *** [all] Error 2

There is mention of this error here:

http://aur.archlinux.org/packages.php?ID=45974

However, the link to Gentoo just confuses me.  First, they say the bug is fixed in libaacs-0.5.0, so I downloaded that specifically and did my own make, make install and I get the same thing. 

I think I need somebody to educate me on what this means????

There should be

#include "file/keydbcfg.h"

in the bison generated keydbcfg-parser.h since the file includes this declaration

int libaacs_yyparse (void *scanner, dk_list *dklist, pk_list *pklist, cert_list *clist, title_entry_list *celist, digit_key_pair_list *dkplist);

and does not define the appropriate types, which are defined in the "file/keydbcfg.h". Whether it is a problem of the new bison or a problem in the wrong file/keydbcfg-parser.y or perhaps file/keydbcfg-lexer.l, I don't know, I didn't dive into those.

As always, any help is greatly appreciated.

Last edited by minivanman (2012-09-04 03:55:36)

Offline

#2 2012-08-29 19:27:59

minivanman
Member
Registered: 2011-12-06
Posts: 20

Re: libaacs Package Errors (I Want To Watch Bluray!!) (SOLVED)

Okay, I got in to play nice.  I kind of just guessed, but it worked. 

Downloaded and extracted the tarball. 

./bootstrap
./configure

Then I went into the extracted folder /where_you_unpacked/libaacs.0.5.0/src and edited the keydbcfg-parser.h file by adding the following to the top of the file, below the initial comments:

#include "file/keydbcfg.h"

/* A Bison parser, made by GNU Bison 2.6.2.  */

/* Bison interface for Yacc-like parsers in C
   
      Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
   
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

#include "file/keydbcfg.h"
#ifndef LIBAACS_YY_Y_TAB_H
# define LIBAACS_YY_Y_TAB_H
/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int libaacs_yydebug;
#endif

/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     HEXSTRING = 258,
     DISC_TITLE = 259,
     DIGIT = 260,
     KEYWORD_DEVICE_KEY = 261,
     KEYWORD_DEVICE_NODE = 262,
     KEYWORD_HOST_PRIV_KEY = 263,
     KEYWORD_HOST_CERT = 264,
     KEYWORD_HOST_NONCE = 265,
     KEYWORD_HOST_KEY_POINT = 266,
     PUNCT_EQUALS_SIGN = 267,
     PUNCT_VERTICAL_BAR = 268,
     PUNCT_HYPHEN = 269,
     ENTRY_ID_DK = 270,
     ENTRY_ID_PK = 271,
     ENTRY_ID_HC = 272,
     ENTRY_ID_DATE = 273,
     ENTRY_ID_MEK = 274,
     ENTRY_ID_VID = 275,
     ENTRY_ID_BN = 276,
     ENTRY_ID_VUK = 277,
     ENTRY_ID_PAK = 278,
     ENTRY_ID_TK = 279,
     ENTRY_ID_UK = 280,
     NEWLINE = 281,
     BAD_ENTRY = 282
   };
#endif
/* Tokens.  */
#define HEXSTRING 258
#define DISC_TITLE 259
#define DIGIT 260
#define KEYWORD_DEVICE_KEY 261
#define KEYWORD_DEVICE_NODE 262
#define KEYWORD_HOST_PRIV_KEY 263
#define KEYWORD_HOST_CERT 264
#define KEYWORD_HOST_NONCE 265
#define KEYWORD_HOST_KEY_POINT 266
#define PUNCT_EQUALS_SIGN 267
#define PUNCT_VERTICAL_BAR 268
#define PUNCT_HYPHEN 269
#define ENTRY_ID_DK 270
#define ENTRY_ID_PK 271
#define ENTRY_ID_HC 272
#define ENTRY_ID_DATE 273
#define ENTRY_ID_MEK 274
#define ENTRY_ID_VID 275
#define ENTRY_ID_BN 276
#define ENTRY_ID_VUK 277
#define ENTRY_ID_PAK 278
#define ENTRY_ID_TK 279
#define ENTRY_ID_UK 280
#define NEWLINE 281
#define BAD_ENTRY 282



#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 2049 of yacc.c  */
#line 106 "file/keydbcfg-parser.y"

  char *string;
  unsigned int digit;


/* Line 2049 of yacc.c  */
#line 117 "keydbcfg-parser.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif


#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int libaacs_yyparse (void *YYPARSE_PARAM);
#else
int libaacs_yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int libaacs_yyparse (void *scanner, dk_list *dklist, pk_list *pklist, cert_list *clist, title_entry_list *celist, digit_key_pair_list *dkplist);
#else
int libaacs_yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */

#endif /* !LIBAACS_YY_Y_TAB_H

I still can't get blurays to play, but progress has been made as VLC is now telling me that I don't have a "aacs" installed, which is actually a different error than before.  So something took a step in the right direction.

Last edited by minivanman (2012-08-29 19:33:37)

Offline

#3 2012-08-30 01:04:20

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: libaacs Package Errors (I Want To Watch Bluray!!) (SOLVED)

Do you have a valid VUK in ~/.config/aacs/KEYDB.cfg? Simply having libaacs installed is not enough. VUKs can be found on the doom9 forums.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#4 2012-08-30 03:54:57

minivanman
Member
Registered: 2011-12-06
Posts: 20

Re: libaacs Package Errors (I Want To Watch Bluray!!) (SOLVED)

ConnorBehan wrote:

Do you have a valid VUK in ~/.config/aacs/KEYDB.cfg? Simply having libaacs installed is not enough. VUKs can be found on the doom9 forums.

That's a good question.  To my knowledge, "yes".  I've tried several KEYDB.cfg files.  However, there's no telling if the blurays I have on hand are even playable with this format.  I only have two.  Like I said, I'm not too invested in the technology, but the tinkerer in me would like to get this figured out. 

I'm going to have a few hours tomorrow to dig in and try some more stuff.  I need to scour the doom9 forum and get a bit more of an education.

I really need to make a dedicated tinkering machine where I can sort all this stuff out before trying to implement it on a machine that's fairly critical to my family's entertainment.  When it crashes, people aren't happy.

Offline

#5 2012-09-04 03:55:02

minivanman
Member
Registered: 2011-12-06
Posts: 20

Re: libaacs Package Errors (I Want To Watch Bluray!!) (SOLVED)

GOT IT!!!!!!!  Issue was a broken package.  libaacs-0.5.0 was broken.  libaacs-0.5.0-2 is a patched version which is now showing up in the AUR. 

The Wiki (https://wiki.archlinux.org/index.php/BluRay) points you to libaacs-git which has been outdated.  I downloaded the libaacs-0.5.0.tar.bz2 file from the VLC website as well as trying the libaacs-0.5.0 tarball from the AUR, and with some tweaking got it to install, but it just didn't work properly.

Well, as it turns out, libaacs-0.5.0 was updated in the AUR to libaacs-0.5.0-2 on the 30th of August, a day after my last post (go figure ;p)

Anyway, libaacs-0.5.0-2 is patched, and I was able to unpack it, makepkg, and install it via pacman with no problems. 

Since I had already created the directories ~/.config/aacs and ~/.cache/aacs/vuk I'm not sure if they are created during the libaacs installation process.

If they aren't create them, and start with the basic KEYDB.cfg file listed in the wiki http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg and place it in ~/.config/aacs

Worked flawlessly with VLC.  Opened the bluray right up. 

Interesting that the bluray I used was the "Golden Compass", which had a "supposedly" valid VUK in the KEYDB.cfg file downloaded from the doom9 forums.  It wouldn't play with that file.  I had to use the empty file, but it did exactly what the wiki said it would do.  It extracted the VUK and placed it in the ~/.cache/aacs/vuk folder. 

Marking this SOLVED.

Offline

Board footer

Powered by FluxBB