opl3_oss error while compiling 2.5.15
Hi,
I get this error compiling 2.5.15
opl3_oss.c:28: parse error before '*' token
opl3_oss.c:28: warning: function declaration isn't a prototype opl3_oss.c:29: parse error before '*' token
opl3_oss.c:29: warning: function declaration isn't a prototype opl3_oss.c:49: parse error before "oss_callback"
opl3_oss.c:49: warning: type defaults to int' in declaration of oss_callback'
opl3_oss.c:50: field name not in record or union initializer opl3_oss.c:50: (near initialization for `oss_callback') opl3_oss.c:50: warning: initialization makes integer from pointer without a cast
opl3_oss.c:51: field name not in record or union initializer opl3_oss.c:51: (near initialization for oss_callback') opl3_oss.c:51: warning: excess elements in scalar initializer opl3_oss.c:51: warning: (near initialization for oss_callback') opl3_oss.c:52: field name not in record or union initializer opl3_oss.c:52: (near initialization for oss_callback') opl3_oss.c:52: warning: excess elements in scalar initializer opl3_oss.c:52: warning: (near initialization for oss_callback') opl3_oss.c:53: field name not in record or union initializer opl3_oss.c:53: (near initialization for oss_callback') opl3_oss.c:53: warning: excess elements in scalar initializer opl3_oss.c:53: warning: (near initialization for oss_callback') opl3_oss.c:54: field name not in record or union initializer opl3_oss.c:54: (near initialization for oss_callback') opl3_oss.c:54: warning: excess elements in scalar initializer opl3_oss.c:54: warning: (near initialization for oss_callback') opl3_oss.c:55: field name not in record or union initializer opl3_oss.c:55: (near initialization for oss_callback') opl3_oss.c:55: warning: excess elements in scalar initializer opl3_oss.c:55: warning: (near initialization for oss_callback') opl3_oss.c:56: warning: data definition has no type or storage class opl3_oss.c: In function `snd_opl3_oss_event_input':
opl3_oss.c:64: structure has no member named oss_chset' opl3_oss.c: In function snd_opl3_oss_free_port':
opl3_oss.c:74: structure has no member named oss_chset' opl3_oss.c: In function snd_opl3_oss_create_port':
opl3_oss.c:85: structure has no member named oss_chset' opl3_oss.c:86: structure has no member named oss_chset' opl3_oss.c:88: structure has no member named oss_chset' opl3_oss.c:99: structure has no member named oss_chset' opl3_oss.c:100: structure has no member named oss_chset' opl3_oss.c:106: structure has no member named oss_chset' opl3_oss.c:107: structure has no member named oss_chset' opl3_oss.c:108: structure has no member named oss_chset' opl3_oss.c: In function `snd_opl3_init_seq_oss':
opl3_oss.c:118: `snd_seq_oss_reg_t' undeclared (first use in this function) opl3_oss.c:118: (Each undeclared identifier is reported only once opl3_oss.c:118: for each function it appears in.)
opl3_oss.c:118: arg' undeclared (first use in this function) opl3_oss.c:121: SNDRV_SEQ_DEV_ID_OSS' undeclared (first use in this function) opl3_oss.c:125: structure has no member named oss_seq_dev' opl3_oss.c:129: SYNTH_TYPE_FM' undeclared (first use in this function) opl3_oss.c:131: FM_TYPE_ADLIB' undeclared (first use in this function) opl3_oss.c:134: FM_TYPE_OPL3' undeclared (first use in this function) opl3_oss.c: In function `snd_opl3_free_seq_oss':
opl3_oss.c:149: structure has no member named oss_seq_dev' opl3_oss.c:150: structure has no member named oss_seq_dev' opl3_oss.c:151: structure has no member named `oss_seq_dev' opl3_oss.c: At top level:
opl3_oss.c:158: parse error before '*' token
opl3_oss.c:159: warning: function declaration isn't a prototype opl3_oss.c: In function `snd_opl3_open_seq_oss':
opl3_oss.c:160: closure' undeclared (first use in this function) opl3_oss.c:163: arg' undeclared (first use in this function) opl3_oss.c:170: structure has no member named oss_chset' opl3_oss.c:171: structure has no member named oss_chset' opl3_oss.c: At top level:
opl3_oss.c:181: parse error before '*' token
opl3_oss.c:182: warning: function declaration isn't a prototype opl3_oss.c: In function `snd_opl3_close_seq_oss':
opl3_oss.c:185: `arg' undeclared (first use in this function) opl3_oss.c: At top level:
opl3_oss.c:210: parse error before '*' token
opl3_oss.c:212: warning: function declaration isn't a prototype opl3_oss.c: In function `snd_opl3_load_patch_seq_oss':
opl3_oss.c:216: arg' undeclared (first use in this function) opl3_oss.c:219: format' undeclared (first use in this function) opl3_oss.c:219: FM_PATCH' undeclared (first use in this function) opl3_oss.c:219: OPL3_PATCH' undeclared (first use in this function) opl3_oss.c:220: storage size of `sbi' isn't known
opl3_oss.c:232: count' undeclared (first use in this function) opl3_oss.c:236: buf' undeclared (first use in this function) opl3_oss.c:220: warning: unused variable `sbi'opl3_oss.c: At top level:
opl3_oss.c:323: parse error before '*' token
opl3_oss.c:325: warning: function declaration isn't a prototype opl3_oss.c: In function `snd_opl3_ioctl_seq_oss':
opl3_oss.c:328: arg' undeclared (first use in this function) opl3_oss.c:330: cmd' undeclared (first use in this function) opl3_oss.c:331: SNDCTL_FM_LOAD_INSTR' undeclared (first use in this function) opl3_oss.c:335: SNDCTL_SYNTH_MEMAVL' undeclared (first use in this function) opl3_oss.c:338: `SNDCTL_FM_4OP_ENABLE' undeclared (first use in this function) opl3_oss.c: At top level:
opl3_oss.c:349: parse error before '*' token
opl3_oss.c:350: warning: function declaration isn't a prototype opl3_oss.c: In function `snd_opl3_reset_seq_oss':
opl3_oss.c:353: `arg' undeclared (first use in this function) make[3]: *** [opl3_oss.o] Error 1
make[3]: Leaving directory `/usr/src/linux/sound/drivers/opl3' make[2]: *** [_modsubdir_opl3] Error 2
make[2]: Leaving directory `/usr/src/linux/sound/drivers' make[1]: *** [_modsubdir_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux/sound'
make: *** [_mod_sound] Error 2
Hope you guys can detect where the problem is.
Regards
-Ubaida-
Quoted 111 lines · Corporal Pisang
Hi,
I get this error compiling 2.5.15
opl3_oss.c:28: parse error before '*' token
opl3_oss.c:28: warning: function declaration isn't a prototype opl3_oss.c:29: parse error before '*' token
opl3_oss.c:29: warning: function declaration isn't a prototype opl3_oss.c:49: parse error before "oss_callback"
opl3_oss.c:49: warning: type defaults toint' in declaration ofoss_callback'
opl3_oss.c:50: field name not in record or union initializer opl3_oss.c:50: (near initialization for `oss_callback') opl3_oss.c:50: warning: initialization makes integer from pointer without a cast
opl3_oss.c:51: field name not in record or union initializer opl3_oss.c:51: (near initialization foross_callback') opl3_oss.c:51: warning: excess elements in scalar initializer opl3_oss.c:51: warning: (near initialization foross_callback') opl3_oss.c:52: field name not in record or union initializer opl3_oss.c:52: (near initialization foross_callback') opl3_oss.c:52: warning: excess elements in scalar initializer opl3_oss.c:52: warning: (near initialization foross_callback') opl3_oss.c:53: field name not in record or union initializer opl3_oss.c:53: (near initialization foross_callback') opl3_oss.c:53: warning: excess elements in scalar initializer opl3_oss.c:53: warning: (near initialization foross_callback') opl3_oss.c:54: field name not in record or union initializer opl3_oss.c:54: (near initialization foross_callback') opl3_oss.c:54: warning: excess elements in scalar initializer opl3_oss.c:54: warning: (near initialization foross_callback') opl3_oss.c:55: field name not in record or union initializer opl3_oss.c:55: (near initialization foross_callback') opl3_oss.c:55: warning: excess elements in scalar initializer opl3_oss.c:55: warning: (near initialization foross_callback') opl3_oss.c:56: warning: data definition has no type or storage classopl3_oss.c: In function `snd_opl3_oss_event_input':
opl3_oss.c:64: structure has no member namedoss_chset' opl3_oss.c: In functionsnd_opl3_oss_free_port':
opl3_oss.c:74: structure has no member namedoss_chset' opl3_oss.c: In functionsnd_opl3_oss_create_port':
opl3_oss.c:85: structure has no member namedoss_chset' opl3_oss.c:86: structure has no member namedoss_chset' opl3_oss.c:88: structure has no member namedoss_chset' opl3_oss.c:99: structure has no member namedoss_chset' opl3_oss.c:100: structure has no member namedoss_chset' opl3_oss.c:106: structure has no member namedoss_chset' opl3_oss.c:107: structure has no member namedoss_chset' opl3_oss.c:108: structure has no member namedoss_chset'opl3_oss.c: In function `snd_opl3_init_seq_oss':
opl3_oss.c:118:snd_seq_oss_reg_t' undeclared (first use in this function) opl3_oss.c:118: (Each undeclared identifier is reported only once opl3_oss.c:118: for each function it appears in.) opl3_oss.c:118:arg' undeclared (first use in this function) opl3_oss.c:121:SNDRV_SEQ_DEV_ID_OSS' undeclared (first use in this function) opl3_oss.c:125: structure has no member namedoss_seq_dev' opl3_oss.c:129:SYNTH_TYPE_FM' undeclared (first use in this function) opl3_oss.c:131:FM_TYPE_ADLIB' undeclared (first use in this function) opl3_oss.c:134:FM_TYPE_OPL3' undeclared (first use in this function) opl3_oss.c: In functionsnd_opl3_free_seq_oss':
opl3_oss.c:149: structure has no member namedoss_seq_dev' opl3_oss.c:150: structure has no member namedoss_seq_dev' opl3_oss.c:151: structure has no member named `oss_seq_dev'opl3_oss.c: At top level:
opl3_oss.c:158: parse error before '*' token
opl3_oss.c:159: warning: function declaration isn't a prototypeopl3_oss.c: In function `snd_opl3_open_seq_oss':
opl3_oss.c:160:closure' undeclared (first use in this function) opl3_oss.c:163:arg' undeclared (first use in this function) opl3_oss.c:170: structure has no member namedoss_chset' opl3_oss.c:171: structure has no member namedoss_chset'opl3_oss.c: At top level:
opl3_oss.c:181: parse error before '*' token
opl3_oss.c:182: warning: function declaration isn't a prototypeopl3_oss.c: In function `snd_opl3_close_seq_oss':
opl3_oss.c:185: `arg' undeclared (first use in this function)opl3_oss.c: At top level:
opl3_oss.c:210: parse error before '*' token
opl3_oss.c:212: warning: function declaration isn't a prototypeopl3_oss.c: In function `snd_opl3_load_patch_seq_oss':
opl3_oss.c:216:arg' undeclared (first use in this function) opl3_oss.c:219:format' undeclared (first use in this function) opl3_oss.c:219:FM_PATCH' undeclared (first use in this function) opl3_oss.c:219:OPL3_PATCH' undeclared (first use in this function) opl3_oss.c:220: storage size ofsbi' isn't known opl3_oss.c:232:count' undeclared (first use in this function) opl3_oss.c:236:buf' undeclared (first use in this function) opl3_oss.c:220: warning: unused variablesbi'opl3_oss.c: At top level:
opl3_oss.c:323: parse error before '*' token
opl3_oss.c:325: warning: function declaration isn't a prototypeopl3_oss.c: In function `snd_opl3_ioctl_seq_oss':
opl3_oss.c:328:arg' undeclared (first use in this function) opl3_oss.c:330:cmd' undeclared (first use in this function) opl3_oss.c:331:SNDCTL_FM_LOAD_INSTR' undeclared (first use in this function) opl3_oss.c:335:SNDCTL_SYNTH_MEMAVL' undeclared (first use in this function) opl3_oss.c:338: `SNDCTL_FM_4OP_ENABLE' undeclared (first use in this function)opl3_oss.c: At top level:
opl3_oss.c:349: parse error before '*' token
opl3_oss.c:350: warning: function declaration isn't a prototypeopl3_oss.c: In function `snd_opl3_reset_seq_oss':
opl3_oss.c:353: `arg' undeclared (first use in this function) make[3]: *** [opl3_oss.o] Error 1
make[3]: Leaving directory `/usr/src/linux/sound/drivers/opl3' make[2]: *** [_modsubdir_opl3] Error 2
make[2]: Leaving directory `/usr/src/linux/sound/drivers' make[1]: *** [_modsubdir_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux/sound'
make: *** [_mod_sound] Error 2
Quoted 4 lines
Hope you guys can detect where the problem is.
Regards
-Ubaida-
A small bit of extra information from 2.5.14 where I had the same error, but only if I compiled ALSA as a module. If I compiled ALSA into the kernel (but left the drivers as modules) then it built. Not sure whether that's a usable setup.
James
Signature · 5 lines
+------------------------+-------------------------------+---------+ | James Tappin | School of Physics & Astronomy | O__ | | [email protected] | University of Birmingham | -- \/` | | Ph: 0121-414-6462. Fax: 0121-414-3722 | | +--------------------------------------------------------+---------+