s3/rpc_server/mdssvc: prefix public flex and bison global symbols
authorRalph Boehme <slow@samba.org>
Wed, 18 Jan 2017 18:18:40 +0000 (19:18 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 21 Jan 2017 12:13:19 +0000 (13:13 +0100)
commit35460d92bbf3ee0af00b10a0a3a72887049f09ff
tree200d965aaa3c2fbc3c25da1d2503ef2326f96284
parent7933c2a60fed8b18e88957cfc267990d8d7f0041
s3/rpc_server/mdssvc: prefix public flex and bison global symbols

This fixes a clash with a parser in Heimdal when building with
--nonshared-binary=smbd/smbd:

...
[3139/3620] Linking default/source3/smbd/smbd
...
default/source4/heimdal/lib/hx509/sel-lex_116.o: In function `yy_get_previous_state':
/usr/build/packages/samba-4.5/bin/../source4/heimdal/lib/hx509/sel-lex.c:1122:multiple definition of `yyin'
default/source3/rpc_server/mdssvc/sparql_lexer_28.o:/usr/build/packages/samba-4.5/bin/sparql_lexer.c:1149:first defined here
...

The fix is to use namespace prefixes in the parser and the lexer as
described here:
<https://www.gnu.org/software/bison/manual/html_node/Multiple-Parsers.html>

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12528

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Jan 21 13:13:19 CET 2017 on sn-devel-144
source3/rpc_server/mdssvc/sparql_lexer.c
source3/rpc_server/mdssvc/sparql_lexer.l
source3/rpc_server/mdssvc/sparql_parser.c
source3/rpc_server/mdssvc/sparql_parser.h
source3/rpc_server/mdssvc/sparql_parser.y