Bug 202 - doesn't compile with bison 3.0.1
Summary: doesn't compile with bison 3.0.1
Status: CLOSED FIXED
Alias: None
Product: LinuxSampler
Classification: Unclassified
Component: other (show other bugs)
Version: SVN Trunk
Hardware: PC Linux
: P5 enhancement
Assignee: Christian Schoenebeck
URL:
Depends on:
Blocks:
 
Reported: 2013-08-07 00:49 CEST by Victor
Modified: 2014-01-18 20:07 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2013-08-07 00:49:47 CEST
Compiling from svn on Arch, I get this error:

lscp.y:472:24: note: in expansion of macro 'LSCPSERVER'
load_instr_args : filename SP instrument_index SP sampler_channel { $$ = LSCPSERVER->LoadInstrument($1, $3, $5); }
^
lscp.y:42:40: error: 'yyparse_param' was not declared in this scope
#define LSCPSERVER ((yyparse_param_t*) yyparse_param)->pServer
^
lscp.y:473:24: note: in expansion of macro 'LSCPSERVER'
| NON_MODAL SP filename SP instrument_in.dex SP sampler_channel { $$ = LSCPSERVER->LoadInstrument($3, $5, $7, true); }
^
lscp.y:42:40: error: 'yyparse_param' was not declared in this scope
#define LSCPSERVER ((yyparse_param_t*) yyparse_param)->pServer
^
lscp.y:476:24: note: in expansion of macro 'LSCPSERVER'
load_engine_args : engine_name SP sampler_channel { $$ = LSCPSERVER->SetEngineType($1, $3); }
^
make[3]: *** [lscpparser.lo] Error 1
make[3]: Leaving directory `/home/victor/bin/linuxsampler-svn/src/linuxsampler-build/src/network'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/victor/bin/linuxsampler-svn/src/linuxsampler-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/victor/bin/linuxsampler-svn/src/linuxsampler-build'
make: *** [all] Error 2

It is related to bison which was upgraded on Arch to 3.0.1. Downgrading it to 2.7.12 I can build Linuxsampler again. 

Sorry, I have no knowledge to suggest the fix for the code.
Comment 1 Andreas Persson 2013-08-25 08:12:04 CEST
Fixed in svn revision 2461. Thanks for the report.