Thanks Xavier, It seems that bootstrap already handles bison. The built makefile contains the lines: YACC = bison -y
So I think that may be %code directive is not supported by the legacy bison v2.3 provided with Mac!
Does somebody would mind to confirm that point ? Anyway, I'll try to install a newer version of bison. Regards. Le 16/03/13 16:42, Xavier Bachelot a écrit :
On 03/16/2013 03:38 PM, François Lejosne wrote:Hello, Even from archive libaacs-0.6.0 or from repository git://git.videolan.org/libaacs.git the make command returns the following error: #make make all-recursive Making all in src test -f keydbcfg-parser.c || \ /bin/sh ../build-aux/ylwrap `test -f 'file/keydbcfg-parser.y' || echo './'`file/keydbcfg-parser.y y.tab.c keydbcfg-parser.c y.tab.h keydbcfg-parser.h y.output keydbcfg-parser.output -- bison -y -d -p libaacs_yy /Users/xxx/Applications/Bluray/git/libaacs/src/file/keydbcfg-parser.y:1.1-5: invalid directive: `%code' /Users/xxx/Applications/Bluray/git/libaacs/src/file/keydbcfg-parser.y:1.7-14: syntax error, unexpected identifier make[2]: *** [keydbcfg-parser.c] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 is there any workaround ? Regards.Iirc, I've seen this error with byacc. I switched to bison and the error went away. I hope this helps. Regards, Xavier
_______________________________________________ libaacs-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libaacs-devel
