generated spotlight files (via bison/flex) from waf rather than use snapshots of previous generated files

Ralph Böhme slow at samba.org
Thu Jan 19 11:01:17 UTC 2017


On Thu, Jan 19, 2017 at 10:54:19AM +0000, Noel Power wrote:
> On 19/01/17 10:12, Ralph Böhme wrote:
> [...]
> >> Only thing I noticed was on my box the build fails with the final patch
> >> 's3/rpc_server/mdssvc: prefix public flex and bison global' probably
> >> it's a bison version issue. The error I get is below
> >>
> >> [ 418/3005] bison: source3/rpc_server/mdssvc/sparql_parser.y ->
> >> bin/default/source3/rpc_server/mdssvc/sparql_parser.tab.c
> >> bin/default/source3/rpc_server/mdssvc/sparql_parser.tab.h
> >> 09:39:22 runner /usr/bin/bison -d
> >> /data/samba/source3/rpc_server/mdssvc/sparql_parser.y -o sparql_parser.tab.c
> >> /data/samba/source3/rpc_server/mdssvc/sparql_parser.y:68.20-26: error:
> >> syntax error, unexpected {...}
> >>
> >> sparql_parser.y:68 is
> >>
> >> 67
> >> 68 %define api.prefix {mdsyy}
> >> 69 %expect 5
> >>
> >>
> >> bison --version
> >> bison (GNU Bison) 2.7
> > ah, damn!
> >
> > Looks like the api.prefix dance is to new, so we can't use it.
> >
> > The older form seems to be
> >
> >   %name-prefix="mds"
> >
> > Can you test whether that works with bison 2.7? Thanks!
> 
> yup, attached patch (with %name-prefix="mdsyy") builds fine for me

great!

> However for completeness this time I also tried building with
> -'--nonshared-binary=smbd/smbd' which fails with
> 
>   ERROR: source source3/rpc_server/rpc_modules.c is in more than one
> subsystem of target 'smbd/smbd': ['RPC_SERVICE', 'MDSSD']
> 
> I'm presuming this is because I lack the correct configure voodoo (since
> I get the same error without the patchset) :)

that's the other known issue mentioned in my initial reply in this thread.

Here's the link to the mailthread discussing that once again:
<https://lists.samba.org/archive/samba-technical/2017-January/118200.html>

Cheerio!
-slow



More information about the samba-technical mailing list