First post, by Stercus
Stercus
Offline
Rank
Newbie
I am trying to build DOSBox on a Gentoo Linux box. I am using the 0.73 build from portage which is obviously current based on the release info on the SourceForge site. I intend to use DOS box for to run an old DOS based BBS software package, so I don't need any sound support. I can go through and gut the adlib support from the source as a last resort. However, I would like to know if this build issue has been seen before and if there are any simple adjustments to the opl.cpp file to address this.
n file included from adlib.cpp:59:
opl.cpp:921: error: syntax error before `__attribute__'
opl.cpp: In function `void adlib_getsample(Bit16s*, int)':
opl.cpp:954: error: `op_type' undeclared (first use this function)
opl.cpp:954: error: (Each undeclared identifier is reported only once for each
function it appears in.)
opl.cpp:954: error: `cptr' undeclared (first use this function)
opl.cpp:979: error: `adlibreg' undeclared (first use this function)
opl.cpp:982: error: `vibtab_pos' undeclared (first use this function)
opl.cpp:982: error: `vibtab_add' undeclared (first use this function)
opl.cpp:984: error: `vib_table' undeclared (first use this function)
opl.cpp:987: error: `tremtab_pos' undeclared (first use this function)
opl.cpp:987: error: `tremtab_add' undeclared (first use this function)
opl.cpp:989: error: `trem_table' undeclared (first use this function)
opl.cpp:995: error: `op' undeclared (first use this function)
opl.cpp:1000: error: `vibval1' undeclared (first use this function)
opl.cpp:1000: error: `vibval_var1' undeclared (first use this function)
opl.cpp:1003: error: `vibval_const' undeclared (first use this function)
opl.cpp:1004: error: `tremval1' undeclared (first use this function)
opl.cpp:1005: error: `tremval_const' undeclared (first use this function)
opl.cpp:1009: error: `operator_advance' undeclared (first use this function)
opl.cpp:1010: error: `opfuncs' undeclared (first use this function)
opl.cpp:1011: error: `operator_output' undeclared (first use this function)
opl.cpp:1026: error: `vibval2' undeclared (first use this function)
opl.cpp:1026: error: `vibval_var2' undeclared (first use this function)
opl.cpp:1032: error: `tremval2' undeclared (first use this function)
opl.cpp:1055: error: `vibval3' undeclared (first use this function)
opl.cpp:1060: error: `tremval3' undeclared (first use this function)
opl.cpp:1095: error: `vibval4' undeclared (first use this function)
opl.cpp:1100: error: `tremval4' undeclared (first use this function)
opl.cpp:1105: error: `operator_advance_drums' undeclared (first use this
function)
opl.cpp:1457: error: `clipit16' undeclared (first use this function)
adlib.cpp: In member function `virtual void Handler::WriteReg(unsigned int,
unsigned char)':
adlib.cpp:63: error: `adlib_write' undeclared (first use this function)
n file included from adlib.cpp:59:
opl.cpp:921: error: syntax error before `__attribute__'
opl.cpp: In function `void adlib_getsample(Bit16s*, int)':
opl.cpp:954: error: `op_type' undeclared (first use this function)
opl.cpp:954: error: (Each undeclared identifier is reported only once for each
function it appears in.)
opl.cpp:954: error: `cptr' undeclared (first use this function)
opl.cpp:979: error: `adlibreg' undeclared (first use this function)
opl.cpp:982: error: `vibtab_pos' undeclared (first use this function)
opl.cpp:982: error: `vibtab_add' undeclared (first use this function)
opl.cpp:984: error: `vib_table' undeclared (first use this function)
opl.cpp:987: error: `tremtab_pos' undeclared (first use this function)
opl.cpp:987: error: `tremtab_add' undeclared (first use this function)
opl.cpp:989: error: `trem_table' undeclared (first use this function)
opl.cpp:995: error: `op' undeclared (first use this function)
opl.cpp:1000: error: `vibval1' undeclared (first use this function)
opl.cpp:1000: error: `vibval_var1' undeclared (first use this function)
opl.cpp:1003: error: `vibval_const' undeclared (first use this function)
opl.cpp:1004: error: `tremval1' undeclared (first use this function)
opl.cpp:1005: error: `tremval_const' undeclared (first use this function)
opl.cpp:1009: error: `operator_advance' undeclared (first use this function)
opl.cpp:1010: error: `opfuncs' undeclared (first use this function)
opl.cpp:1011: error: `operator_output' undeclared (first use this function)
opl.cpp:1026: error: `vibval2' undeclared (first use this function)
opl.cpp:1026: error: `vibval_var2' undeclared (first use this function)
opl.cpp:1032: error: `tremval2' undeclared (first use this function)
opl.cpp:1055: error: `vibval3' undeclared (first use this function)
opl.cpp:1060: error: `tremval3' undeclared (first use this function)
opl.cpp:1095: error: `vibval4' undeclared (first use this function)
opl.cpp:1100: error: `tremval4' undeclared (first use this function)
opl.cpp:1105: error: `operator_advance_drums' undeclared (first use this
function)
opl.cpp:1457: error: `clipit16' undeclared (first use this function)
adlib.cpp: In member function `virtual void Handler::WriteReg(unsigned int,
unsigned char)':
adlib.cpp:63: error: `adlib_write' undeclared (first use this function)
adlib.cpp: In member function `virtual void Handler::Init(unsigned int)':
adlib.cpp:79: error: `adlib_init' undeclared (first use this function)
adlib.cpp: At global scope:
adlib.cpp:84: error: syntax error before `}' token
In file included from adlib.cpp:88:
opl.cpp:921: error: syntax error before `__attribute__'
opl.cpp: In function `void adlib_getsample(Bit16s*, int)':
opl.cpp:952: error: redefinition of `void adlib_getsample(Bit16s*, int)'
opl.cpp:952: error: `void adlib_getsample(Bit16s*, int)' previously defined
here
opl.cpp:952: error: redefinition of `void adlib_getsample(Bit16s*, int)'
opl.cpp:952: error: `void adlib_getsample(Bit16s*, int)' previously defined
here
opl.cpp:1009: error: `operator_advance' undeclared (first use this function)
opl.cpp:1011: error: `operator_output' undeclared (first use this function)
opl.cpp:1105: error: `operator_advance_drums' undeclared (first use this
function)
opl.cpp:1444: error: `clipit16' undeclared (first use this function)
adlib.cpp: At global scope:
adlib.cpp:90: error: redefinition of `struct Handler'
adlib.cpp:61: error: previous definition of `struct Handler'
adlib.cpp:113: error: syntax error before `}' token
In file included from adlib.cpp:155:
ymf262.c:266: error: semicolon missing after struct declaration
ymf262.c:266: error: abstract declarator `old_OPL3::<anonymous struct>' used as
declaration
ymf262.c:266: error: namespace-scope anonymous aggregates must be static
adlib.cpp: In constructor `Adlib::Module::Module(Section*)':
adlib.cpp:749: error: syntax error before `)' token
adlib.cpp:751: error: syntax error before `)' token
make[4]: *** [adlib.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/games-emulation/dosbox-0.73/work/dosbox-0.73/src/hardware'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/games-emulation/dosbox-0.73/work/dosbox-0.73/src/hardware'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-emulation/dosbox-0.73/work/dosbox-0.73/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-emulation/dosbox-0.73/work/dosbox-0.73'
make: *** [all] Error 2
*
* ERROR: games-emulation/dosbox-0.73 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2520: Called games_src_compile
* environment, line 1421: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/games-emulation/dosbox-0.73/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-emulation/dosbox-0.73/temp/environment'
.
*