Bug 12528 - Flex/yacc global symbol name clash between Heimdal and mdssvc
Flex/yacc global symbol name clash between Heimdal and mdssvc
Status: ASSIGNED
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
unspecified
All All
: P5 normal
: ---
Assigned To: Ralph Böhme
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-18 18:23 UTC by Ralph Böhme
Modified: 2017-01-31 06:34 UTC (History)
2 users (show)

See Also:


Attachments
Patch for 4.4 cherry-picked from master (68.29 KB, patch)
2017-01-31 06:17 UTC, Ralph Böhme
slow: review? (ddiss)
Details
Patch for 4.5 cherry-picked from master (68.29 KB, patch)
2017-01-31 06:29 UTC, Ralph Böhme
slow: review? (ddiss)
Details
Patch for 4.6 cherry-picked from master (68.29 KB, patch)
2017-01-31 06:34 UTC, Ralph Böhme
slow: review? (ddiss)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2017-01-18 18:23:48 UTC
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>

Patch to follow...
Comment 1 Ralph Böhme 2017-01-31 06:17:52 UTC
Created attachment 12873 [details]
Patch for 4.4 cherry-picked from master
Comment 2 Ralph Böhme 2017-01-31 06:29:27 UTC
Created attachment 12875 [details]
Patch for 4.5 cherry-picked from master
Comment 3 Ralph Böhme 2017-01-31 06:34:29 UTC
Created attachment 12876 [details]
Patch for 4.6 cherry-picked from master